[Nix-dev] Re: compile error while bootstrapping

Ludovic Courtès ludo at gnu.org
Tue May 12 23:01:39 CEST 2009


Hi,

Peter Simons <simons at cryp.to> writes:

>  >> | ABI="32"
>  >> | CC="gcc"
>  >> | CFLAGS="-m32 -O2 -fomit-frame-pointer -mtune=athlon -march=athlon"
>  >> | CPPFLAGS=""
>  >> | MPN_PATH=" x86/k7/mmx x86/k7 x86 generic"
>  >
>  > Can you show the value of CFLAGS when you compile it on the same
>  > machine but outside of Nix?
>
> when built outside of Nix, libgmp chooses the exact same set of flags.
> There is no difference.

Could it be that the Nix builder process is running as i686 using
personality(2) and GMP's `config.guess' somehow managed to determine
it's really running on an Athlon?

It might be possible given that `config.guess' uses uname(1), whose
value may well be independent of the current personality.  The uname(2)
syscall is a source of impurity.

Thanks,
Ludo'.




More information about the nix-dev mailing list