Got “unknown type name ‘cppchar_t’”

Asked by Hibou57 (Yannick Duchêne)

I wanted to compile gcc-snapshot from source, as I don't want it to be installed in /usr as the binary package do (I want it at some location of my $HOME).

But I'm stuck with a strange error at build time:

    ../../gcc-20120314/gcc/../libcpp/include/cpplib.h:270:1: erreur: unknown type name ‘CPPCHAR_SIGNED_T’
    ../../gcc-20120314/gcc/../libcpp/include/cpplib.h:768:1: erreur: unknown type name ‘cppchar_t’
    ../../gcc-20120314/gcc/../libcpp/include/cpplib.h:779:1: erreur: unknown type name ‘cppchar_t’
    ../../gcc-20120314/gcc/../libcpp/include/cpplib.h:779:58: erreur: unknown type name ‘cppchar_t’
    ../../gcc-20120314/gcc/../libcpp/include/cpplib.h:954:1: erreur: unknown type name ‘cppchar_t’

Someone already encountered the same, and no one replied:
http://stackoverflow.com/questions/12255058/g-4-7-1-compilation-error-conflicting-types-for-strsignal

Searching the web gave nothing.

Configure was launched from an empty build directory, as:

    cd build

    ../gcc-20120314/configure \
       --prefix=/home/yannick/apps/gcc-4.8 \
       --program-suffix=-4.8 \
       --enable-libada \
       --enable-languages=ada,c,c++ \
       --disable-multilib

If that can help to guess what's wrong, here is the full output I get through stderr (sorry for the big copy/paste):

configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
../../gcc-20120314/libiberty/stack-limit.c: In function ‘stack_limit_increase’:
../../gcc-20120314/libiberty/stack-limit.c:52:27: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../gcc-20120314/libiberty/stack-limit.c:54:28: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../gcc-20120314/libiberty/stack-limit.c:57:28: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../gcc-20120314/libiberty/stack-limit.c: In function ‘stack_limit_increase’:
../../gcc-20120314/libiberty/stack-limit.c:52:27: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../gcc-20120314/libiberty/stack-limit.c:54:28: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../gcc-20120314/libiberty/stack-limit.c:57:28: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
libtool: install: warning: remember to run `libtool --finish /home/yannick/apps/gcc-4.8/libexec/gcc/i686-pc-linux-gnu/4.8.0'
configure: WARNING: fixed-point is not supported for this target, ignored
configure: WARNING:
*** Makeinfo is missing or too old.
*** Info documentation will not be built.
Links are now set up to build a native compiler for i686-pc-linux-gnu.
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
../../../gcc-20120314/libiberty/stack-limit.c: In function ‘stack_limit_increase’:
../../../gcc-20120314/libiberty/stack-limit.c:52:27: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../../gcc-20120314/libiberty/stack-limit.c:54:28: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../../gcc-20120314/libiberty/stack-limit.c:57:28: attention : usage d'une constante entière « long long » à la C99 [-Wlong-long]
../../../gcc-20120314/fixincludes/server.c: In function ‘server_setup’:
../../../gcc-20120314/fixincludes/server.c:195:10: attention : ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
../../gcc-20120314/libcpp/expr.c: In function ‘cpp_classify_number’:
../../gcc-20120314/libcpp/expr.c:597:13: attention : le format n'est pas une chaîne littérale et pas d'argument de format [-Wformat-security]
../../gcc-20120314/libcpp/expr.c:599:13: attention : le format n'est pas une chaîne littérale et pas d'argument de format [-Wformat-security]
../../gcc-20120314/libcpp/macro.c: In function ‘create_iso_definition’:
../../gcc-20120314/libcpp/macro.c:2853:8: attention : le format n'est pas une chaîne littérale et pas d'argument de format [-Wformat-security]
../../gcc-20120314/libcpp/macro.c:2866:8: attention : le format n'est pas une chaîne littérale et pas d'argument de format [-Wformat-security]
6 messages traduits, 25 traductions approximatives, 180 messages non traduits.
172 messages traduits, 28 traductions approximatives, 11 messages non traduits.
142 messages traduits, 48 traductions approximatives, 21 messages non traduits.
211 messages traduits.
5 messages traduits, 77 traductions approximatives, 129 messages non traduits.
211 messages traduits.
211 messages traduits.
193 messages traduits, 15 traductions approximatives, 3 messages non traduits.
209 messages traduits, 2 traductions approximatives.
210 messages traduits, 1 traduction approximative.
209 messages traduits, 2 traductions approximatives.
211 messages traduits.
211 messages traduits.
184 messages traduits, 20 traductions approximatives, 7 messages non traduits.
211 messages traduits.
209 messages traduits, 2 traductions approximatives.
210 messages traduits, 1 traduction approximative.
178 messages traduits, 24 traductions approximatives, 9 messages non traduits.
105 messages traduits, 1658 traductions approximatives, 7479 messages non traduits.
1320 messages traduits, 4291 traductions approximatives, 3631 messages non traduits.
9242 messages traduits.
74 messages traduits, 2924 traductions approximatives, 6244 messages non traduits.
9242 messages traduits.
1133 messages traduits, 2192 traductions approximatives, 5917 messages non traduits.
1727 messages traduits, 4265 traductions approximatives, 3250 messages non traduits.
5768 messages traduits, 2541 traductions approximatives, 933 messages non traduits.
4130 messages traduits, 1197 traductions approximatives, 3915 messages non traduits.
710 messages traduits, 3800 traductions approximatives, 4732 messages non traduits.
3470 messages traduits, 3409 traductions approximatives, 2363 messages non traduits.
4584 messages traduits, 3131 traductions approximatives, 1527 messages non traduits.
9182 messages traduits, 60 messages non traduits.
4154 messages traduits, 3321 traductions approximatives, 1767 messages non traduits.
1915 messages traduits, 510 traductions approximatives, 6817 messages non traduits.
7480 messages traduits, 1302 traductions approximatives, 460 messages non traduits.
3810 messages traduits, 3084 traductions approximatives, 2348 messages non traduits.
In file included from ../../gcc-20120314/gcc/c-lang.c:24:0:
../../gcc-20120314/gcc/system.h:499:20: erreur: conflicting types for ‘strsignal’
/usr/include/string.h:566:14: note: previous declaration of ‘strsignal’ was here
In file included from ./tm.h:19:0,
                 from ../../gcc-20120314/gcc/c-lang.c:26:
./options.h:3723:2: erreur: #error too many masks for ix86_isa_flags
In file included from ../../gcc-20120314/gcc/input.h:25:0,
                 from ../../gcc-20120314/gcc/tree.h:27,
                 from ../../gcc-20120314/gcc/c-lang.c:27:
../../gcc-20120314/gcc/../libcpp/include/line-map.h:208:38: erreur: ‘CHAR_BIT’ undeclared here (not in a function)
../../gcc-20120314/gcc/../libcpp/include/line-map.h:208:3: erreur: bit-field ‘reason’ width not an integer constant
../../gcc-20120314/gcc/../libcpp/include/line-map.h:208:3: attention : ‘reason’ is narrower than values of its type [enabled by default]
In file included from ../../gcc-20120314/gcc/tree.h:32:0,
                 from ../../gcc-20120314/gcc/c-lang.c:27:
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/hwint.h:17:39: erreur: division par zéro dans #if
../../gcc-20120314/gcc/real.h:105:9: erreur: #error "REAL_WIDTH > 6 not supported"
In file included from ../../gcc-20120314/gcc/c-family/c-common.h:26:0,
                 from ../../gcc-20120314/gcc/c-tree.h:25,
                 from ../../gcc-20120314/gcc/c-lang.c:28:
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:225:3: erreur: bit-field ‘type’ width not an integer constant
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:225:3: attention : ‘type’ is narrower than values of its type [enabled by default]
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:267:3: erreur: #error "Cannot find a least-32-bit signed integer type"
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:269:35: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cppchar_t’
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:270:1: erreur: unknown type name ‘CPPCHAR_SIGNED_T’
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:768:1: erreur: unknown type name ‘cppchar_t’
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:779:1: erreur: unknown type name ‘cppchar_t’
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:779:58: erreur: unknown type name ‘cppchar_t’
../../gcc-20120314/gcc/../libcpp/include/cpplib.h:954:1: erreur: unknown type name ‘cppchar_t’
make[3]: *** [c-lang.o] Erreur 1
make[2]: *** [all-stage1-gcc] Erreur 2
make[1]: *** [stage1-bubble] Erreur 2
make: *** [all] Erreur 2

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-snapshot Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

if you download the deb and extract it, you should be able to run the application from where you extract it.

Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) said :
#2

You're right Andrew. I tried again and it works: it just requires to install `libcloog-ppl0`.

I had try before you suggest, but it failed with an error about a missing `libcloog-debian.so.0`, and I erroneously supposed it was because the build is designed to work from a single location with hard coded rpath. Finally, I insisted, as you suggested me to try it again, and figured I had to install the `libcloog-ppl0` package.

Does not explain why the compilation failed, but it solve the primary case nice.

Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) said :
#3

Thanks actionparsnip, that solved my question.