From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/
Date: Wed, 15 Jun 2022 22:06:27 +0000 (UTC) [thread overview]
Message-ID: <1655330718.4302d08ccac50d123e66d3524f01243bcddf9601.sam@gentoo> (raw)
commit: 4302d08ccac50d123e66d3524f01243bcddf9601
Author: Dongsu Park <dpark <AT> linux <DOT> microsoft <DOT> com>
AuthorDate: Tue Jun 14 10:48:58 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 15 22:05:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4302d08c
sys-devel/gdb: fix cross build issues with configuring gmp libs
As gdb 11 or newer requires gmp libs as dependency, a cross build of
gdb 11.2 started to fail when its configure scripts try to detect if
gmp exists. The failure occurs mainly because the build still passes
'-L/usr/lib64` to LDFLAGS. Let's say, for example, host toolchains
outside of sysroot have amd64 libs, while the target inside of
sysroot should have arm64 libs. However, configure scripts of gdb 11.2
still try to find its libs outside of sysroot, /usr/lib64, although it
should find its libs inside of sysroot, e.g. /build/arm64/usr/lib64.
To fix the cross build issues, pass --with-sysroot as well as --libdir,
correctly with ${ESYSROOT}.
As a side note, for some reason, upstream gdb configure scripts are not
able to correctly make use of its gmp-specific options like --with-gmp
or --with-gmp-lib. Passing those options does not bring anything.
Also configure must have both --with-sysroot and --libdir, to make the
build work.
Signed-off-by: Dongsu Park <dpark <AT> linux.microsoft.com>
Closes: https://github.com/gentoo/gentoo/pull/25896
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-devel/gdb/{gdb-9999.ebuild => gdb-12.1-r1.ebuild} | 10 ++++++++++
sys-devel/gdb/gdb-9999.ebuild | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-12.1-r1.ebuild
similarity index 94%
copy from sys-devel/gdb/gdb-9999.ebuild
copy to sys-devel/gdb/gdb-12.1-r1.ebuild
index 0eab4cadf89c..993eca47f83f 100644
--- a/sys-devel/gdb/gdb-9999.ebuild
+++ b/sys-devel/gdb/gdb-12.1-r1.ebuild
@@ -96,6 +96,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
+ "${FILESDIR}"/${P}-readline-8.2-build.patch
)
pkg_setup() {
@@ -154,6 +155,15 @@ src_configure() {
# Ideally we would like automagic-or-disabled here.
# But the check does not quite work on i686: bug #760926.
$(use_enable cet)
+
+ # We need to set both configure options, --with-sysroot and --libdir,
+ # to fix cross build issues that happen when configuring gmp.
+ # We explicitly need --libdir. Having only --with-sysroot without
+ # --libdir would not fix the build issues.
+ # For some reason, it is not enough to set only --with-sysroot,
+ # also not enough to pass --with-gmp-xxx options.
+ --with-sysroot="${ESYSROOT}"
+ --libdir="${ESYSROOT}/usr/$(get_libdir)"
)
local sysroot="${EPREFIX}/usr/${CTARGET}"
diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
index 0eab4cadf89c..a431465d7f6a 100644
--- a/sys-devel/gdb/gdb-9999.ebuild
+++ b/sys-devel/gdb/gdb-9999.ebuild
@@ -154,6 +154,15 @@ src_configure() {
# Ideally we would like automagic-or-disabled here.
# But the check does not quite work on i686: bug #760926.
$(use_enable cet)
+
+ # We need to set both configure options, --with-sysroot and --libdir,
+ # to fix cross build issues that happen when configuring gmp.
+ # We explicitly need --libdir. Having only --with-sysroot without
+ # --libdir would not fix the build issues.
+ # For some reason, it is not enough to set only --with-sysroot,
+ # also not enough to pass --with-gmp-xxx options.
+ --with-sysroot="${ESYSROOT}"
+ --libdir="${ESYSROOT}/usr/$(get_libdir)"
)
local sysroot="${EPREFIX}/usr/${CTARGET}"
next reply other threads:[~2022-06-15 22:06 UTC|newest]
Thread overview: 296+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 22:06 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-28 14:58 [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/ Sam James
2023-12-08 9:54 Sam James
2023-12-08 8:48 Arthur Zamarin
2023-12-08 7:09 Arthur Zamarin
2023-12-08 7:09 Arthur Zamarin
2023-12-08 7:09 Arthur Zamarin
2023-12-08 7:09 Arthur Zamarin
2023-12-08 7:09 Arthur Zamarin
2023-12-08 7:09 Arthur Zamarin
2023-12-03 7:01 Sam James
2023-11-22 12:09 Sam James
2023-10-09 7:52 Sam James
2023-10-02 10:16 Sam James
2023-09-27 7:44 Sam James
2023-08-18 9:19 Sam James
2023-08-13 23:39 Sam James
2023-08-04 1:53 Sam James
2023-08-03 10:28 Arthur Zamarin
2023-08-02 15:11 Sam James
2023-07-26 23:11 Sam James
2023-07-26 23:11 Sam James
2023-07-26 23:11 Sam James
2023-07-26 7:11 Sam James
2023-07-26 7:11 Sam James
2023-07-19 21:48 Arsen Arsenović
2023-06-08 12:25 Arthur Zamarin
2023-06-07 20:04 Sam James
2023-06-07 17:30 Sam James
2023-06-07 17:30 Sam James
2023-06-07 17:30 Sam James
2023-06-07 16:43 Sam James
2023-06-07 16:39 Sam James
2023-06-07 16:34 Sam James
2023-05-29 18:21 Sam James
2023-05-27 11:33 Sam James
2023-05-12 4:12 Sam James
2023-05-03 18:55 Sam James
2023-05-01 5:06 Arthur Zamarin
2023-05-01 1:53 Sam James
2023-04-30 7:26 Sam James
2023-04-30 7:03 Sam James
2023-04-30 7:03 Sam James
2023-04-30 7:03 Sam James
2023-04-30 7:03 Sam James
2023-04-30 6:49 Sam James
2023-04-29 12:56 Arthur Zamarin
2023-04-29 7:47 Arthur Zamarin
2023-04-29 6:06 Sam James
2023-04-29 6:06 Sam James
2023-04-29 5:58 Arthur Zamarin
2023-04-29 5:58 Arthur Zamarin
2023-04-29 5:58 Arthur Zamarin
2023-04-29 5:46 Sam James
2023-04-29 4:44 Sam James
2023-03-25 4:03 Sam James
2023-03-04 2:30 Sam James
2023-02-23 20:29 Sam James
2023-02-19 16:38 Sam James
2023-02-02 20:57 Sam James
2023-02-02 20:57 Sam James
2023-02-02 20:56 Sam James
2023-02-02 13:09 Sam James
2023-01-28 19:11 Arthur Zamarin
2023-01-28 0:15 Sam James
2023-01-26 6:14 Sam James
2023-01-26 6:14 Sam James
2023-01-26 6:14 Sam James
2023-01-16 0:50 Sam James
2023-01-15 1:41 Sam James
2023-01-13 9:24 Sam James
2023-01-11 7:50 Sam James
2023-01-11 6:04 Sam James
2023-01-11 6:04 Sam James
2023-01-11 6:04 Sam James
2023-01-11 6:04 Sam James
2023-01-11 6:04 Sam James
2023-01-11 5:15 Sam James
2023-01-10 6:50 Sam James
2022-12-26 11:59 Sam James
2022-12-17 4:52 Sam James
2022-12-14 0:09 Sam James
2022-12-06 3:54 WANG Xuerui
2022-12-06 3:07 WANG Xuerui
2022-12-05 9:29 WANG Xuerui
2022-12-02 14:03 Arthur Zamarin
2022-12-02 14:03 Arthur Zamarin
2022-12-02 7:52 Sam James
2022-12-02 7:50 Arthur Zamarin
2022-12-02 6:22 Arthur Zamarin
2022-12-02 6:22 Arthur Zamarin
2022-12-02 5:58 Sam James
2022-12-02 5:53 Sam James
2022-12-02 5:46 Sam James
2022-11-30 0:50 Georgy Yakovlev
2022-09-29 21:59 Sam James
2022-07-28 6:40 Sam James
2022-06-12 13:14 Sam James
2022-06-09 3:28 Sam James
2022-05-26 5:48 Sam James
2022-05-26 5:48 Sam James
2022-05-01 21:26 Sam James
2022-03-20 0:38 Sam James
2022-02-25 7:54 Arthur Zamarin
2022-02-19 12:02 Arthur Zamarin
2022-02-19 12:02 Arthur Zamarin
2022-02-19 10:04 Arthur Zamarin
2022-02-19 5:20 Sam James
2022-02-19 3:38 Sam James
2022-02-19 3:02 Sam James
2022-02-19 2:42 Sam James
2022-01-17 1:57 Sam James
2022-01-14 18:47 Sam James
2022-01-02 17:49 David Seifert
2021-12-31 21:45 Arthur Zamarin
2021-12-25 10:02 Georgy Yakovlev
2021-12-01 13:32 Agostino Sarubbo
2021-11-15 16:29 Agostino Sarubbo
2021-11-10 7:05 Agostino Sarubbo
2021-11-08 10:10 Agostino Sarubbo
2021-11-08 10:10 Agostino Sarubbo
2021-11-03 21:09 Sam James
2021-10-25 12:04 Sam James
2021-10-25 12:04 Sam James
2021-10-25 12:04 Sam James
2021-10-11 4:32 Sam James
2021-10-11 4:32 Sam James
2021-09-25 5:18 Agostino Sarubbo
2021-09-19 2:24 Sam James
2021-09-17 9:20 Agostino Sarubbo
2021-09-16 8:05 Agostino Sarubbo
2021-09-16 8:03 Agostino Sarubbo
2021-09-15 7:59 Agostino Sarubbo
2021-08-26 23:21 Sam James
2021-06-07 13:19 Agostino Sarubbo
2021-06-07 13:18 Agostino Sarubbo
2021-06-07 13:16 Agostino Sarubbo
2021-06-06 7:16 Agostino Sarubbo
2021-06-06 7:14 Agostino Sarubbo
2021-05-15 18:10 Sergei Trofimovich
2021-04-25 8:56 Sergei Trofimovich
2021-04-25 8:56 Sergei Trofimovich
2021-02-09 14:08 Sergei Trofimovich
2021-01-06 15:32 Fabian Groffen
2021-01-05 8:42 Sergei Trofimovich
2021-01-03 13:23 Sergei Trofimovich
2020-12-27 18:18 Fabian Groffen
2020-12-04 15:11 Fabian Groffen
2020-11-27 16:10 Agostino Sarubbo
2020-11-27 16:08 Agostino Sarubbo
2020-11-27 16:04 Agostino Sarubbo
2020-11-27 10:54 Sergei Trofimovich
2020-11-27 8:42 Agostino Sarubbo
2020-11-27 7:55 Agostino Sarubbo
2020-11-26 19:48 Sam James
2020-11-26 19:48 Sam James
2020-11-26 16:38 Thomas Deutschmann
2020-11-07 20:22 Sergei Trofimovich
2020-11-07 19:44 Sergei Trofimovich
2020-10-24 8:52 Sergei Trofimovich
2020-10-15 23:20 Sergei Trofimovich
2020-10-15 9:13 Alexey Shvetsov
2020-10-13 9:58 Agostino Sarubbo
2020-09-06 7:49 Sergei Trofimovich
2020-09-04 12:05 Sergei Trofimovich
2020-08-29 14:48 Thomas Deutschmann
2020-07-29 11:45 Mikle Kolyada
2020-07-19 21:35 Sam James
2020-07-18 18:09 Sam James
2020-05-24 11:37 Sergei Trofimovich
2020-04-17 19:06 Craig Andrews
2020-04-08 7:43 Sergei Trofimovich
2020-03-23 23:58 Sergei Trofimovich
2020-03-17 17:56 Mart Raudsepp
2020-03-16 21:23 Sergei Trofimovich
2020-03-16 18:25 Sergei Trofimovich
2020-03-14 19:24 Sergei Trofimovich
2020-03-07 12:03 Agostino Sarubbo
2020-03-07 10:54 Agostino Sarubbo
2020-03-07 10:50 Agostino Sarubbo
2020-03-07 8:59 Agostino Sarubbo
2020-03-07 8:25 Agostino Sarubbo
2020-03-06 12:32 Agostino Sarubbo
2020-03-06 11:35 Agostino Sarubbo
2020-02-15 9:49 Sergei Trofimovich
2020-02-10 12:12 Michał Górny
2020-02-08 18:41 Sergei Trofimovich
2020-02-08 16:20 Sergei Trofimovich
2020-01-21 8:26 Sergei Trofimovich
2020-01-20 19:38 Sergei Trofimovich
2019-12-24 14:13 Mikle Kolyada
2019-12-13 16:15 Agostino Sarubbo
2019-12-10 10:54 Agostino Sarubbo
2019-12-08 10:58 Sergei Trofimovich
2019-12-03 11:58 Agostino Sarubbo
2019-12-03 11:56 Agostino Sarubbo
2019-12-03 10:06 Agostino Sarubbo
2019-12-03 10:03 Agostino Sarubbo
2019-12-03 8:37 Agostino Sarubbo
2019-12-03 3:37 Aaron Bauman
2019-11-10 22:14 Sergei Trofimovich
2019-11-10 22:14 Sergei Trofimovich
2019-09-30 21:52 Sergei Trofimovich
2019-09-29 10:16 Michał Górny
2019-09-20 23:56 Sergei Trofimovich
2019-08-27 7:31 Sergei Trofimovich
2019-07-28 10:36 Mikle Kolyada
2019-07-28 10:36 Mikle Kolyada
2019-07-28 10:36 Mikle Kolyada
2019-07-22 13:16 Aaron Bauman
2019-07-18 14:13 Agostino Sarubbo
2019-07-18 13:10 Agostino Sarubbo
2019-07-18 11:45 Agostino Sarubbo
2019-07-18 10:01 Agostino Sarubbo
2019-07-18 9:57 Agostino Sarubbo
2019-07-17 14:03 Agostino Sarubbo
2019-07-01 19:23 Thomas Deutschmann
2019-06-30 8:58 Sergei Trofimovich
2019-06-29 13:22 Agostino Sarubbo
2019-05-11 22:11 Sergei Trofimovich
2019-05-05 18:34 Andreas K. Hüttel
2019-03-12 21:35 Sergei Trofimovich
2019-02-12 22:30 James Le Cuirot
2018-12-23 11:38 Sergei Trofimovich
2018-12-03 2:43 Jonathan Callen
2018-09-05 18:53 Sergei Trofimovich
2018-09-05 18:53 Sergei Trofimovich
2018-07-31 21:16 Sergei Trofimovich
2018-07-24 19:11 Sergei Trofimovich
2018-07-24 0:45 Mikle Kolyada
2018-07-10 19:47 Markus Meier
2018-07-01 20:37 Sergei Trofimovich
2018-07-01 20:37 Sergei Trofimovich
2018-06-28 12:07 Mart Raudsepp
2018-06-25 16:06 Tobias Klausmann
2018-06-25 6:21 Sergei Trofimovich
2018-06-24 12:37 Jason Zaman
2018-06-23 15:43 Andreas Hüttel
2018-06-08 20:54 Sergei Trofimovich
2018-04-24 9:20 Anthony G. Basile
2018-04-24 9:20 Anthony G. Basile
2018-04-11 18:39 Tobias Klausmann
2018-03-20 7:30 Sergei Trofimovich
2018-03-10 20:13 Sergei Trofimovich
2018-02-18 12:10 Sergei Trofimovich
2018-02-05 16:28 Manuel Rüger
2018-01-30 8:17 Sergei Trofimovich
2018-01-12 4:14 Mike Frysinger
2017-10-11 21:40 Steve Arnold
2017-10-06 13:58 Manuel Rüger
2017-10-04 13:54 Manuel Rüger
2017-10-04 13:52 Manuel Rüger
2017-09-23 13:18 Sergei Trofimovich
2017-08-27 9:08 Fabian Groffen
2017-06-15 16:08 Markus Meier
2017-06-11 17:36 Matthias Maier
2017-06-09 10:19 Agostino Sarubbo
2017-06-08 10:16 Agostino Sarubbo
2017-06-07 19:36 Andreas Hüttel
2017-06-07 19:36 Andreas Hüttel
2017-05-07 18:19 Michał Górny
2017-03-21 15:46 Michael Haubenwallner
2017-01-23 21:05 Mike Frysinger
2016-11-15 19:28 Mike Frysinger
2016-11-11 0:19 Mike Frysinger
2016-06-01 2:42 Mike Frysinger
2016-02-24 16:01 Mike Frysinger
2016-02-24 16:01 Mike Frysinger
2016-02-24 16:01 Mike Frysinger
2016-02-24 16:01 Mike Frysinger
2016-02-13 20:48 Mike Frysinger
2016-01-23 8:54 Jeroen Roovers
2016-01-17 17:02 Agostino Sarubbo
2016-01-12 20:19 Markus Meier
2016-01-11 9:07 Agostino Sarubbo
2016-01-10 10:34 Agostino Sarubbo
2016-01-09 6:43 Agostino Sarubbo
2016-01-06 13:34 Agostino Sarubbo
2016-01-05 10:49 Agostino Sarubbo
2015-12-05 21:13 Mike Frysinger
2015-10-12 16:37 Mike Frysinger
2015-09-26 18:15 Mike Frysinger
2015-09-26 18:15 Mike Frysinger
2015-09-21 11:27 Agostino Sarubbo
2015-09-20 17:57 Mike Frysinger
2015-09-20 9:30 Agostino Sarubbo
2015-09-20 6:19 Jeroen Roovers
2015-09-06 13:25 Agostino Sarubbo
2015-09-06 7:45 Markus Meier
2015-08-30 17:05 Mikle Kolyada
2015-08-30 15:29 Tobias Klausmann
2015-08-28 22:13 Mike Frysinger
2015-08-28 1:04 Mike Frysinger
2015-08-28 1:04 Mike Frysinger
2015-08-16 11:30 Justin Lecher
2015-08-12 15:45 Mike Frysinger
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=1655330718.4302d08ccac50d123e66d3524f01243bcddf9601.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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