Skip to content

Compiler error with g++ 4.7.2 #59

@touwwouter

Description

@touwwouter

On the current Debian stable (Wheezy Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1 x86_64 GNU/Linux), compilation fails with g++ 4.7.2 after running ./configure in the decompressed dist tarball. The problem appears to be related to the compiler and not to the xssp source:

make  all-am
make[1]: Entering directory `/home/wtouw/projects/xssp-2.2.5'
depbase=`echo src/blast.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I.  -std=c++0x -pedantic -Wall -Werror -Wno-reorder -pthread -I/usr/include -Isrc/   -g -O2 -MT src/blast.o -MD -MP -MF $depbase.Tpo -c -o src/blast.o src/blast.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/fetchdbrefs.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I.  -std=c++0x -pedantic -Wall -Werror -Wno-reorder -pthread -I/usr/include -Isrc/   -g -O2 -MT src/fetchdbrefs.o -MD -MP -MF $depbase.Tpo -c -o src/fetchdbrefs.o src/fetchdbrefs.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
src/blast.cpp: In lambda function:
src/blast.cpp:1423:59: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
src/fetchdbrefs.cpp: In function ‘void {anonymous}::FetchHTTPDocument(const string&, const string&, const string&, const string&, std::string&, std::string&)’:
src/fetchdbrefs.cpp:101:26: error: converting ‘false’ to pointer type ‘void*’ [-Werror=conversion-null]
src/fetchdbrefs.cpp: In function ‘void {anonymous}::FetchHTTPDocument(const string&, const string&, const string&, const std::vector<std::basic_string<char> >&, std::string&, std::string&)’:
src/fetchdbrefs.cpp:208:26: error: converting ‘false’ to pointer type ‘void*’ [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [src/fetchdbrefs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Preprocessed source stored into /tmp/ccWMSAHq.out file, please attach this to your bugreport.
make[1]: *** [src/blast.o] Error 1
make[1]: Leaving directory `/home/wtouw/projects/xssp-2.2.5'
make: *** [all] Error 2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions