【发布时间】:2018-02-14 13:26:13
【问题描述】:
我正在尝试为 Power8 AIX7.1 交叉编译 gcc 4.8.2。成功编译 binutils、gcc 二进制文件和 libgcc 但无法编译 libstdc++。
我收到这样的错误:
checking whether the /home/zakkurasov/Sources/build-gcc/./gcc/xgcc -B/home/zakkurasov/Sources/build-gcc/./gcc/ -B/opt/aix/powerpc-ibm-aix7.1.0.0/bin/ -B/opt/aix/powerpc-ibm-aix7.1.0.0/lib/ -isystem /opt/aix/powerpc-ibm-aix7.1.0.0/include -isystem /opt/aix/powerpc-ibm-aix7.1.0.0/sys-include -maix64 linker (/home/zakkurasov/Sources/build-gcc/./gcc/collect-ld) supports shared libraries... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Makefile:10072: recipe for target 'configure-target-libstdc++-v3' failed
make: *** [configure-target-libstdc++-v3] Error 1
配置:
CC=gcc-5 CXX=g++-5 ../gcc-4.8.3/configure --target=$TARGET --prefix=$PREFIX --with-gnu-ld --with-gnu-as --with-sysroot=$SYSROOT --disable-libgcj --enable-languages=c,c++ --enable-version-specific-runtime-libs --disable-nls --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit
地点:
$PREFIX=/opt/aix
$TARGET=powerpc-ibm-aix7.1.0.0
$SYSROOT contains all libs and headers from AIX system
也收到这样的错误:
checking whether make sets $(MAKE)... yes
checking for powerpc-ibm-aix7.1.0.0-gcc... /home/zakkurasov/Sources/build-gcc/./gcc/xgcc -B/home/zakkurasov/Sources/build-gcc/./gcc/ -B/opt/aix/powerpc-ibm-aix7.1.0.0/bin/ -B/opt/aix/powerpc-ibm-aix7.1.0.0/lib/ -isystem /opt/aix/powerpc-ibm-aix7.1.0.0/include -isystem /opt/aix/powerpc-ibm-aix7.1.0.0/sys-include -maix64
checking for C compiler default output file name...
configure: error: in `/home/zakkurasov/Sources/build-gcc/powerpc-ibm-aix7.1.0.0/ppc64/libgomp':
configure: error: C compiler cannot create executables
【问题讨论】:
标签: gcc g++ cross-compiling libstdc++