Crosstool-ng: arm-unknown-linux-gnueabi has an ncurses compile error

Jakob Breier Jakob.Breier@rwth-aachen.de
Thu Jul 23 10:52:00 GMT 2015


Hi,

I've been trying to follow the instructions on 
http://crosstool-ng.org/#download_and_usage to compile the 
arm-unknown-linux-gnueabi toolchain with crosstool-ng 1.21.0, i.e. I ran

ct-ng arm-unknown-linux-gnueabi
ct-ng build

Unfortunately `ct-ng build` aborts with a compile error in ncurses:

[ALL  ]    In file included from 
/home/jakob/armCrossToolchain/.build/src/ncurses-5.9/ncurses/curses.priv.h:283:0,
[ALL  ]                     from ../ncurses/lib_gen.c:19:
[ERROR]    _10851.c:835:15: error: expected ')' before 'int'
[ALL  ]    ../include/curses.h:1594:56: note: in definition of macro 
'mouse_trafo'
[ALL  ]     #define mouse_trafo(y,x,to_screen) 
wmouse_trafo(stdscr,y,x,to_screen)
[ALL  ]                                                            ^
[ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H 
-I../ncurses 
-I/home/jakob/armCrossToolchain/.build/src/ncurses-5.9/ncurses 
-D_GNU_SOURCE -DNDEBUG -I. -I../include 
-I/home/jakob/armCrossToolchain/.build/src/ncurses-5.9/ncurses/../include -O2 
--param max-inline-insns-single=1200 -c 
/home/jakob/armCrossToolchain/.build/src/ncurses-5.9/ncurses/base/lib_hline.c 
-o ../objects/lib_hline.o
[ALL  ]    Makefile:790: recipe for target '../objects/lib_gen.o' failed

This is due to an incompatible change in the preprocessor of the GCC 5 
series [1][2]. The issue has been fixed in the ncurses development trunk 
[3], but there is no official release including these changes. (Other 
parties are also effected by the incompatibility, e.g. the official Arch 
ncurses package [4] currently fails to build.)

Do you have any tips on how to compile an arm-unknown-linux-gnueabi 
toolchain? Unfortunately just switching to GCC 4.9.2 produces a compile 
error in CLooG (with both of the available versions: cloog-0.18.0 and 
cloog-0.18.1) [5]. In any case, I think it might be good a idea to 
update the example on the website to reflect the current problems.

Best regards,
Jakob Breier


[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61832
[2] https://lists.gnu.org/archive/html/bug-ncurses/2014-07/msg00022.html
[3] https://lists.gnu.org/archive/html/bug-ncurses/2015-06/msg00024.html
[4] https://www.archlinux.org/packages/core/i686/ncurses/
[5] The error message:
----
[INFO ]  Installing CLooG for host
[EXTRA]    Configuring CLooG
[EXTRA]    Building CLooG
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:799:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:906:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:963:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1093:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1215:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1634:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1697:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1772:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1785:32: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1821:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/domain.c:1822:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:269:2: 
error: unknown type name 'isl_int'
[ERROR]    make[2]: *** [libcloog_isl_la-domain.lo] Error 1
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:532:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:544:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:556:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:703:2: 
error: unknown type name 'isl_int'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:703:20: 
error: 'isl_int' undeclared (first use in this function)
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:703:29: 
error: expected expression before ')' token
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:704:10: 
error: expected ';' before 'v'
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:706:15: 
error: 'v' undeclared (first use in this function)
[ERROR] 
/home/jakob/armCrossToolchain/.build/src/cloog-0.18.0/source/isl/constraints.c:899:2: 
error: unknown type name 'isl_int'
[ERROR]    make[2]: *** [libcloog_isl_la-constraints.lo] Error 1
[ERROR]    make[1]: *** [all-recursive] Error 1
----

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list