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
I've failed to atach the pre-processed sources, as the file is too big for the bug tracking system.
Well, the put it somewhere else and post a link... :)
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?
compress the file and post it
Ok. I've posted it at http://pdenapo.googlepages.com/preprocessed_source.out.bz2
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
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
if you can get it to crash reliably, then please re-open ...
*** This bug has been marked as a duplicate of bug 20600 ***