[dpdk-dev] octeontx_ssovf build issue on clang 6.0

Andrew Rybchenko arybchenko at solarflare.com
Tue May 8 09:44:13 CEST 2018


Hi,

dpdk master build fails for me on Ubuntu 18.04 with clang installed. 
I've not tried to dig it.

/tmp/dpdk-next-net/x86_64-native-linuxapp-clang/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): 
In functi
on `timvf_timer_cancel_burst':
timvf_worker.c:(.text+0x80): undefined reference to `__atomic_fetch_add_8'
/tmp/dpdk-next-net/x86_64-native-linuxapp-clang/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): 
In functi
on `timvf_timer_arm_burst_sp':
timvf_worker.c:(.text+0x224): undefined reference to `__atomic_fetch_add_8'
timvf_worker.c:(.text+0x26f): undefined reference to `__atomic_store_2'
timvf_worker.c:(.text+0x2af): undefined reference to `__atomic_fetch_add_4'
timvf_worker.c:(.text+0x320): undefined reference to `__atomic_store_2'
/tmp/dpdk-next-net/x86_64-native-linuxapp-clang/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): 
In functi
on `timvf_timer_arm_burst_mp':
timvf_worker.c:(.text+0x498): undefined reference to `__atomic_fetch_add_8'
timvf_worker.c:(.text+0x525): undefined reference to `__atomic_store_2'
timvf_worker.c:(.text+0x557): undefined reference to `__atomic_fetch_add_4'
timvf_worker.c:(.text+0x5de): undefined reference to `__atomic_store_2'
/tmp/dpdk-next-net/x86_64-native-linuxapp-clang/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): 
In functi
on `timvf_timer_arm_tmo_brst':
timvf_worker.c:(.text+0x9ae): undefined reference to `__atomic_fetch_add_8'
timvf_worker.c:(.text+0xbc2): undefined reference to `__atomic_fetch_sub_2'
timvf_worker.c:(.text+0xcf7): undefined reference to `__atomic_fetch_sub_2'
timvf_worker.c:(.text+0xd04): undefined reference to `__atomic_fetch_add_4'
timvf_worker.c:(.text+0xecc): undefined reference to `__atomic_store_2'
timvf_worker.c:(.text+0xed9): undefined reference to `__atomic_fetch_add_4'
clang: fatal error: linker command failed with exit code 1 (use -v to 
see invocation)
make[3]: *** [dpdk-procinfo] Error 1
make[2]: *** [proc-info] Error 2
make[2]: *** Waiting for unfinished jobs....

$ clang --version
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Andrew.


More information about the dev mailing list