News for hackers. Stuff that matters.
Re:You don’t need reproducible builds by renox on Wednesday August 05, 2020 @04:31PM (#24065227)
Uh? Is that sarcasm? Compilers don't produce reproducible builds. If you try to investigate a core dump using a binary recompiled from sources instead of the original binary, it's very likely you won't be able to analyze the core..
Re:You don’t need reproducible builds by nix23 on Thursday August 06, 2020 @09:28AM (#24070673)
>it's very likely you won't be able to analyze the core..

You know that's the reproducible part, exact same library's same compiler same options.

>Compilers don't produce reproducible builds.

Sure they do, just compile two times the same and compare its hash, would be terrible if compilers makes something else every-time.

Re:You don’t need reproducible builds by giantrobot on Thursday August 06, 2020 @11:26AM (#24071778)
By default you're not guaranteed the exact same output in two compiled binaries. There's a lot of variable bits[1] that make into binaries from C and C++. Different languages/compilers have different levels of variable bits.

[1] https://blog.conan.io/2019/09/02/Deterministic-builds-with-C...

Re:You don’t need reproducible builds by nix23 on Thursday August 06, 2020 @12:57PM (#24072865)
>Different languages/compilers have different levels of variable bits.

No that's the point! Exact same environment same binary, that's reproducibility.

Re:You don’t need reproducible builds by giantrobot on Friday August 07, 2020 @04:40PM (#24086217)
Yes that would be reproducibility iff the environment is identical. However "identical environment" is a complicated issue.

Differing file paths, timestamps, and host date/time can all easily make their way into a binary through macros in several languages without explicit compiler/linker flags. If compiled artifacts are bundled into a container (like a jar file) their metadata need to deterministically set or else the container as an artifact won't be deterministic.

So yes doing all the work to make build deterministic enables reproducibility but it's not free or automatic. Then doing the work to ensure the build environment is deterministic is an additional task that's not free or automatic.

Re:You don’t need reproducible builds by nix23 on Sunday August 09, 2020 @08:10AM (#24099064)
>make build deterministic enables reproducibility but it's not free or automatic

No one said that, Debian had a really hard time:

https://wiki.debian.org/ReproducibleBuilds/About

Re:You don’t need reproducible builds by TwoBit on Wednesday August 05, 2020 @05:31PM (#24065846)
Since when don't compilers produce reproducible builds? We did that at my last workplace with appropriate MSVC compiler options.

In any case, maybe parent is referring to using centralized debug symbols which can work for anybody in the org because their compilers all generate the same output.