Created attachment 389236 [details] Emerge info Git fails to compile with the following: builtin/grep.c: In function ‘cmd_grep’: builtin/grep.c:743:37: internal compiler error: Segmentation fault { OPTION_CALLBACK, 0, "help-all", &options, NULL, N_("show usage"), ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. distcc[2737] ERROR: compile builtin/grep.c on localhost failed make: *** [builtin/grep.o] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: dev-vcs/git-2.0.4::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-vcs/git-2.0.4::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-vcs/git-2.0.4::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-vcs/git-2.0.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/git-2.0.4/temp/environment'. * Working directory: '/var/tmp/portage/dev-vcs/git-2.0.4/work/git-2.0.4' * S: '/var/tmp/portage/dev-vcs/git-2.0.4/work/git-2.0.4' Attached are the logfiles.
Created attachment 389238 [details] emerge -pqv
Created attachment 389240 [details] build.log
Created attachment 389242 [details] Environment
Looks like you ran out of memory. Try removing -pipe from CFLAGS/CXXFLAGS, limiting the number of make jobs, or installing more RAM.
Or cross-compile your packages.
So "-pipe" breaks even if I have swap available?
(In reply to Biser Milanov from comment #6) > So "-pipe" breaks even if I have swap available? Yes.
Hi, I can confirm that removing "-pipe" from portage/make.conf, setting MAKEOPTS to -j1 and turning distcc off does not help. Attaching new logs.
Created attachment 389394 [details] emerge -info
Created attachment 389396 [details] emerge -pqv
Created attachment 389398 [details] build log
Created attachment 389400 [details] environment
The error is exactly the same: builtin/grep.c: In function ‘cmd_grep’: builtin/grep.c:743:37: internal compiler error: Segmentation fault { OPTION_CALLBACK, 0, "help-all", &options, NULL, N_("show usage"), ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. make: *** [builtin/grep.o] Error 1 * ERROR: dev-vcs/git-2.0.4::gentoo failed (compile phase): * emake failed
Confirming this. Compilation of grep.c leads to ICE on both distcc host and locally on ARM system.
(In reply to Jeroen Roovers from comment #5) > Or cross-compile your packages. Cross toolchain also fails to build it.
Confirmed on Raspberry PI - the 256MiB variant.
Fails on Raspberry PI even without -pipe
Same behavior with dev-vcs/git-2.0.5
@people hitting the bug. Are you using hardened gcc-4.8? Does the problem disappear with 4.7?
> @people hitting the bug. Are you using hardened gcc-4.8? Does the problem disappear with 4.7? Yes, "gcc (Gentoo Hardened 4.8.3 p1.1, pie-0.5.9) 4.8.3". I haven't tried downgrading. I will emerge a new crosscompiler with 4.7 and see if I hit the same issue.
I was able to safely compile both git-2.0.5 and busybox-1.23.1-r1 with gcc-4.7-3-r1 on arm hardened. But now I have a mixed system (with git and busybox relying on gcc-4.7 and the rest on gcc-4.8). What can I do next to help?
I also tried gcc-4.9.2, since it's the latest in the portage tree. It successfully compiled git, but busybox still yields the same error.
Is this still an issue with recent git releases?
I believe this ticket is obsolete, if the problem persists, please reopen