On 19 July 2012 04:31, Ulrich Weigand Ulrich.Weigand@de.ibm.com wrote:
Michael Hope michael.hope@linaro.org wrote:
Here's the details:
- The test is fine when built from the command line
This is weird in particular. It probably means that you built it in a way where it picks up system libgcc and/or libgcov instead of the versions just built in the compiler tree ...
Did you set GCC_EXEC_PREFIX ?
I used the spawn line from gcc.log which includes a -B.
I've looked further and I'm flummoxed. I ran the testsuite with a --tool_opts='-save-temps -v'. gprof-7.o is identical with the command line version, as you'd expect. I took the collect2 line from the verbose log and ran that manually[1] and still got a test that passes. I ran strace to track what static libraries are being used and everything is under the build tree, except /usr/lib/crt{1,n,i}.o and libc_nonshared.a. I especially checked libgcc.a and libgcov.a and both are being pulled from build/gcc.
-- Michael
[1] the epic COMPILER_PATH=/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc/:/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/libexec/gcc/arm-linux-gnueabi/4.7.1/:/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/libexec/gcc/ \ LIBRARY_PATH=/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc/:/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/lib/gcc/arm-linux-gnueabi/4.7.1/:/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/lib/gcc/:/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/lib/gcc/arm-linux-gnueabi/4.7.1/../../../:/lib/:/usr/lib/ \ COLLECT_GCC_OPTIONS="'-B' '/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc/' '-save-temps' '-v' '-fprofile-arcs' '-ftest-coverage' '-o' './gcov-7.exe' '-march=armv7-a' '-mtune=cortex-a9' '-mfloat-abi=softfp' '-mfpu=neon' '-mthumb' '-mtls-dialect=gnu'" \ /scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc/collect2 --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X -m armelf_linux_eabi -nostdlib -o ./gcov-7.exe /usr/lib/crt1.o /usr/lib/crti.o /scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc/crtbegin.o -L/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc -L/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/lib/gcc/arm-linux-gnueabi/4.7.1 -L/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/lib/gcc -L/scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/install/lib/gcc/arm-linux-gnueabi/4.7.1/../../.. -fix-cortex-a8 gcov-7.o -lgcov -lgcc -L/usr/lib/arm-linux-gnueabi --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /scratch/cbuild/slave/slaves/tcpanda02/gcc-linaro-4.7+bzr115001~michaelh1~core-adddi/gcc/default/build/gcc/crtend.o /usr/lib/crtn.o