All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/mpd: fix build of GenParseName
Date: Sun, 31 Jan 2021 21:59:06 +0100	[thread overview]
Message-ID: <20210131215906.780921d2@windsurf.home> (raw)
In-Reply-To: <20210130112647.1835553-2-fontaine.fabrice@gmail.com>

On Sat, 30 Jan 2021 12:26:47 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix build of GenParseName which has been added in version 0.22:
> https://github.com/MusicPlayerDaemon/MPD/commit/fa45a8adfa44f6bc815ae7428770112c15c76d73
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/871e1362c44e5b68a149e6a5dd3caf99ea0d904a
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...-src-tag-meson.build-link-with-lstdc.patch | 37 +++++++++++++++++++
>  1 file changed, 37 insertions(+)
>  create mode 100644 package/mpd/0002-src-tag-meson.build-link-with-lstdc.patch
> 
> diff --git a/package/mpd/0002-src-tag-meson.build-link-with-lstdc.patch b/package/mpd/0002-src-tag-meson.build-link-with-lstdc.patch
> new file mode 100644
> index 0000000000..1a8bf42be9
> --- /dev/null
> +++ b/package/mpd/0002-src-tag-meson.build-link-with-lstdc.patch
> @@ -0,0 +1,37 @@
> +From cbe479fa76809af16efff7b699952403f306e3c8 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 30 Jan 2021 12:12:46 +0100
> +Subject: [PATCH] src/tag/meson.build: link with -lstdc++
> +
> +Link with -lstdc++ when building GenParseName to avoid the following
> +build failure:
> +
> +FAILED: src/tag/GenParseName
> +/usr/bin/gcc  -o src/tag/GenParseName src/tag/GenParseName.p/GenParseName.cxx.o src/tag/GenParseName.p/Names.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1

So, one of the object files was compiled with a C++ compiler, and it
uses "gcc" at link time. This is the issue, and it should instead use
g++ at link time.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2021-01-31 20:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-30 11:26 [Buildroot] [PATCH 1/2] package/mpd: disable documentation Fabrice Fontaine
2021-01-30 11:26 ` [Buildroot] [PATCH 2/2] package/mpd: fix build of GenParseName Fabrice Fontaine
2021-01-31 20:59   ` Thomas Petazzoni [this message]
2021-01-31 20:58 ` [Buildroot] [PATCH 1/2] package/mpd: disable documentation Thomas Petazzoni

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=20210131215906.780921d2@windsurf.home \
    --to=thomas.petazzoni@bootlin.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.