2.41 branch approaching
Nick Clifton
nickc@redhat.com
Wed Jun 28 15:59:05 GMT 2023
Hi Matthias,
>> Can you supply the binutils.log file for a failing test run so
>> that I can take a look ?
>
> attached, however it only points to the first fail in these two test cases.
Hmm, OK, so if I am reading the log correctly the addr2line failures are
happening because running:
addr2line -e tmpdir/testprog <some address>
returns:
./builddir-single/binutils/./binutils/testsuite/binutils-all/testprog.c:<some line number>
whereas the regexp is expecting to match:
"$srcdir/$subdir/testprog.c:\[0-9\]+"
which translates to:
/home/packages/binutils/binutils-2.40.50.20230628/binutils/testsuite/binutils-all/testprog.c:[0-9]+
Looking back in the log I notice that the test program is being compiled
with:
x86_64-linux-gnu-gcc \
/home/packages/binutils/binutils-2.40.50.20230628/binutils/testsuite/binutils-all/testprog.c \
-g \
-O2 \
-ffile-prefix-map=/home/packages/binutils/binutils-2.40.50.20230628=. \
-O0 \
-g \
-lm \
-o tmpdir/testprog
(I added the backslash line separators).
And so the culprit appears to be the -ffile-prefix-map... option. Which I think
must be coming from your environment as it is not a normal part of the binutils
testsuite.
Does this make sense ?
I suspect that the same problem explains why the objdump+source+listing tests
are failing. The sources are not where the built binaries are saying that they
should be.
Cheers
Nick
More information about the Binutils
mailing list