Problem with build-id and cycling the free pascal compiler

Joost van der Sluis joost at cnoc.nl
Sat Apr 25 13:53:48 UTC 2009


Building the free pascal compiler (package fpc) fails due to a
build-id/ld problem.

The compiler builds itself, using an older version of the compiler. Then
the compiler which is just build is used to build the same compiler
again. This iterative process continues until the generated binary and
the compiler-binary are the same. (It's called cylcling a compiler, most
compilers who can compile themselves use this technique)

But on F11/rawhide the two binaries never become the same, because they
all get a different build-id. On F10 this problen never occured, though.

According to the ld-manpage the build-id is the same when all the
object-files are exactly the same. But I think that isn't the case. I
tried --build-id=md5 and --build-id=sha1, both fail.

Any ideas how to fix this? Adding --build-id=none is a solution, but
then the rpm contains a binary without build-id. 

Any other ideas? Is this maybe a ld-bug, or is it intentional?

Joost.







More information about the fedora-devel-list mailing list