public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40365]  New: g++ template expansion bug
@ 2009-06-07  3:37 oleg_dolomanov at hotmail dot com
  2009-06-07  6:15 ` [Bug c++/40365] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: oleg_dolomanov at hotmail dot com @ 2009-06-07  3:37 UTC (permalink / raw)
  To: gcc-bugs

I am trying to build Olex2 (sourceforge) project on x64 system with Pentium
6600Q and 6Gb of memory, using any 64bit Linux and it crashes gcc C++ on large
template expansion (>0.5k templates a class) with internal compiler error,
which happens in different files  depending on the gcc version (4.1, 4.3 I
tried) (please let me know if you need any debug info), however same versions
of 64 bit Linux manages to compile Olex2 on 2Gb Intel MacBook with no problem
(besides of a lot of swapping!, tasks a lot of time). I have not experienced
this problem on 32 bit systems (less than 4Gb of memory though!). To repeat the
bug, please get the olex2 source from http://sourceforge.net/projects/olex2/
and try to compile it on a 64bit system with more than 4Gb of memory (Suse,
Fedora, scons script for building is available as well as some instructions are
given here:
http://olex2.opencryst.net/content/folder-help/building-olex2-from-scratch, but
basically you would need wx-config and python-config for just the compilation.


-- 
           Summary: g++ template expansion bug
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: oleg_dolomanov at hotmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/40365] g++ template expansion bug
  2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
@ 2009-06-07  6:15 ` pinskia at gcc dot gnu dot org
  2009-06-09 15:04 ` oleg_dolomanov at hotmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-07  6:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-06-07 06:15 -------
Can you show the internal compiler error?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/40365] g++ template expansion bug
  2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
  2009-06-07  6:15 ` [Bug c++/40365] " pinskia at gcc dot gnu dot org
@ 2009-06-09 15:04 ` oleg_dolomanov at hotmail dot com
  2009-06-09 15:21 ` oleg_dolomanov at hotmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: oleg_dolomanov at hotmail dot com @ 2009-06-09 15:04 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]



------- Comment #2 from oleg_dolomanov at hotmail dot com  2009-06-09 15:04 -------
This is the version info:

oleg@Q4:/work/olex/svn/olex2/trunk> g++ -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.3
--enable-linux-futex --without-system-libunwind --with-cpu=generic
--build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) 

and command line and error (fails on random functions):


scons: Building targets ...
g++ -o build/scons/release/generic/sfutil.o -c -D__WXWIDGETS__ -D_UNICODE
-DUNICODE -pthread -exceptions -O3 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__ -Ialglib -Isdl -Iglib -Igxlib -Irepository -Ixlib
-I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-I/usr/include/python2.6 xlib/sfutil.cpp
xlib/sfutil.h: In member function ‘void xlib::SF_Util<sg>::Calculate(double,
const xlib::TRefList&, const esdl::mat3d&,
esdl::TArrayList<esdl::TEComplex<double> >&, const
esdl::TPtrList<xlib::cm_Element>&, const xlib::TCAtomPList&, const double*,
bool) const [with sg = xlib::FastSG_P2_a]’:
xlib/sfutil.h:249: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/40365] g++ template expansion bug
  2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
  2009-06-07  6:15 ` [Bug c++/40365] " pinskia at gcc dot gnu dot org
  2009-06-09 15:04 ` oleg_dolomanov at hotmail dot com
@ 2009-06-09 15:21 ` oleg_dolomanov at hotmail dot com
  2009-06-13 19:16 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: oleg_dolomanov at hotmail dot com @ 2009-06-09 15:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from oleg_dolomanov at hotmail dot com  2009-06-09 15:21 -------
g++ (GCC) 4.1.3 20080612 (prerelease) (SUSE Linux) from time to time gives
these kind of messages: 

internal compiler error: in var_ann, at tree-flow-inline.h:128

internal compiler error: in symbol_marked_for_renaming, at tree-into-ssa.c:456


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/40365] g++ template expansion bug
  2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
                   ` (2 preceding siblings ...)
  2009-06-09 15:21 ` oleg_dolomanov at hotmail dot com
@ 2009-06-13 19:16 ` pinskia at gcc dot gnu dot org
  2009-06-14  0:49 ` oleg_dolomanov at hotmail dot com
  2009-12-25 22:21 ` paolo dot carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-13 19:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2009-06-13 19:16 -------
Can you supply the preprocessed source?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/40365] g++ template expansion bug
  2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
                   ` (3 preceding siblings ...)
  2009-06-13 19:16 ` pinskia at gcc dot gnu dot org
@ 2009-06-14  0:49 ` oleg_dolomanov at hotmail dot com
  2009-12-25 22:21 ` paolo dot carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: oleg_dolomanov at hotmail dot com @ 2009-06-14  0:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from oleg_dolomanov at hotmail dot com  2009-06-14 00:49 -------
It is an open source project..
So just get it from the svn:
https://olex2.svn.sourceforge.net/svnroot/olex2/trunk


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/40365] g++ template expansion bug
  2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
                   ` (4 preceding siblings ...)
  2009-06-14  0:49 ` oleg_dolomanov at hotmail dot com
@ 2009-12-25 22:21 ` paolo dot carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-25 22:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo dot carlini at oracle dot com  2009-12-25 22:21 -------
Feedback not forthcoming.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40365


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-25 22:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-07  3:37 [Bug c++/40365] New: g++ template expansion bug oleg_dolomanov at hotmail dot com
2009-06-07  6:15 ` [Bug c++/40365] " pinskia at gcc dot gnu dot org
2009-06-09 15:04 ` oleg_dolomanov at hotmail dot com
2009-06-09 15:21 ` oleg_dolomanov at hotmail dot com
2009-06-13 19:16 ` pinskia at gcc dot gnu dot org
2009-06-14  0:49 ` oleg_dolomanov at hotmail dot com
2009-12-25 22:21 ` paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).