public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure @ 2010-04-22 9:00 kai dot ruottu at wippies dot com 2010-04-22 16:54 ` [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: kai dot ruottu at wippies dot com @ 2010-04-22 9:00 UTC (permalink / raw) To: gcc-bugs The code in 'gcc-4.5.0/gcc/configure' : -------------------- clip ----------------------------------- pluginlibs= if test x"$enable_plugin" = x"yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 $as_echo_n "checking for exported symbols... " >&6; } echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then : # No need to use a flag else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 $as_echo_n "checking for -rdynamic... " >&6; } ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then pluginlibs="-rdynamic" else enable_plugin=no fi fi -------------------- clip ----------------------------------- will cause an error when the $target-objdump doesn't understand the $host binaries like : -------------------- clip ----------------------------------- Links are now set up to build a cross-compiler from x86_64-unknown-linux-gnu to arm-unknown-elf. checking for exported symbols... /usr/local/cross-gcc-arm-elf-4.5.0/arm-elf/bin/objdump: conftest: File format not recognized checking for -rdynamic... /usr/local/cross-gcc-arm-elf-4.5.0/arm-elf/bin/objdump: conftest: File format not recognized -------------------- clip ----------------------------------- The host GCC (CC) compiles and links a program and then the executable will be looked with 'objdump' ($gcc_cv_objdump). But the latter is now pointing to the target one! -- Summary: gcc_cv_objdump pointing to wrong one in gcc/configure Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kai dot ruottu at wippies dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43847 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target 2010-04-22 9:00 [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure kai dot ruottu at wippies dot com @ 2010-04-22 16:54 ` pinskia at gcc dot gnu dot org 2010-06-04 9:51 ` doko at ubuntu dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-04-22 16:54 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2010-04-22 16:54 ------- Actually gcc_cv_objdump is correct for the rest of configure.ac; just we are using the incorrect one for the plugin test. Also note we need to use the one for built for the build for the host. (for Canadian crosses). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|other |bootstrap Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-04-22 16:54:18 date| | Summary|gcc_cv_objdump pointing to |test for plugin is using |wrong one in gcc/configure |wrong objdump for host != | |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43847 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target 2010-04-22 9:00 [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure kai dot ruottu at wippies dot com 2010-04-22 16:54 ` [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target pinskia at gcc dot gnu dot org @ 2010-06-04 9:51 ` doko at ubuntu dot com 2010-06-08 8:36 ` doko at ubuntu dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: doko at ubuntu dot com @ 2010-06-04 9:51 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from doko at ubuntu dot com 2010-06-04 09:51 ------- having an objdump which supports both the host and the target works around this issue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43847 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target 2010-04-22 9:00 [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure kai dot ruottu at wippies dot com 2010-04-22 16:54 ` [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target pinskia at gcc dot gnu dot org 2010-06-04 9:51 ` doko at ubuntu dot com @ 2010-06-08 8:36 ` doko at ubuntu dot com 2010-09-09 18:23 ` doko at gcc dot gnu dot org 2010-09-09 18:25 ` doko at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: doko at ubuntu dot com @ 2010-06-08 8:36 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from doko at ubuntu dot com 2010-06-08 08:35 ------- proposed patch at http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00658.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43847 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target 2010-04-22 9:00 [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure kai dot ruottu at wippies dot com ` (2 preceding siblings ...) 2010-06-08 8:36 ` doko at ubuntu dot com @ 2010-09-09 18:23 ` doko at gcc dot gnu dot org 2010-09-09 18:25 ` doko at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: doko at gcc dot gnu dot org @ 2010-09-09 18:23 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from doko at gcc dot gnu dot org 2010-09-09 18:23 ------- Subject: Bug 43847 Author: doko Date: Thu Sep 9 18:22:48 2010 New Revision: 164113 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164113 Log: 2010-09-09 Matthias Klose <doko@ubuntu.com> PR bootstrap/43847 * configure.ac (--enable-plugin): Enhance for cross builds. * configure: Regenerate. Modified: trunk/gcc/ChangeLog trunk/gcc/configure trunk/gcc/configure.ac -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43847 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target 2010-04-22 9:00 [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure kai dot ruottu at wippies dot com ` (3 preceding siblings ...) 2010-09-09 18:23 ` doko at gcc dot gnu dot org @ 2010-09-09 18:25 ` doko at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: doko at gcc dot gnu dot org @ 2010-09-09 18:25 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from doko at gcc dot gnu dot org 2010-09-09 18:25 ------- Subject: Bug 43847 Author: doko Date: Thu Sep 9 18:25:26 2010 New Revision: 164114 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164114 Log: 2010-09-09 Matthias Klose <doko@ubuntu.com> PR bootstrap/43847 * configure.ac (--enable-plugin): Enhance for cross builds. * configure: Regenerate. Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/configure branches/gcc-4_5-branch/gcc/configure.ac -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43847 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-09 18:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-04-22 9:00 [Bug other/43847] New: gcc_cv_objdump pointing to wrong one in gcc/configure kai dot ruottu at wippies dot com 2010-04-22 16:54 ` [Bug bootstrap/43847] test for plugin is using wrong objdump for host != target pinskia at gcc dot gnu dot org 2010-06-04 9:51 ` doko at ubuntu dot com 2010-06-08 8:36 ` doko at ubuntu dot com 2010-09-09 18:23 ` doko at gcc dot gnu dot org 2010-09-09 18:25 ` doko at gcc dot gnu dot 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).