[libstdc++-v3] lib64 folder is ignored when building x86_64-*-linux-gnu multilib cross toolchain
Dmitry Perov
perov90@gmail.com
Tue Dec 20 11:47:00 GMT 2016
Hi everyone,
I'm trying to build a gcc 4.9.3 cross-toolchain for x86_64-*-linux-gnu
target and get weird errors during configuration of libstdc++-v3.
Assuming that I have my sysroot under $(MY_SYSROOT) I have cross
binutils installed there and glibc-2.13 installed under
$(MY_SYSROOT)/lib and $(MY_SYSROOT)/lib64 for 32- and 64-bit versions
respectively. For some reason ld won't search for libc under
$(MY_SYSROOT)/lib64:
> configure:3898: /home/dima/projects/linux-x86_64/build/toolchain/gcc/build/./gcc/xgcc -B/home/dima/projects/linux-x86_64/build/toolchain/gcc/build/./gcc/ -B$(MY_SYSROOT)/bin/ -B$(MY_SYSROOT)/lib/ -isystem $(MY_SYSROOT)/include -isystem $(MY_SYSROOT)/sys-include -o conftest -g -O2 -pipe conftest.c >&5
> $(MY_SYSROOT)/bin/ld: skipping incompatible $(MY_SYSROOT)/lib/libc.so when searching for -lc
> $(MY_SYSROOT)/bin/ld: skipping incompatible $(MY_SYSROOT)/lib/libc.a when searching for -lc
> $(MY_SYSROOT)/bin/ld: cannot find -lc
> collect2: error: ld returned 1 exit status
> configure:3901: $? = 1
The part of config.log for libstdc++-v3 up to this place is attached.
What could be the issue and how can I fix this?
Best regards,
Dmitry Perov.
--
C уважением,
Дмитрий Перов.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 7646 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20161220/7e161ede/attachment.bin>
More information about the Gcc-help
mailing list