public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug plugins/95648] New: gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump
@ 2020-06-11 22:13 slyfox at inbox dot ru
2020-06-11 23:13 ` [Bug plugins/95648] " slyfox at inbox dot ru
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: slyfox at inbox dot ru @ 2020-06-11 22:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95648
Bug ID: 95648
Summary: gcc/configure: line 26509: objdump: command not found:
config/gcc-plugin.m4 uses 'objdump' instead of
${host}-objdump
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: plugins
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at inbox dot ru
CC: pmuldoon at gcc dot gnu.org
Target Milestone: ---
Looks similar to bug #67590.
Gentoo always builds gcc as:
$ ./configure --build=... --host=... --target=...
and assumes tool-prefixed tools to be always used, like ${CHOST}-ld,
${CHOST}-nm. To make sure there are no accidental fallbacks to unprefixed tools
we have an optional mode to remove tools like 'objdump' and leave only
${CHOST}-objdump around.
It almost always work except for gcc plugins where objdump is referred as-is.
Here is the full problematic configure command:
"""
$ /tmp/portage/cross-avr/gcc-10.1.0/work/gcc-10.1.0/configure
--host=x86_64-pc-linux-gnu --target=avr --build=x86_64-pc-linux-gnu
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/10.1.0
--includedir=/usr/lib/gcc/avr/10.1.0/include
--datadir=/usr/share/gcc-data/avr/10.1.0
--mandir=/usr/share/gcc-data/avr/10.1.0/man
--infodir=/usr/share/gcc-data/avr/10.1.0/info
--with-gxx-include-dir=/usr/lib/gcc/avr/10.1.0/include/g++-v10
--with-python-dir=/share/gcc-data/avr/10.1.0/python --enable-languages=c
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 10.1.0 p1
--disable-esp --enable-poison-system-directories --enable-shared
--disable-threads --disable-bootstrap --enable-multilib --disable-fixed-point
--disable-libgomp --disable-libmudflap --disable-libssp --disable-libada
--disable-systemtap --disable-vtable-verify --disable-libvtv --without-zstd
--disable-libquadmath --enable-lto --without-isl --disable-libsanitizer
--disable-default-pie --enable-default-ssp
$ make
...
checking dl_iterate_phdr in target C library... unknown
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to avoid linking multiple front-ends at once... no
Links are now set up to build a cross-compiler
from x86_64-pc-linux-gnu to avr-unknown-none.
checking for exported symbols...
/tmp/portage/cross-avr/gcc-10.1.0/work/gcc-10.1.0/gcc/configure: line 26509:
objdump: command not found
yes
checking for -rdynamic...
/tmp/portage/cross-avr/gcc-10.1.0/work/gcc-10.1.0/gcc/configure: line 26519:
objdump: command not found
no
...
"""
Note: objdump is referred here from config/gcc-plugin.m4:
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=config/gcc-plugin.m4;h=8f278719118277230f493e0185fb2a09593e9e45;hb=HEAD#l46
"""
47 if test x$build = x$host; then
48 export_sym_check="objdump${exeext} -T"
49 elif test x$host = x$target; then
50 export_sym_check="$gcc_cv_objdump -T"
51 else
52 export_sym_check=
53 fi
"""
AFAIU here 'export_sym_check="objdump${exeext} -T"' is triggered.
Should it use an $ac_cv_prog_OBJDUMP value instead?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug plugins/95648] gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump
2020-06-11 22:13 [Bug plugins/95648] New: gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump slyfox at inbox dot ru
@ 2020-06-11 23:13 ` slyfox at inbox dot ru
2022-06-01 21:25 ` cvs-commit at gcc dot gnu.org
2022-06-01 21:25 ` law at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: slyfox at inbox dot ru @ 2020-06-11 23:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95648
--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
The following seems to be enough to use detected objdump:
--- a/config/gcc-plugin.m4
+++ b/config/gcc-plugin.m4
@@ -45,7 +45,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
;;
*)
if test x$build = x$host; then
- export_sym_check="objdump${exeext} -T"
+ export_sym_check="$ac_cv_prog_OBJDUMP -T"
elif test x$host = x$target; then
export_sym_check="$gcc_cv_objdump -T"
else
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug plugins/95648] gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump
2020-06-11 22:13 [Bug plugins/95648] New: gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump slyfox at inbox dot ru
2020-06-11 23:13 ` [Bug plugins/95648] " slyfox at inbox dot ru
@ 2022-06-01 21:25 ` cvs-commit at gcc dot gnu.org
2022-06-01 21:25 ` law at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-01 21:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95648
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <law@gcc.gnu.org>:
https://gcc.gnu.org/g:c4c3cd5ca5fe13724253d4270dc643fbc6b7f557
commit r13-922-gc4c3cd5ca5fe13724253d4270dc643fbc6b7f557
Author: David Seifert <soap@gentoo.org>
Date: Wed Jun 1 17:21:44 2022 -0400
[PATCH] configure: use OBJDUMP determined by libtool [PR95648]
$ac_cv_prog_OBJDUMP contains the --host OBJDUMP that
libtool has inferred. Current config/gcc-plugin.m4 does
not respect the user's choice for OBJDUMP.
PR plugins/95648
config/
* gcc-plugin.m4: Use libtool's $ac_cv_prog_OBJDUMP.
gcc/
* configure: Regenerate.
libcc1/
* configure: Regenerate.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug plugins/95648] gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump
2020-06-11 22:13 [Bug plugins/95648] New: gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump slyfox at inbox dot ru
2020-06-11 23:13 ` [Bug plugins/95648] " slyfox at inbox dot ru
2022-06-01 21:25 ` cvs-commit at gcc dot gnu.org
@ 2022-06-01 21:25 ` law at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: law at gcc dot gnu.org @ 2022-06-01 21:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95648
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
CC| |law at gcc dot gnu.org
--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Fixed on the trunk.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-01 21:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 22:13 [Bug plugins/95648] New: gcc/configure: line 26509: objdump: command not found: config/gcc-plugin.m4 uses 'objdump' instead of ${host}-objdump slyfox at inbox dot ru
2020-06-11 23:13 ` [Bug plugins/95648] " slyfox at inbox dot ru
2022-06-01 21:25 ` cvs-commit at gcc dot gnu.org
2022-06-01 21:25 ` law at gcc dot gnu.org
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 read-only IMAP folder(s) and NNTP newsgroup(s).