ssrg-vt / popcorn-compiler

Popcorn Linux compiler toolchain for heterogeneous-ISA execution
42 stars 22 forks source link

libevent configure failed #44

Open jackleesec opened 4 years ago

jackleesec commented 4 years ago

Hi, When I try to compile libevent, it got error just at configure:

configure:3510: checking whether the C compiler works
configure:3532: /usr/local/popcorn/bin/clang -target aarch64-linux-gnu -popcorn-alignment   conftest.c  >&5
/usr/local/popcorn/bin/ld: internal error in global, at ../../gold/aarch64.cc:6228
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3536: $? = 1
configure:3574: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "libevent"
| #define VERSION "2.0.21-stable"
| #define NUMERIC_VERSION 0x02001500
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3579: error: in `/root/dir/libs/libevent-2.0.21-stable':
configure:3581: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##

How can I fix it?

I used this command:

./configure --prefix=/usr/local/popcorn/aarch64 --host=aarch64-linux-gnu --disable-shared CC=/usr/local/popcorn/bin/clang CFLAGS='-target aarch64-linux-gnu'