[bootstrappable] Re: diverse double compilation: using $ORIGIN?

  • From: Jan Nieuwenhuizen <janneke@xxxxxxx>
  • To: ludo@xxxxxxx (Ludovic Courtès)
  • Date: Sun, 05 Nov 2017 17:27:24 +0100

Ludovic Courtès writes:

Usage: guix build gcc-dcc

Building gcc-dcc tests the diverse double compilation property
of the gcc that Guix is using.

* gnu/packages/bootstrappable.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.

Awesome!  Does it build fine out-of-the-box?  I didn’t expect it to be
“this easy.”  :-)

I got very positive feedback from a slightly guix-sceptic person saying
something like: you lisp guys can do quite a lot with very little code.

However, all this patch adds is a test that fails: gcc built with gcc is
not bit-for-bit the same as gcc built with clang.

Since then I have included the build-path-prefix-map patch, use -rpath
$ORIGIN instead of -rpath "-lib", switched to gcc-7.2.0.  Still, no
bit-reproducibility.

Of course, Guix has the additional problem of the install-prefix that
debian and others do not have.

I'll be sending updated patches soon.

janneke.

-- 
Jan Nieuwenhuizen <janneke@xxxxxxx> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com ;| Avatar® http://AvatarAcademy.com

Other related posts: