DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andrew Rybchenko <arybchenko@solarflare.com>
To: Santosh Shukla <santosh.shukla@caviumnetworks.com>,
	Jerin Jacob <jerin.jacob@caviumnetworks.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] octeontx_ssovf build issue on clang 6.0
Date: Tue, 8 May 2018 10:44:13 +0300	[thread overview]
Message-ID: <3f340d4b-0429-fdbc-1ff7-6e9607b6a308@solarflare.com> (raw)

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.

                 reply	other threads:[~2018-05-08  7:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f340d4b-0429-fdbc-1ff7-6e9607b6a308@solarflare.com \
    --to=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=jerin.jacob@caviumnetworks.com \
    --cc=santosh.shukla@caviumnetworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).