NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/57466
The following reply was made to PR toolchain/57466; it has been noted by GNATS.
From: Jan-Benedict Glaw <jbglaw%lug-owl.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: toolchain/57466
Date: Tue, 13 Jun 2023 12:30:39 +0200
--i7nd2ngnb25fasot
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi!
As I got to this issue while trying to get reproducible builds for
VAX, here's some more notes:
* With the previously mentioned patch (map all files instead of only
debug infos), almost all VAX stuff is reproducible.
* Notable deviations:
* Everything that used `-g` in their CFLAGS will have the current
build directory (for DW_AT_comp_dir) in the object files. This
affects blocklistctl/blocklistd and netpgpverify, but also (all
of?) the kernel files.
* The two (C + C++) ubsan tests. It seems ubsan inserts, on its
own, the source filename into the object files without being
mapped. (At least for gcc.old, which is used for VAX. Haven't
checked yet with the amd64 builds.)
So we have three primary issues:
1. Globally wrong CFLAGS not hiding (as expected) the source
location. This will affect all ports.
2. Issue with CWD mapping for the DW_AT_comp_dir attribute when
`-g` is in place. Haven't yet looked at this, might be an issue
with some missing CFLAG or a compiler issue. If it's a compiler
issue, it at least affects gcc.old, gcc is untested as of now.
3. ubsan (at least with gcc.old) inserting filenames as well. Need to
check for gcc.
At least the first issue cripples all ports. The second and third may
be a niche thing wrt. gcc.old . But all of these can be solved.
MfG, JBG
--=20
--i7nd2ngnb25fasot
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCZIhFTQAKCRAdvV51g5nh
uydtAKCFIL8Kj1ffYXkHq+2Wu18Jn7QpIACbB54R02gmp8CxTziZ1Ombh1K1Vdg=
=NmQg
-----END PGP SIGNATURE-----
--i7nd2ngnb25fasot--
Home |
Main Index |
Thread Index |
Old Index