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