[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unikraft - Compile error on arm64



Hi,

I am seeing compile errors when building hello world application on
arm64 running Debian Bullseye.

2020-09-12 09:45:55 INFO     LD      helloworld_kvm-arm64.dbg
/usr/bin/ld: 
/home/punit/src/unikraft/apps/helloworld/build/helloworld_kvm-arm64.o: in 
function `__uk_test_and_clear_bit':
/home/punit/src/unikraft/unikraft/include/uk/bitops.h:284: undefined reference 
to `__aarch64_ldclr1_relax'
/home/punit/src/unikraft/unikraft/include/uk/bitops.h:284:(.text+0x508): 
relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 
`__aarch64_ldclr1_relax'
/usr/bin/ld: 
/home/punit/src/unikraft/apps/helloworld/build/helloworld_kvm-arm64.o: in 
function `__uk_test_and_set_bit':
/home/punit/src/unikraft/unikraft/include/uk/bitops.h:328: undefined reference 
to `__aarch64_ldset1_relax'
/home/punit/src/unikraft/unikraft/include/uk/bitops.h:328:(.text+0x2cc0): 
relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 
`__aarch64_ldset1_relax'
collect2: error: ld returned 1 exit status

It seems that using "-no-pie" causes the helpers for builtin atomics to
go missing on arm64. A quick hack to drop the "-no-pie" leads to
conflicts with "-r".

For reference, the compiler version is -

% gcc --version
gcc (Debian 10.2.0-6) 10.2.0

I was wondering what I am doing wrong. Any suggestions on how to resolve
this?

Thanks,
Punit



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.