我在移植一个软件在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.
我要赚赏金打赏帖 |
|
|---|---|
| 【FreeRtos】FreeRtos + MPU模块的配置使用被打赏¥32元 | |
| 【分享开发笔记,赚取电动螺丝刀】墨水屏文本显示器被打赏¥25元 | |
| 【STEVAL-STWINKT1B】:结合STMcubeMX软件读取HTS221温湿度被打赏¥22元 | |
| M5PAPERESP32EINKDEVKIT评测|使用MicroPython开发M5Paper被打赏¥15元 | |
| OK1126B-S开发板下以导航按键控制云台/机械臂姿态调整被打赏¥29元 | |
| 【树莓派5】便携热成像仪被打赏¥36元 | |
| 【树莓派5】环境监测仪被打赏¥35元 | |
| OK1126B-S开发板下多时段语音提示型电子时钟被打赏¥27元 | |
| OK1126B-S开发板下函数构建及步进电机驱动控制被打赏¥25元 | |
| 【S32K3XX】LPI2C 参数配置说明被打赏¥20元 | |
我要赚赏金
