paulfloyd / freebsd_valgrind

Git repo used to Upstream the FreeBSD Port of Valgrind
GNU General Public License v2.0
15 stars 4 forks source link

gdbtest failures on FreeBSD 12.2 #146

Closed paulfloyd closed 3 years ago

paulfloyd commented 3 years ago

I was getting quite a few failures in the gdb tests. This was because there was an extra

"warning: Source file is more recent than executable."

warning message from gdb in stderrB.out

This was after a clean build, so the dependencies should have been OK. Aftr a bit of diffing I found that the following two files were causing this error:

paulf> ls -al /usr/src/libexec/rtld-elf/amd64/rtld_start.S
-rw-r--r--  1 root  wheel  5388 Nov 15 13:18 /usr/src/libexec/rtld-elf/amd64/rtld_start.S
paulf> ls -al  /libexec/ld-elf.so.1
-r-xr-xr-x  1 root  wheel  151728 Nov 15 13:07 /libexec/ld-elf.so.1*
paulfloyd commented 3 years ago

To fix this I did the following:

touch -d 2020-11-15T13:06:00 /usr/src/libexec/rtld-elf/amd64/rtld_start.S

paulfloyd commented 2 years ago

This is back with FreeBSD 13

paulf> ll /libexec/ld-elf.so.1
-r-xr-xr-x 1 root wheel 114832 Oct 17 15:31 /libexec/ld-elf.so.1*

paulf> ll /usr/src/libexec/rtld-elf/amd64/rtld_start.S -rw-r--r-- 1 root wheel 5303 Oct 17 15:42 /usr/src/libexec/rtld-elf/amd64/rtld_start.S

sudo touch -d 2021-10-17T15:30:00 /usr/src/libexec/rtld-elf/amd64/rtld_start.S

and it is fixed again