DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Mattias Rönnblom" <hofors@lysator.liu.se>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: "Mattias Rönnblom" <mattias.ronnblom@ericsson.com>
Subject: PIE static library builds
Date: Tue, 14 Mar 2023 17:22:02 +0100	[thread overview]
Message-ID: <e164b124-f565-21f4-ba42-ade4fd54282c@lysator.liu.se> (raw)

Hi.

Is the "b_staticpic" meson build option supposed to work with DPDK?

Setting it to "false" (default is "true") causes link failures on Ubuntu 
22.04, with GCC 9 and 11, on v23.03rc1 and v22.11:

/usr/bin/ld: lib/librte_eal.a.p/eal_common_eal_common_errno.c.o: 
relocation R_X86_64_TPOFF32 against `per_lcore_retval.1' can not be used 
when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status

Does something per-lcore/TLS-related require PIC builds, even for static 
libraries?

Regards,
	Mattias

             reply	other threads:[~2023-03-14 16:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-14 16:22 Mattias Rönnblom [this message]
2023-03-14 16:29 ` Bruce Richardson
2023-03-14 18:04   ` Mattias Rönnblom
2023-03-14 18:31     ` Bruce Richardson
2023-03-15 14:18       ` Bruce Richardson
2023-03-15 15:45         ` Mattias Rönnblom
2023-03-15 15:55           ` Bruce Richardson

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=e164b124-f565-21f4-ba42-ade4fd54282c@lysator.liu.se \
    --to=hofors@lysator.liu.se \
    --cc=dev@dpdk.org \
    --cc=mattias.ronnblom@ericsson.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).