Skip to content

Incorrect use of gcc -frandom-seed ? #2290

@gavinandresen

Description

@gavinandresen

According to the gcc manual:

-frandom-seed=string
 This option provides a seed that GCC uses when it would otherwise
 use random numbers. It is used to generate certain symbol names
 that have to be different in every compiled file.  It is also used
 to place unique stamps in coverage data files and the object files
 that produce them. You can use the -frandom-seed option to produce
 reproducibly identical object files.

 The string should be different for every file you compile.

For gitian builds, we are breaking the "should be different for every file you compile" rule, which doesn't seem to be causing an issues right now but which I could imagine causing impossible-to-debug problems in the future.

A little googling turned up this discussion thread about what to do about it:
http://lists.freebsd.org/pipermail/freebsd-toolchain/2010-November/000023.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions