This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/42308] test-demangle, test-pexecute and test-expandargv compiled with wrong compiler
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2010 01:11:45 -0000
- Subject: [Bug testsuite/42308] test-demangle, test-pexecute and test-expandargv compiled with wrong compiler
- References: <bug-42308-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from howarth at nitro dot med dot uc dot edu 2010-03-01 01:11 -------
This also happens for i686-apple-darwin10....
make[2]: Nothing to be done for `check'.
gcc -DHAVE_CONFIG_H -g -O2 -I..
-I../../../gcc-4.5-20100228/libiberty/testsuite/../../include -o test-demangle
\
../../../gcc-4.5-20100228/libiberty/testsuite/test-demangle.c
../libiberty.a
ld: warning: in ../libiberty.a, file is not of required architecture
Undefined symbols:
"_is_gnu_v3_mangled_dtor", referenced from:
_main in cca5XU3G.o
"_is_gnu_v3_mangled_ctor", referenced from:
_main in cca5XU3G.o
"_cplus_demangle_set_style", referenced from:
_main in cca5XU3G.o
_main in cca5XU3G.o
"_xmalloc", referenced from:
_get_line in cca5XU3G.o
"_cplus_demangle_name_to_style", referenced from:
_main in cca5XU3G.o
_main in cca5XU3G.o
"_xrealloc", referenced from:
_get_line in cca5XU3G.o
"_cplus_demangle", referenced from:
_main in cca5XU3G.o
_main in cca5XU3G.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-20100228/libiberty/testsuite/../../include -DHAVE_CONFIG_H
-I.. -o test-pexecute \
../../../gcc-4.5-20100228/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 ccp2aaPu.o
_main in ccp2aaPu.o
"_pex_init", referenced from:
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
"_pex_get_status", referenced from:
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
"_pex_read_output", referenced from:
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
"_pex_run", referenced from:
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
"_pex_free", referenced from:
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
_main in ccp2aaPu.o
"_xstrerror", referenced from:
_fatal_error in ccp2aaPu.o
"_pwait", referenced from:
_main in ccp2aaPu.o
_main in ccp2aaPu.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-20100228/libiberty/testsuite/../../include -DHAVE_CONFIG_H
-I.. -o test-expandargv \
../../../gcc-4.5-20100228/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 cc9bX5PF.o
_run_tests in cc9bX5PF.o
"_expandargv", referenced from:
_run_tests in cc9bX5PF.o
"_xstrerror", referenced from:
_fatal_error in cc9bX5PF.o
"_freeargv", referenced from:
_run_tests in cc9bX5PF.o
_run_tests in cc9bX5PF.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.
because the system compiler defaults to -m64 and the built compiler to -m32
causing the mismatch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42308