On x86_64-apple-darwin9, since the system compiler defaults to -m32, an error in the testsuite is revealed where the test-demangle, test-expandargv, and test-pexecute executables are erroneously compiled with the system compiler instead of the newly built gcc compiler. This shows up as...
make[2]: Nothing to be done for `check'. gcc -DHAVE_CONFIG_H -g -O2 -I.. -I../../../gcc-4.5-20091205/libiberty/testsuite/../../include -o test-demangle \ ../../../gcc-4.5-20091205/libiberty/testsuite/test-demangle.c ../libiberty.a ld warning: in ../libiberty.a, file is not of required architecture Undefined symbols: "_cplus_demangle_name_to_style", referenced from: _main in ccVk85Q2.o _main in ccVk85Q2.o "_cplus_demangle", referenced from: _main in ccVk85Q2.o _main in ccVk85Q2.o "_cplus_demangle_set_style", referenced from: _main in ccVk85Q2.o "_is_gnu_v3_mangled_dtor", referenced from: _main in ccVk85Q2.o "_xmalloc", referenced from: _get_line in ccVk85Q2.o "_xrealloc", referenced from: _get_line in ccVk85Q2.o "_is_gnu_v3_mangled_ctor", referenced from: _main in ccVk85Q2.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [test-demangle] Error 1 gcc -DHAVE_CONFIG_H -g -O2 -I.. -I../../../gcc-4.5-20091205/libiberty/testsuite/../../include -DHAVE_CONFIG_H -I.. -o test-pexecute \ ../../../gcc-4.5-20091205/libiberty/testsuite/test-pexecute.c ../libiberty.a ld warning: in ../libiberty.a, file is not of required architecture Undefined symbols: "_pexecute", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o "_pex_read_output", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o "_pex_get_status", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o "_pex_init", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o "_pex_run", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o "_pex_free", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o _main in ccRO9MYo.o "_xstrerror", referenced from: _fatal_error in ccRO9MYo.o "_pwait", referenced from: _main in ccRO9MYo.o _main in ccRO9MYo.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [test-pexecute] Error 1 gcc -DHAVE_CONFIG_H -g -O2 -I.. -I../../../gcc-4.5-20091205/libiberty/testsuite/../../include -DHAVE_CONFIG_H -I.. -o test-expandargv \ ../../../gcc-4.5-20091205/libiberty/testsuite/test-expandargv.c ../libiberty.a ld warning: in ../libiberty.a, file is not of required architecture Undefined symbols: "_dupargv", referenced from: _run_tests in ccL7RWVj.o _run_tests in ccL7RWVj.o "_expandargv", referenced from: _run_tests in ccL7RWVj.o "_xstrerror", referenced from: _fatal_error in ccL7RWVj.o "_freeargv", referenced from: _run_tests in ccL7RWVj.o _run_tests in ccL7RWVj.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [test-expandargv] Error 1 make[3]: Target `check' not remade because of errors. make[2]: *** [check-subdir] Error 2 make[2]: Target `check' not remade because of errors. make[1]: *** [check-libiberty] Error 2 make[1]: Target `check-host' not remade because of errors. -- Summary: test-demangle, test-pexecute and test-expandargv compiled with wrong compiler Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: howarth at nitro dot med dot uc dot edu GCC build triplet: x86_64-apple-darwin9 GCC host triplet: x86_64-apple-darwin9 GCC target triplet: x86_64-apple-darwin9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42308