Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465268 - dev-embedded/msp430-gcc-4.6.3_p20120406 with gcc-4.8.0 - .../work/gcc-4.6.3/libgcc/../gcc/libgcc2.c:72:1: internal compiler error: Segmentation fault
Summary: dev-embedded/msp430-gcc-4.6.3_p20120406 with gcc-4.8.0 - .../work/gcc-4.6.3/l...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.8
  Show dependency tree
 
Reported: 2013-04-09 14:08 UTC by Hendrik v. Raven
Modified: 2014-10-31 02:44 UTC (History)
5 users (show)

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


Attachments
gcc-config-logs.tar.bz2 (gcc-config-logs.tar.bz2,51.53 KB, application/x-bzip-compressed-tar)
2013-04-09 14:08 UTC, Hendrik v. Raven
Details
complete build log (msp430-gcc-4.6.3_p20120406:20130409-144340.log.gz,80.04 KB, application/gzip)
2013-04-09 14:52 UTC, Hendrik v. Raven
Details
Output of emerge --info (emerge-info,4.95 KB, text/plain)
2013-04-09 14:54 UTC, Hendrik v. Raven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik v. Raven 2013-04-09 14:08:39 UTC
Created attachment 344978 [details]
gcc-config-logs.tar.bz2

msp430-gcc fails to compile if using gcc 4.8.0, causing a segfault during compilation on a amd64. Compilation with gcc 4.7.2 works.

*** Error in `/var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/build/./gcc/cc1': double free or corruption (fasttop): 0x0000000000d24300 ***

Steps to reproduce:
crossdev -t msp430 -v
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-09 14:31:26 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 2 Hendrik v. Raven 2013-04-09 14:52:43 UTC
Created attachment 344982 [details]
complete build log
Comment 3 Hendrik v. Raven 2013-04-09 14:54:02 UTC
Created attachment 344986 [details]
Output of emerge --info

crossdev was called with FEATURES=-test USE=-test
Comment 4 Priit Laes (IRC: plaes) 2014-01-29 08:58:48 UTC
Still failing with gcc-4.8.2:

/var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/libgcc/../gcc/libgcc2.c: In function ‘__negdi2’:
/var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/libgcc/../gcc/libgcc2.c:72:1: internal compiler error: Segmentation fault
Comment 5 Priit Laes (IRC: plaes) 2014-04-26 05:51:50 UTC
(In reply to Priit Laes (IRC: plaes) from comment #4)
> Still failing with gcc-4.8.2:
> 
> /var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/
> libgcc/../gcc/libgcc2.c: In function ‘__negdi2’:
> /var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/
> libgcc/../gcc/libgcc2.c:72:1: internal compiler error: Segmentation fault

Just mentioning that MSP430 support was added to GCC-4.9 \o/
Comment 6 Anthony Basile gentoo-dev 2014-10-18 20:58:15 UTC
(In reply to Priit Laes (IRC: plaes) from comment #5)
> (In reply to Priit Laes (IRC: plaes) from comment #4)
> > Still failing with gcc-4.8.2:
> > 
> > /var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/
> > libgcc/../gcc/libgcc2.c: In function ‘__negdi2’:
> > /var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/
> > libgcc/../gcc/libgcc2.c:72:1: internal compiler error: Segmentation fault
> 
> Just mentioning that MSP430 support was added to GCC-4.9 \o/

Has anyone tested this with gcc-4.9?  If its working there I'd really like to remove this as a blocker to 4.8.
Comment 7 Tim Harder gentoo-dev 2014-10-19 09:48:53 UTC
(In reply to Anthony Basile from comment #6)
> (In reply to Priit Laes (IRC: plaes) from comment #5)
> > (In reply to Priit Laes (IRC: plaes) from comment #4)
> > > Still failing with gcc-4.8.2:
> > > 
> > > /var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/
> > > libgcc/../gcc/libgcc2.c: In function ‘__negdi2’:
> > > /var/tmp/portage/cross-msp430/msp430-gcc-4.6.3_p20120406/work/gcc-4.6.3/
> > > libgcc/../gcc/libgcc2.c:72:1: internal compiler error: Segmentation fault
> > 
> > Just mentioning that MSP430 support was added to GCC-4.9 \o/
> 
> Has anyone tested this with gcc-4.9?  If its working there I'd really like
> to remove this as a blocker to 4.8.

It can. I have patches ready and waiting for building an msp430 toolchain with latest vanilla upstream gcc/binutils/newlib.

Currently it's mostly waiting for the next snapshot of binutils to fall (since it requires changes in git to build properly) or we can just take one from the toolchain overlay and stick it in the tree if necessary.
Comment 8 Tim Harder gentoo-dev 2014-10-31 02:44:42 UTC
Closing as obsolete since all dev-embedded/msp430* packages are now masked. Use >=sys-devel/crossdev-20141030 to build an msp430 toolchain using the standard binutils/gcc/newlib/gdb packages.