Bug 747168 - internal compiler error: Segmentation fault whilst building anope-git
Summary: internal compiler error: Segmentation fault whilst building anope-git
Keywords:
Status: CLOSED DUPLICATE of bug 735304
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.7
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-19 01:24 UTC by Lee
Modified: 2011-10-21 07:22 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-20 10:59:52 UTC
Target Upstream Version:


Attachments (Terms of Use)
compiler crash output (2.47 MB, text/plain)
2011-10-19 01:26 UTC, Lee
no flags Details

Description Lee 2011-10-19 01:24:39 UTC
Description of problem:
Whilst building the latest anope irc services 1.9 git, the compiler crashes (I'm not enough in-tune with compilers to know why this happens)
Linux fate.l3th4l1ty.com 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux   - Centos 5.7 (Final)


Version-Release number of selected component (if applicable):
cmake version 2.6-patch 4
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)

How reproducible:
Always 

Steps to Reproduce:
1. clone anope from git ( git clone git://anope.git.sf.net/gitroot/anope/anope/ ) and switch to the 1.9 branch.
2. run ./Config; cd build; make
  
Actual results:

[  8%] Building CXX object src/CMakeFiles/services.dir/access.o
An error occured when executing: /usr/bin/c++ -Dservices_EXPORTS -g -I/home/auro                                                                                        rach/irc/anope/build/include -I/home/aurorach/irc/anope/include -I/home/aurorach                                                                                        /irc/anope/build/language -I/home/aurorach/irc/anope/modules/pseudoclients -Wall                                                                                         -Wshadow -ansi -pedantic -fno-leading-underscore -pipe -o CMakeFiles/services.d                                                                                        ir/access.o -c /home/aurorach/irc/anope/src/access.cpp
/home/aurorach/irc/anope/include/anope.h: In function âconst Anope::string Anope                                                                                        ::operator+(const char*, const Anope::string&)â:
/home/aurorach/irc/anope/include/anope.h:331: internal compiler error: Segmentat                                                                                        ion fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccN4PVcL.out file, please attach this to yo                                                                                        ur bugreport.
make[2]: *** [src/CMakeFiles/services.dir/access.o] Error 1
make[1]: *** [src/CMakeFiles/services.dir/all] Error 2
make: *** [all] Error 2


Expected results:

It should compile.

Additional info:
Attached output file

Comment 1 Lee 2011-10-19 01:26:30 UTC
Created attachment 528910 [details]
compiler crash output

Comment 2 Jakub Jelinek 2011-10-20 10:59:52 UTC
Can't reproduce this, compiles just fine. compiles just fine here.

Comment 3 Lee 2011-10-20 14:03:12 UTC
hmm definitely pulled 1.9?  the default branch is 1.8 which was c, 1.9 is cpp.
git clone git://anope.git.sf.net/gitroot/anope/anope/ ;cd anope
git checkout -b 1.9 --track origin/1.9
./Config
cd build; make

root@fate [/home/l3th4l]# gcc --v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)

root@fate [/home/l3th4l]# cmake --version
cmake version 2.6-patch 4

root@fate [/home/l3th4l]# cat /etc/redhat-release
CentOS release 5.7 (Final)

Comment 4 Jakub Jelinek 2011-10-20 14:07:14 UTC
I tried the preprocessed source you've attached, and that compiles just fine with the options listed in there.

Comment 5 Jakub Jelinek 2011-10-21 07:22:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.