https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69393
Bug ID: 69393 Summary: ICE in dwarf2out_finish, at dwarf2out.c:27175 with LTO Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: tbm at cyrius dot com Target Milestone: --- I get the following ICE with gcc 6 from trunk (20160117) and LTO: g++ -o STAR -flto -flto -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O3 -pipe -std=c++11 -Wall -Wextra -fopenmp -D'COMPILATION_TIME_PLACE="Wed Jan 20 18:24:39 UTC 2016 :/home/tbm/gcc6/rna-star-2.5.0a+dfsg/source"' SharedMemory.o PackedArray.o SuffixArrayFuns.o STAR.o Parameters.o InOutStreams.o SequenceFuns.o Genome.o Stats.o Transcript.o Transcript_alignScore.o ReadAlign.o ReadAlign_storeAligns.o ReadAlign_stitchPieces.o ReadAlign_multMapSelect.o ReadAlign_mapOneRead.o readLoad.o ReadAlignChunk.o ReadAlignChunk_processChunks.o ReadAlignChunk_mapChunk.o OutSJ.o outputSJ.o blocksOverlap.o ThreadControl.o sysRemoveDir.o ReadAlign_maxMappableLength2strands.o binarySearch2.o ReadAlign_outputAlignments.o ReadAlign_outputTranscriptSAM.o ReadAlign_outputTranscriptSJ.o ReadAlign_outputTranscriptCIGARp.o ReadAlign_createExtendWindowsWithAlign.o ReadAlign_assignAlignToWindow.o ReadAlign_oneRead.o ReadAlign_stitchWindowSeeds.o ReadAlign_chimericDetection.o stitchWindowAligns.o extendAlign.o stitchAlignToTranscript.o alignSmithWaterman.o genomeGenerate.o genomeParametersWrite.o genomeScanFastaFiles.o genomeSAindex.o Genome_insertSequences.o insertSeqSA.o funCompareUintAndSuffixes.o TimeFunctions.o ErrorWarning.o loadGTF.o streamFuns.o stringSubstituteAll.o Transcriptome.o Transcriptome_quantAlign.o ReadAlign_quantTranscriptome.o Quantifications.o Transcriptome_geneCountsAddAlign.o sjdbLoadFromFiles.o sjdbLoadFromStream.o sjdbPrepare.o sjdbBuildIndex.o sjdbInsertJunctions.o mapThreadsSpawn.o Parameters_openReadsFiles.cpp Parameters_closeReadsFiles.cpp BAMoutput.o BAMfunctions.o ReadAlign_alignBAM.o BAMbinSortByCoordinate.o signalFromBAM.o bamRemoveDuplicates.o BAMbinSortUnmapped.o bam_cat.o GlobalVariables.cpp -pthread -Bstatic -lhts -Bdynamic 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. Unfortunately I'm not sure how to submit a test case. I tried to follow https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs and I got it down to: /usr/lib/gcc/x86_64-linux-gnu/6/lto1 -quiet -dumpdir ./ -dumpbase STAR.ltrans1 -auxbase-strip STAR.ltrans1.ltrans.o -g -O2 -fopenmp -fltrans STAR.ltrans1.o -o STAR.ltrans1.s 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. But I'm not sure which sources are used for STAR.ltrans1.o. The wiki says "Then use delta on that file" but that file is STAR.ltrans1.o, not source. Can someone give me some hints on how to get a testcase?