Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168350 - [4.1/ICE] ICE while compiling lyx SVN sources
Summary: [4.1/ICE] ICE while compiling lyx SVN sources
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-25 17:29 UTC by Pablo De Nápoli
Modified: 2007-02-27 14:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo De Nápoli 2007-02-25 17:29:17 UTC
I've tried to compile the lyx sources in subversion 
using gcc-4.1.2

I've got the following error message

/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_map.h: In instantiation of '__gnu_norm::map<const lyx::MathArray*, lyx::Point, std::less<const lyx::MathArray*>, std::allocator<std::pair<const lyx::MathArray* const, lyx::Point> > >':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/debug/map.h:45:   instantiated from '__gnu_debug_def::map<const lyx::MathArray*, lyx::Point, std::less<const lyx::MathArray*>, std::allocator<std::pair<const lyx::MathArray* const, lyx::Point> > >'
../../src/coordcache.h:97:   instantiated from 'lyx::CoordCacheBase<lyx::MathArray>'
../../src/coordcache.h:148:   instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_map.h:233: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/cc4vyFSP.out file, please attach this to your bugreport.
make[3]: *** [mailinset.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I'm ataching the preprocessed sources as requested.

Reproducible: Always

Steps to Reproduce:
1. check out the code in Lyx Subversion (revision 17342)
svn co -r 1732 svn://svn.lyx.org/lyx/lyx-devel/trunk/src
2. ./autogen.sh
3. /configure
4. make
Comment 1 Pablo De Nápoli 2007-02-25 19:49:45 UTC
I've failed to atach the pre-processed sources, as the file is too big for the bug tracking system.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-02-25 20:18:43 UTC
Well, the put it somewhere else and post a link... :)
Comment 3 Pablo De Nápoli 2007-02-26 00:54:27 UTC
Something strange happend: I've tried to run "make" several times, always getting the same ICE. So I've reported the bug.

After rebooting I've tried again, this time getting a different iCE.

Strange enough, I've tried a third time. This time lyx was compiled without problems!


/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_list.h: In instantiation of '__gnu_norm::_List_base<boost::shared_ptr<lyx::support::ForkedProcess>, std::allocator<boost::shared_ptr<lyx::support::ForkedProcess> > >':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_list.h:399:   instantiated from '__gnu_norm::list<boost::shared_ptr<lyx::support::ForkedProcess>, std::allocator<boost::shared_ptr<lyx::support::ForkedProcess> > >'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/debug/list:47:   instantiated from '__gnu_debug_def::list<boost::shared_ptr<lyx::support::ForkedProcess>, std::allocator<boost::shared_ptr<lyx::support::ForkedProcess> > >'
../../src/support/forkedcontr.h:62:   instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_list.h:282: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccxlBOHD.out file, please attach this to your bugreport.
make[4]: *** [PreviewLoader.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

I suspect this should be caused by some hardware problem in my machine (defective memory?.). However, I've compiled the whole Gentoo system from the sources without problems, and I compile programs every day.

This is very strange... why with lyx? and not with other? and why not allways the same ICE but different?
Comment 4 SpanKY gentoo-dev 2007-02-26 01:22:47 UTC
compress the file and post it
Comment 5 Pablo De Nápoli 2007-02-26 02:06:41 UTC
Ok. I've posted it at http://pdenapo.googlepages.com/preprocessed_source.out.bz2
Comment 6 SpanKY gentoo-dev 2007-02-26 02:11:06 UTC
it builds for me, but i'm guessing at the build options

what is the full commandline that crashes ?  like what all compiler flags are used
Comment 7 Pablo De Nápoli 2007-02-26 03:49:05 UTC
I don't know the exact command line, as the copiler didn't crash any more at the same place after rebooting the machine (If it works for you, I guess this should be caused by some unknown hardware problem in my machine, so I would close the bug, as it is not really reproductible)

The configuration reported by configure is:

Configuration
  Host type:                      i686-pc-linux-gnu
  Special build flags:            aiksaurus assertions pch concept-checks stdlib-debug warnings  use-aspell use-ispell
  C   Compiler:                   gcc 
  C   Compiler LyX flags:          
  C   Compiler flags:             -Wextra -Wall    -g -O
  C++ Compiler:                   g++ (4.1.2)
  C++ Compiler LyX flags:          
  C++ Compiler flags:             -Wextra -Wall    -g -O
  Linker flags:                   
  Linker user flags:              
  Qt 4 Frontend:
      Qt 4 version:		4.2.2
  Packaging:                      posix
  LyX binary dir:                 /usr/local/bin
  LyX files dir:                  /usr/local/share/lyx
Comment 8 SpanKY gentoo-dev 2007-02-27 14:36:44 UTC
if you can get it to crash reliably, then please re-open ...
Comment 9 SpanKY gentoo-dev 2007-02-27 14:37:07 UTC

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