-fdebug-prefix-map

Ximin Luo infinity0 at debian.org
Thu Oct 6 19:05:00 UTC 2016


Samuel Thibault:
> Hello,
> 
> I have noticed that for reproducibility, gcc is now given
> 
>    -fdebug-prefix-map=/build-2nd/the-package-1.0=.·
> 
> to avoid the debugging symbols to be depending on the path where the
> package is built. But I'd say it can be really useful to have the
> "the-package-1.0" part when debugging stuff. Perhaps we should instead
> use:
> 
>    -fdebug-prefix-map=/build-2nd/the-package-1.0=../the-package-1.0
> 
> ?
> 

Hi Samuel, you are also not the first person to ask about this! We actually have a rough solution already sketched out: we plan on submitting some patches to GCC to fix this in one central place.

See

https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160822/006788.html

https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160905/006984.html

and

https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160912/007076.html

for more details.

Help writing these patches would be welcome! I am pretty rusty with my C/C++.

I should probably get around to this fairly soon. I've already started sketching up a wiki page BuildPathProposal, similar to what we had for TimestampsProposal.

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Reproducible-builds mailing list