https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58528
Eduard Bloch <blade at debian dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |blade at debian dot org --- Comment #8 from Eduard Bloch <blade at debian dot org> --- I have the same or at least very similar issue and it makes me crazy because it seems to have something with the position of the -g flag. I.e. this option set seems to work: -pthread -g -O3 -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -flto but -pthread -O3 -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -g -flto does not! There also seems to be some kind of race: the first time I tried it with g++-4.9, it was hanging for a while and then segfaulted, afterwards it's now running into ICE (same behavior with version 4.8). I made a build with -save-temps inside, see https://www.unix-ag.uni-kl.de/~bloch/acng/tmp/ and I can provide source: git clone https://alioth.debian.org/anonscm/git/apt-cacher-ng/apt-cacher-ng.git Branch: upstream Ref: 55661a69fcdc8263101a7849d3f9f83b8b05571b Command: make -j5 CXXFLAGS="-g -flto" LDFLAGS=-flto apt-cacher-ng