我在移植一个软件在configure时,测试arm-linux-g++编译器时,通不过,高手能否指点一下,该软件在LINUX上时能够编译成功的,在进行交叉编译就不行,郁闷!!!以下是出错显示:
$ CC=/usr/local/arm/3.4/bin/arm-linux-gcc CXX=/usr/local/arm/3.4/bin/arm-linux-g++ AR=/usr/local/arm/3.4/bin/arm-linux-ar AS=/usr/local/arm/3.4/bin/arm-linux-as LD=/usr/local/arm/3.4/bin/arm-linux-ld RANLIB=/usr/local/arm/3.4/bin/arm-linux-ranlib LD_LIBRARY_PATH=/usr/local/arm/3.4/lib ./configure --with-headers=/usr/local/arm/3.4/include/
tail: error while loading shared libraries: /usr/local/arm/3.4/lib/libpthread.so.0: ELF file OS ABI invalid
date: error while loading shared libraries: /usr/local/arm/3.4/lib/libpthread.so.0: ELF file OS ABI invalid
date: error while loading shared libraries: /usr/local/arm/3.4/lib/libpthread.so.0: ELF file OS ABI invalid
Configuring HylaFAX (tm) (aka FlexFAX) 4.3.0.
If configure does the wrong thing, check the file config.log for
information that may help you understand what went wrong.
Reading site-wide parameters from ./config.site.
Flushing cached parameters because of command line parameters.
date: error while loading shared libraries: /usr/local/arm/3.4/lib/libpthread.so.0: ELF file OS ABI invalid
Using /usr/local/arm/3.4/bin/arm-linux-gcc for a C compiler (set CC to override).
Looks like /usr/local/arm/3.4/bin/arm-linux-gcc supports the -g option.
Using " -g" for C compiler options.
Looks like /usr/local/arm/3.4/bin/arm-linux-gcc has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Looks like /usr/local/arm/3.4/bin/arm-linux-gcc supports the -M option for generating make dependencies.
Using /usr/local/arm/3.4/bin/arm-linux-g++ for a C++ compiler (set CXX to override).
Looks like /usr/local/arm/3.4/bin/arm-linux-g++ supports the -g option.
Using " -g" for C++ compiler options.
Looks like /usr/local/arm/3.4/bin/arm-linux-g++ has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Using /usr/bin/make to configure the software.
Using "include file" syntax for Makefiles.
Looks like make supports "sinclude" for conditional includes.
Using /bin/bash to process command scripts.
./configure: line 1478: ./a.out: cannot execute binary file
Broken C++ handling of global constructors (/usr/local/arm/3.4/bin/arm-linux-g++//usr/local/arm/3.4/bin/arm-linux-g++).
Compilation or execution of the following test program failed:
----------------------------------------------------------
class foo {
private:
int a;
public:
foo() { a = -1; }
int isInitialized() { return a == -1; }
};
static foo instanceOfFoo;
int main() { return instanceOfFoo.isInitialized() ? 0 : 1; }
----------------------------------------------------------
This program tests whether or not the C++ compilation support properly
handles global static variables with constructors. A working C++
compilation environment is expected to arrange that global variables
that have a constructor function (ffoo() above) be called prior to
the start of main(). HylaFAX will not operate properly if the C++
compilation environment does not correctly implement this.
When using GNU gcc this can sometimes happen if gcc is improperly
configured; consult your local GNU guru/support person for help with
this problem.
Unrecoverable error! Once you've corrected the problem rerun this script.
打赏帖 | |
---|---|
【STM32F769】AI之与本地deepseek对接被打赏50分 | |
Buck电路工作在CCM模式下电感电流的计算公式是什么?被打赏5分 | |
buck电路工作原理被打赏5分 | |
基于MSPM0L1306的MODBUS-RTU协议通讯实验被打赏100分 | |
我想要一部加热台+多合一调试工具被打赏18分 | |
每周了解几个硬件知识+485硬件知识分享被打赏10分 | |
【换取手持数字示波器】树莓派PICO调试器官方固件本地化部署实践被打赏24分 | |
【换取手持数字示波器】分享一个KEIL无法识别CMSIS-DAP调试器的解决办法被打赏20分 | |
【换取手持数字示波器】分享一个自制的ArduinoNano扩展板底板被打赏23分 | |
【换取手持示波器】树莓派PICOW网页烟花被打赏18分 |