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]

libc_start_files fails when building Raspberry Pi toolchain on OS X 10.9 (Mavericks)


Hi all,

I'm trying to build a toolchain with crosstool-NG 1.19.0 I'm failing
at 'libc_start_files'. The toolchain will build/host on OSX 10.9
(x86_64-apple-darwin13.0.0) and targets the Raspberry Pi
(armv6-rpi-linux-gnueabi). Note: the biggest changes in this build
configuration are binutils uses 2.24 and the build configuration has
"CT_BINUTILS_HAS_GOLD=n".

The fatal error is reporting the terminal as such:

EXTRA]  Saving state to restart at step 'libc_start_files'...
[INFO ]  =================================================================
[INFO ]  Installing C library headers & start files
[EXTRA]    Configuring C library
[WARN ]    configure: WARNING: using cross tools not prefixed with host triplet
[WARN ]    configure: WARNING:
[WARN ]    configure: WARNING: missing architecture parameter to check
for working -z relro
[ERROR]    checking whether armv6-rpi-linux-gnueabi-gcc     implicitly
enables -fstack-protector... configure: error: unexpected symbols in
test:
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@348]
[ERROR]  >>        called from:
do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR]  >>        called from:
do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>
'/usr/local/Cellar/crosstool-ng/1.19.0/share/doc/crosstool-ng/ct-ng.1.19.0/B
- Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 5:43.00)

I tried testing my copy of armv6-rpi-linux-gnueabi-gcc for the flag

# test.c
int main(){
  return 0;
}

$ /Volumes/XTChain/blah/.build/armv6-rpi-linux-gnueabi/buildtools/bin/armv6-rpi-linux-gnueabi-gcc
-fstack-protector -c test.c
$ echo $?
0
$ file test.o
test.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped

It looks like the compiler should support the feature being test but
mysteriously it fails. How can I debug the configure stage of
'libc_start_files' failing?

For more information, please look at the build.log I posted here:
https://gist.github.com/xrl/ed80f353decec1f6dd3d/raw/c782091257fac74587909f1692a1389a3a5684b3/build.log

Thanks,
Xavier

--
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]