我在移植一个软件在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.
我要赚赏金打赏帖 |
|
|---|---|
| 基于ArduinoUNO开发板的AT24C02读写测试被打赏¥16元 | |
| TCS3472S传感器及其色彩检测被打赏¥19元 | |
| 【S32DS】S32K3 RTD7.0.1 HSE 组件配置报错问题解决被打赏¥27元 | |
| 【S32K3XX】MCME 启动 CORE1被打赏¥23元 | |
| AG32VH407下温度大气压传感器及其检测被打赏¥20元 | |
| AG32VH407下光照强度传感器BH1750及其检测被打赏¥22元 | |
| AT32VH407下使用温湿度传感器DHT22进行检测被打赏¥20元 | |
| DIY一个婴儿澡盆温度计被打赏¥34元 | |
| 【FreeRtos】FreeRtos+MPU region 配置规则被打赏¥23元 | |
| 【分享开发笔记,赚取电动螺丝刀】三分钟快速上手驱动墨水屏(ArduinoIDE)被打赏¥28元 | |
我要赚赏金
