Code: Select all
g++-mp-4.8 -o stockfish-0702 benchmark.o bitbase.o bitboard.o book.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o notation.o pawns.o position.o search.o thread.o timeman.o tt.o uci.o ucioption.o -lpthread -g -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto
evaluate.cpp: In function '_ZN12_GLOBAL__N_114evaluate_spaceIL5Color1EEEiRK8PositionRNS_8EvalInfoE.isra.19':
evaluate.cpp:1070:3: internal compiler error: in lhd_decl_printable_name, at langhooks.c:221
}
^
evaluate.cpp:1070:3: internal compiler error: Abort trap: 6
g++-mp-4.8: internal compiler error: Abort trap: 6 (program lto1)
lto-wrapper: g++-mp-4.8 terminated with signal 6 [Abort trap: 6]
collect2: error: lto-wrapper returned 1 exit status
make[1]: *** [stockfish-0702] Error 1
make: *** [build] Error 2
Note that both -g and -flto are included by default when building with the gcc and the supplied makefile.
Afterwards, I found this in the online documentation for gcc-4.8.1:
Just a heads-up to anyone who might care.Link-time optimization does not work well with generation of debugging information. Combining -flto with -g is currently experimental and expected to produce wrong results.