Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gcc Can';t交叉编译libstdc++;对于AIX7.1_Gcc_G++_Cross Compiling_Libstdc++ - Fatal编程技术网

Gcc Can';t交叉编译libstdc++;对于AIX7.1

Gcc Can';t交叉编译libstdc++;对于AIX7.1,gcc,g++,cross-compiling,libstdc++,Gcc,G++,Cross Compiling,Libstdc++,我正在尝试为POWER8AIX7.1交叉编译GCC4.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/pow

我正在尝试为POWER8AIX7.1交叉编译GCC4.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
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
配置:

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

GNU Binutils在AIX6.1、AIX7.1和AIX7.2上都不能正常工作。它不会生成正确的共享对象。它还通过了GCC中的一些功能测试,但没有为AIX正确实现这些功能

您可以克服配置共享库测试,但无法创建工作的GCC交叉编译器


需要这种功能的任何客户都应该向IBM销售代表表达他们的要求。

非常有趣,因为我可以用LIB成功编译C程序,而且在AIX上运行良好。也许有任何建议可以使C++交叉编译器工作。对于非常简单的特性,GNU BIIUTLS函数。它还没有完全坏掉。但是,它不会为最新版本的AIX生成有效的共享对象。它不正确地支持AIX DWARF调试。GNUBINUTILS对于链接现有库的简单程序来说已经足够好了。GCC及其运行时并不简单。交叉编译——确切地说是编译,为AIX创建汇编语言文件——应该可以工作。一个可以安装在AIX系统上构建的GCC运行时或与GNU BIUTILS结合的预构建包,并使用它来交叉编译运行在AIX上的C++应用程序。它不同于使用普通的GCC交叉工具方法将GCC构建为交叉编译器,所以我可以从aix获取libs和include,并将其与二进制文件一起使用?还是怎样