Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529144 - dev-vcs/git - builtin/grep.c:743:37: internal compiler error: Segmentation fault
Summary: dev-vcs/git - builtin/grep.c:743:37: internal compiler error: Segmentation fault
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: ARM Linux
: Normal normal with 1 vote (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 13:17 UTC by Biser Milanov
Modified: 2020-12-07 07:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge info (emerge_info.txt,4.29 KB, text/plain)
2014-11-13 13:17 UTC, Biser Milanov
Details
emerge -pqv (emerge_pqv.txt,270 bytes, text/plain)
2014-11-13 13:18 UTC, Biser Milanov
Details
build.log (build.log,82.70 KB, text/plain)
2014-11-13 13:18 UTC, Biser Milanov
Details
Environment (environment,141.37 KB, text/plain)
2014-11-13 13:18 UTC, Biser Milanov
Details
emerge -info (emerge_info.txt,4.27 KB, text/plain)
2014-11-15 13:41 UTC, Biser Milanov
Details
emerge -pqv (emerge_pqv.txt,270 bytes, text/plain)
2014-11-15 13:41 UTC, Biser Milanov
Details
build log (build.log,98.72 KB, text/plain)
2014-11-15 13:42 UTC, Biser Milanov
Details
environment (environment,141.43 KB, text/plain)
2014-11-15 13:42 UTC, Biser Milanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Biser Milanov 2014-11-13 13:17:19 UTC
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.
Comment 1 Biser Milanov 2014-11-13 13:18:13 UTC
Created attachment 389238 [details]
emerge -pqv
Comment 2 Biser Milanov 2014-11-13 13:18:35 UTC
Created attachment 389240 [details]
build.log
Comment 3 Biser Milanov 2014-11-13 13:18:55 UTC
Created attachment 389242 [details]
Environment
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 12:49:03 UTC
Looks like you ran out of memory. Try removing -pipe from CFLAGS/CXXFLAGS, limiting the number of make jobs, or installing more RAM.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 12:49:22 UTC
Or cross-compile your packages.
Comment 6 Biser Milanov 2014-11-14 12:59:00 UTC
So "-pipe" breaks even if I have swap available?
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 23:31:47 UTC
(In reply to Biser Milanov from comment #6)
> So "-pipe" breaks even if I have swap available?

Yes.
Comment 8 Biser Milanov 2014-11-15 13:40:25 UTC
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.
Comment 9 Biser Milanov 2014-11-15 13:41:27 UTC
Created attachment 389394 [details]
emerge -info
Comment 10 Biser Milanov 2014-11-15 13:41:52 UTC
Created attachment 389396 [details]
emerge -pqv
Comment 11 Biser Milanov 2014-11-15 13:42:26 UTC
Created attachment 389398 [details]
build log
Comment 12 Biser Milanov 2014-11-15 13:42:52 UTC
Created attachment 389400 [details]
environment
Comment 13 Biser Milanov 2014-11-15 14:52:47 UTC
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
Comment 14 Alexander Tsoy 2014-11-15 23:38:17 UTC
Confirming this. Compilation of grep.c leads to ICE on both distcc host and locally on ARM system.
Comment 15 Alexander Tsoy 2014-11-15 23:39:31 UTC
(In reply to Jeroen Roovers from comment #5)
> Or cross-compile your packages.

Cross toolchain also fails to build it.
Comment 16 Ciprian Ciubotariu 2014-12-12 15:04:55 UTC
Confirmed on Raspberry PI - the 256MiB variant.
Comment 17 Ciprian Ciubotariu 2014-12-12 16:29:35 UTC
Fails on Raspberry PI even without -pipe
Comment 18 Ciprian Ciubotariu 2015-01-11 16:27:50 UTC
Same behavior with dev-vcs/git-2.0.5
Comment 19 Anthony Basile gentoo-dev 2015-02-22 12:44:36 UTC
@people hitting the bug.  Are you using hardened gcc-4.8?  Does the problem disappear with 4.7?
Comment 20 Biser Milanov 2015-02-23 20:46:02 UTC
> @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.
Comment 21 Ciprian Ciubotariu 2015-03-01 18:22:22 UTC
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?
Comment 22 Ciprian Ciubotariu 2015-03-15 19:12:51 UTC
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.
Comment 23 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-29 00:42:21 UTC
Is this still an issue with recent git releases?
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-12-07 07:34:35 UTC
I believe this ticket is obsolete, if the problem persists, please reopen