All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Hilliard <james.hilliard1@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v10 1/6] binutils: install libiberty for host build
Date: Sun, 17 Mar 2019 22:50:14 -0600	[thread overview]
Message-ID: <CADvTj4qctL8a789f=Xr4NdSToLiK5RPg7D2iHYncvkJE2KqubA@mail.gmail.com> (raw)
In-Reply-To: <20190206091531.104591-1-aduskett@gmail.com>

On Wed, Feb 6, 2019 at 2:15 AM <aduskett@gmail.com> wrote:
>
> From: Adam Duskett <Aduskett@gmail.com>
>
> Add --enable-install-libiberty to HOST_BINUTILS_CONF_OPTS to allow
> prelink-cross to build properly.
>
> Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> ---
> Changes v1 -> v7:
>   - Add patch to series.
>
> Changes v7 -> v10:
>   - None
>
>  package/binutils/binutils.mk | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
> index 4531b8d9c8..388e2192b4 100644
> --- a/package/binutils/binutils.mk
> +++ b/package/binutils/binutils.mk
> @@ -84,6 +84,7 @@ HOST_BINUTILS_CONF_OPTS = \
>         --target=$(GNU_TARGET_NAME) \
>         --disable-shared \
>         --enable-static \
> +       --enable-install-libiberty \
This appears to break host-gdb due to this incompatible non-pic
libiberty.a being in the library search path before the correct pic
version:
 -L/home/buildroot/buildroot/output/host/lib
-L/home/buildroot/buildroot/output/build/host-gdb-8.2.1/bfd/../libiberty/pic

build error for host-gdb:
/usr/bin/ld: /home/buildroot/buildroot/output/host/lib/libiberty.a(cp-demangle.o):
relocation R_X86_64_PC32 against symbol `cplus_demangle_builtin_types'
can not be used when making a shared object; recompile with -fPIC

Deleting the incompatible
/home/buildroot/buildroot/output/host/lib/libiberty.a allows host-gdb
to build successfully.
>         --with-sysroot=$(STAGING_DIR) \
>         --enable-poison-system-directories \
>         $(BINUTILS_DISABLE_GDB_CONF_OPTS) \
> --
> 2.20.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

  parent reply	other threads:[~2019-03-18  4:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-06  9:15 [Buildroot] [PATCH v10 1/6] binutils: install libiberty for host build aduskett at gmail.com
2019-02-06  9:15 ` [Buildroot] [PATCH v10 2/6] prelink-cross: new package aduskett at gmail.com
2019-03-17  9:43   ` Thomas Petazzoni
2019-02-06  9:15 ` [Buildroot] [PATCH v10 3/6] package/qemu: drop host kernel version check aduskett at gmail.com
2019-02-06  9:15 ` [Buildroot] [PATCH v10 4/6] gobject-introspection: new package aduskett at gmail.com
2019-02-06  9:15 ` [Buildroot] [PATCH v10 5/6] package/pkg-autotools.mk: Add PKG_GIR_EXTRA_LIBS_PATH variable aduskett at gmail.com
2019-03-17  8:57   ` Yann E. MORIN
2019-03-17  9:23     ` Yann E. MORIN
2019-02-06  9:15 ` [Buildroot] [PATCH v10 6/6] gstreamer1 packages: add support for introspection aduskett at gmail.com
2019-03-17 11:38   ` Yann E. MORIN
2019-03-17  9:42 ` [Buildroot] [PATCH v10 1/6] binutils: install libiberty for host build Thomas Petazzoni
2019-03-18  4:50 ` James Hilliard [this message]
2019-03-18 22:03 ` Yann E. MORIN
2019-03-19 18:08   ` Arnout Vandecappelle
2019-03-19 20:48     ` Yann E. MORIN
2019-03-19 21:17       ` Arnout Vandecappelle

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='CADvTj4qctL8a789f=Xr4NdSToLiK5RPg7D2iHYncvkJE2KqubA@mail.gmail.com' \
    --to=james.hilliard1@gmail.com \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.