Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
gcc internal error when building unionfs-fuse #120
Installed nixos from nixos-graphical-0.2pre4545_763835e-b8339a1-x86_64-linux.iso
GCC (or libc?) seems to be seriously broken, attached testcase from failed unionfs build [*]:
# gcc -c foo.i -O2 /tmp/nix-build-unionfs-fuse-0.26.drv-4/unionfs-fuse-0.26/src/unionfs.c: In function ‘unionfs_statfs’: /tmp/nix-build-unionfs-fuse-0.26.drv-4/unionfs-fuse-0.26/src/unionfs.c:837:1: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See for instructions.
I've tried using nix-env -i gcc-wrapper-4.6.3 and nix-env -i gcc-wrapper.4.7.2, and both of those failed.
# nixos-version 0.2pre4545_763835e-b8339a1 # uname -a Linux nixos 3.2.39 #1 SMP Wed Mar 6 15:09:30 UTC 2013 x86_64 GNU/Linux # /nix/store/hi387lq9x38cfwb915vv4b0zdh76wazc-gcc-4.6.3/bin/gcc -v Using built-in specs. COLLECT_GCC=/nix/store/hi387lq9x38cfwb915vv4b0zdh76wazc-gcc-4.6.3/bin/gcc COLLECT_LTO_WRAPPER=/nix/store/hi387lq9x38cfwb915vv4b0zdh76wazc-gcc-4.6.3/libexec/gcc/x86_64-unknown-linux-gnu/4.6.3/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix gcc version 4.6.3 (GCC)
If I run the compiler under valgrind in nixos, it doesn't crash again, and no errors are shown:
Tried to build a CD image as described in the manual but it complained about memtest being a 404, so I've added the nixos-unstable channel, used nixos-checkout to get newer version, and tried to use nixos-build or nixos-rebuild test -I /etc/nixos/nixos. Both failed when trying to build unionfs.
On Tue, Mar 12, 2013 at 06:03:20AM -0700, edwintorok wrote:
Can you try using a recent kernel? 3.7 or 3.8. It's a matter of defining
I'm not sure, but I think nixpkgs requires 3.7 or 3.8.
On Tue, Mar 12, 2013 at 02:17:36PM +0100, Lluís Batlle i Rossell wrote:
I checked again, and the master glibc requires 2.6.35 minimum, not more.
Nevertheless, I tried that 'foo.i', and it builds fine here, using the very same
This builds perfectly: /nix/store/5xqgsd101i4ah40639zbpizydvf1cgvh-unionfs-fuse-0.26
Do you run that in a virtual machine? GMP used to segfault (or
Yes, I've run it in KVM.
Could this be documented somewhere? Or better yet, could GMP be fixed to not crash when run in a VM?
On Tue, Mar 12, 2013 at 06:56:35AM -0700, edwintorok wrote:
GMP people consider this a feature. We used to have it patched, but I don't know
When we had the patch, I didn't know about the "-cpu" flag of qemu.
Maybe the git logs for gmp tell more.