[Bug build/19769] glibc cross-compile fails with syntax error
martin.galvan at tallertechnologies dot com
sourceware-bugzilla@sourceware.org
Mon Mar 7 15:18:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=19769
Martin Galvan <martin.galvan at tallertechnologies dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #6 from Martin Galvan <martin.galvan at tallertechnologies dot com> ---
(In reply to Andreas Schwab from comment #5)
> You need to start over from scratch.
I did. It threw the same error.
I noticed I had mistakenly placed my configparms in the source dir instead of
build. I also noticed that using arm-linux-gnueabi as the target showed me the
following warning in config.log:
configure:3704: checking for sysdeps preconfigure fragments
configure:49: WARNING: arm/preconfigure: Did not find ARM architecture type;
using default
so I switched to arm-linux-gnueabihf.
It now seems to compile fine, however make install is now failing at the
following point:
rm -f /home/martin/glibc-git/cross-build/stubs.h
/home/martin/glibc-git/cross-build/elf/sln
/home/martin/glibc-git/cross-build/elf/symlink.list
/home/martin/glibc-git/cross-build/elf/sln: 1:
/home/martin/glibc-git/cross-build/elf/sln: Syntax error: word unexpected
(expecting ")")
I initially thought it was a rpcgen error, but now I realize it's a Bash error.
My configure line is:
../source/configure --prefix="/home/martin/glibc-git/cross-install"
CC=arm-linux-gnueabihf-gcc arm-linux-gnueabihf
I noticed configure is warning me that I should use --target, however if I use
--target=arm-linux-gnueabihf it tries to compile using the x86 toolchain.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list