我在移植一个软件在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.
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |