Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 591080

Summary: Build failure of app-shells/ksh-93.20140625::gentoo failed (compile phase)
Product: Gentoo Linux Reporter: John Stein <aksornsri1>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED DUPLICATE    
Severity: normal CC: david
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: `emerge --info '=app-shells/ksh-93.20140625::gentoo'`
`emerge -pqv '=app-shells/ksh-93.20140625::gentoo'`
The complete build log

Description John Stein 2016-08-11 23:44:21 UTC
Created attachment 443100 [details]
`emerge --info '=app-shells/ksh-93.20140625::gentoo'`

I have attached the requested emerge outputs, --Info and -pqv, and the log.
Comment 1 John Stein 2016-08-11 23:45:41 UTC
Created attachment 443102 [details]
`emerge -pqv '=app-shells/ksh-93.20140625::gentoo'`
Comment 2 John Stein 2016-08-11 23:47:14 UTC
Created attachment 443104 [details]
The complete build log

The complete build log is located at '/var/log/portage/build/app-shells/ksh-93.20140625:20160811-045530.log'
Comment 3 Felix Janda 2016-08-12 06:34:17 UTC
The problem seems to be:

iffe: cc -fPIC -O2 -march=i686 -pipe -Wl,-O1 -Wl,--as-needed -L/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib -I/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/include/ast -I/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/include -c ./Fhal31407.c
i686-pc-linux-gnu-gcc: internal compiler error: Segmentation fault (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.

Please see if you can reproduce the segfault by directly running the
above line (inside lib/libcoshell). If it is reproducible, attach an
.s file produced by changing the option "-c" to "-S".
Comment 4 Alex Xu (Hello71) 2016-08-14 16:44:48 UTC
did you do that?
Comment 5 Alex Xu (Hello71) 2016-08-15 20:23:30 UTC
oh, wrong user. similar name length. please do that, then.
Comment 6 David W Noon 2016-09-10 22:46:11 UTC
This looks much like bug #587730 that I reported a few weeks earlier: a segfault in as.
Comment 7 David K. Thompson 2017-01-10 00:29:54 UTC
(In reply to Felix Janda from comment #3)
> The problem seems to be:
> 
> iffe: cc -fPIC -O2 -march=i686 -pipe -Wl,-O1 -Wl,--as-needed
> -L/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib
> -I/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/include/
> ast
> -I/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/include
> -c ./Fhal31407.c
> i686-pc-linux-gnu-gcc: internal compiler error: Segmentation fault (program
> as)
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://bugs.gentoo.org/> for instructions.
> 
> Please see if you can reproduce the segfault by directly running the
> above line (inside lib/libcoshell). If it is reproducible, attach an
> .s file produced by changing the option "-c" to "-S".

You cant reproduce because the file Fhal31417.c does not exist. The file name printed to screen is partially derived from the build hostname. As you can see, mine is different. That being said, all the .c files in lib/libcoshell can be manually compiled without producing the segfault.

iffe: cc -fPIC -march=pentium3 -march=native -O2 -Wl,-O1 -Wl,--as-needed -L/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib -I/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/include/ast -I/var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/include -c ./Fobsi4979.c
i686-pc-linux-gnu-gcc: internal compiler error: Segmentation fault (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
iffe: cc: core dump or fatal interruption -- results inconclusive
mamake [lib/libcoshell]: *** exit code 139 making FEATURE/nfsd
Comment 8 David K. Thompson 2017-01-11 20:14:09 UTC
See bug 587730, and try building ksh with binutils 2.26.1
Comment 9 SpanKY gentoo-dev 2017-01-18 06:11:27 UTC

*** This bug has been marked as a duplicate of bug 587730 ***