public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/67590] New: libcc1 cannot find objdump when cross build native @ 2015-09-15 14:38 syq at debian dot org 2015-09-23 16:59 ` [Bug other/67590] " doko at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: syq at debian dot org @ 2015-09-15 14:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67590 Bug ID: 67590 Summary: libcc1 cannot find objdump when cross build native Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: syq at debian dot org Target Milestone: --- The configure of libcc1 uses gcc_cv_objdump var when cross build native. while it is not defined at all. So we can use gcc/configure.ac one. Index: gcc-5-5.2.1/src/libcc1/configure.ac =================================================================== --- gcc-5-5.2.1.orig/src/libcc1/configure.ac +++ gcc-5-5.2.1/src/libcc1/configure.ac @@ -63,6 +63,31 @@ if test "$GXX" = yes; then fi AC_SUBST(libsuffix) +# Figure out what objdump we will be using. +AS_VAR_SET_IF(gcc_cv_objdump,, [ +if test -f $gcc_cv_binutils_srcdir/configure.in \ + && test -f ../binutils/Makefile \ + && test x$build = x$host; then + # Single tree build which includes binutils. + gcc_cv_objdump=../binutils/objdump$build_exeext +elif test -x objdump$build_exeext; then + gcc_cv_objdump=./objdump$build_exeext +elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then + gcc_cv_objdump="$OBJDUMP_FOR_TARGET" +else + AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET) +fi]) + +AC_MSG_CHECKING(what objdump to use) +if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then + # Single tree build which includes binutils. + AC_MSG_RESULT(newly built objdump) +elif test x$gcc_cv_objdump = x; then + AC_MSG_RESULT(not found) +else + AC_MSG_RESULT($gcc_cv_objdump) +fi + dnl Test for -lsocket and -lnsl. Copied from libgo/configure.ac. AC_CACHE_CHECK([for socket libraries], libcc1_cv_lib_sockets, [libcc1_cv_lib_sockets= ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/67590] libcc1 cannot find objdump when cross build native 2015-09-15 14:38 [Bug other/67590] New: libcc1 cannot find objdump when cross build native syq at debian dot org @ 2015-09-23 16:59 ` doko at gcc dot gnu.org 2022-01-09 22:46 ` [Bug libcc1/67590] " tromey at gcc dot gnu.org 2023-02-13 8:57 ` christer.solskogen at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: doko at gcc dot gnu.org @ 2015-09-23 16:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67590 Matthias Klose <doko at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doko at gcc dot gnu.org --- Comment #1 from Matthias Klose <doko at gcc dot gnu.org> --- please send the patch together with an appropriate changelog entry to the gcc-pat ches ML, maybe referencing this PR. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libcc1/67590] libcc1 cannot find objdump when cross build native 2015-09-15 14:38 [Bug other/67590] New: libcc1 cannot find objdump when cross build native syq at debian dot org 2015-09-23 16:59 ` [Bug other/67590] " doko at gcc dot gnu.org @ 2022-01-09 22:46 ` tromey at gcc dot gnu.org 2023-02-13 8:57 ` christer.solskogen at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: tromey at gcc dot gnu.org @ 2022-01-09 22:46 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67590 Tom Tromey <tromey at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu.org --- Comment #2 from Tom Tromey <tromey at gcc dot gnu.org> --- This use seems to come from config/gcc-plugin.m4. So, I think the patch ought to be applied there, and I suppose the code from gcc/configure.in removed. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libcc1/67590] libcc1 cannot find objdump when cross build native 2015-09-15 14:38 [Bug other/67590] New: libcc1 cannot find objdump when cross build native syq at debian dot org 2015-09-23 16:59 ` [Bug other/67590] " doko at gcc dot gnu.org 2022-01-09 22:46 ` [Bug libcc1/67590] " tromey at gcc dot gnu.org @ 2023-02-13 8:57 ` christer.solskogen at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: christer.solskogen at gmail dot com @ 2023-02-13 8:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67590 Christer Solskogen <christer.solskogen at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christer.solskogen at gmail dot co | |m --- Comment #3 from Christer Solskogen <christer.solskogen at gmail dot com> --- One workaround is adding gcc_cv_objdump=${TARGET}-objdump to the make command. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-13 8:57 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-09-15 14:38 [Bug other/67590] New: libcc1 cannot find objdump when cross build native syq at debian dot org 2015-09-23 16:59 ` [Bug other/67590] " doko at gcc dot gnu.org 2022-01-09 22:46 ` [Bug libcc1/67590] " tromey at gcc dot gnu.org 2023-02-13 8:57 ` christer.solskogen at gmail dot com
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).