我在移植一个软件在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.
我要赚赏金打赏帖 |
|
|---|---|
| 【S32K3XX】LPSPI参数配置说明被打赏¥21元 | |
| 在WT9932C61-TINY上实现超声波测距被打赏¥22元 | |
| 基于WT9932C61-TINY的环境构建及OLED屏驱动测试被打赏¥20元 | |
| 【S32K3XX】Core-to-Core 中断使用被打赏¥21元 | |
| 「AI编程记录--含源码」用一晚上的时间写一个esp32的示波器被打赏¥19元 | |
| STM32C0116DK开发探索记(3)被打赏¥30元 | |
| STM32C0116DK开发探索记(2)被打赏¥24元 | |
| STM32C0116DK开发探索记(1)被打赏¥29元 | |
| 谨防极海G32M3101电机评估板易跌落的陷阱被打赏¥24元 | |
| 【全网首拆】M5STACK ATOM系列开发板拆解 / AtomS3R-CAM摄像头更换方法(提高10倍像素)被打赏¥26元 | |
我要赚赏金
