https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69393
--- Comment #7 from Martin Michlmayr <tbm at cyrius dot com> --- I should note that I don't see this with -r -nostdlib, as described in the wiki. (sid)604:tbm@dl580gen9-02: ~/a] g++-6 -r -nostdlib STAR.ii Genome.ii Stats.ii genomeGenerate.ii -g -O2 -fopenmp -flto -flto (sid)605:tbm@dl580gen9-02: ~/a] g++-6 -o STAR -flto -flto -g -O2 -fopenmp STAR.ii Genome.ii Stats.ii genomeGenerate.ii lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:27175 0x6a2e00 dwarf2out_finish ../../src/gcc/dwarf2out.c:27175 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. This is with 6.0.0 20160117 on x86_64-linux-gnu.