This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.16.0: can't create arm-bare_newlib_cortex_m3_nommu-eabi toolchain


Hi everyone,

I used the 1.16.0 release of crosstool-NG to attempt to create the
arm-bare_newlib_cortex_m3_nommu-eabi toolchain but was not successful.

$ ct-ng arm-bare_newlib_cortex_m3_nommu-eabi
$ ct-ng menuconfig
(small tweaks to the configuration to add make-3.81-native and adjust
a couple paths)
$ ct-ng build

I followed the same steps with 1.15.0 and it succeeded without problems.

I can't help notice that with 1.15.0 the order of build is:
[INFO ]  Extracting, patching and installing companion tools
[INFO ]  Installing GMP for host
[INFO ]  Installing MPFR for host
[INFO ]  Installing PPL for host
[INFO ]  Installing CLooG/PPL for host
[INFO ]  Installing binutils for host
[INFO ]  Installing elf2flt for host
[INFO ]  Installing pass-2 core C compiler
[INFO ]  Installing C library
[INFO ]  Installing final compiler
[INFO ]  Finishing C library

but for 1.16.0 the order is:
[INFO ]  Extracting, patching and installing companion tools
[INFO ]  Installing MPFR for host
[INFO ]  Installing PPL for host
[INFO ]  Installing CLooG/PPL for host
[INFO ]  Installing binutils for host
[INFO ]  Installing elf2flt for host
[INFO ]  Installing pass-1 core C compiler
[INFO ]  Installing pass-2 core C compiler
[INFO ]  Installing final compiler
(failure)

Notice how with 1.15.0, after finishing up pass-2 of the
cross-compiler, it does the C library, then the final compiler. With
1.16.0 it tries to do the final compiler immediately after pass-2.

The start of the errors from my 1.16.0 build look like the following
line and are followed by many such similar lines:

[INFO ]  =================================================================
[INFO ]  Installing final compiler
[EXTRA]    Configuring core C compiler
[EXTRA]    Building core C compiler
[ERROR]    checking if
/home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/arm-bare_newlib_cortex_m3_nommu-eabi/build/build-cc-final/./gcc/xgcc
-B/home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/arm-bare_newlib_cortex_m3_nommu-eabi/build/build-cc-final/./gcc/
-B/home/trevor/devel/crosstool/1.16.0/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/arm-bare_newlib_cortex_m3_nommu-eabi/bin/
-B/home/trevor/devel/crosstool/1.16.0/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/arm-bare_newlib_cortex_m3_nommu-eabi/lib/
-isystem /home/trevor/devel/crosstool/1.16.0/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/arm-bare_newlib_cortex_m3_nommu-eabi/include
-isystem /home/trevor/devel/crosstool/1.16.0/x-tools/arm-bare_newlib_cortex_m3_nommu-eabi/arm-bare_newlib_cortex_m3_nommu-eabi/sys-include
PIC flag -fPIC -DPIC works...
/home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/md5.c:28:23:
error: sys/types.h: No such file or directory
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/safe-ctype.h:122:19:
error: ctype.h: No such file or directory
[ERROR]     error: sys/types.h: No such file or directory
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/cplus-dem.c:48:23:
error: sys/types.h: No such file or directory
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/cplus-dem.c:49:20:
error: string.h: No such file or directory
[ERROR]    error: stdio.h: No such file or
directory/home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/cplus-dem.c:50:19:
[ERROR]    error: stdio.h: No such file or directory
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/regex.c:158:25:
error: strings.h: No such file or directory
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/md5.h:105:
error: expected declaration specifiers or '...' before 'size_t'
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/md5.h:112:
error: expected declaration specifiers or '...' before 'size_t'
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/xregex2.h:360:
error: expected specifier-qualifier-list before 'size_t'
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/md5.h:137:
error: expected ')' before '*' token
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/md5.h:143:
error: expected declaration specifiers or '...' before 'size_t'
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/xregex2.h:447:
error: expected declaration specifiers or '...' before 'size_t'
[ERROR]    /home/trevor/devel/crosstool/1.16.0/work-area/arm-bare_newlib_cortex_m3_nommu-eabi/_build/src/gcc-4.4.1/libiberty/../include/libiberty.h:55:
error: expected ')' before '*' token

etc...

I have attached my .config for the failing build.

Attachment: .config
Description: Binary data

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]