http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52420
Bug #: 52420 Summary: ada build failure with -gdwarf-4 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: p...@mandriva.com.br Recently in mandriva it was added -gdwarf-4 as well as some other options, to rpm optflags, but to successfully build gcc 4.7.0 it is required to remove it from CFLAGS to avoid this build failure: [...] ../../xgcc -B../../ -c -g -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -fPIC -W -Wall -gnatpg -gnata -I- -I../rts -I. -I/home/pcpa/rpmbuild/BUILD/gcc-4.7-20120225/gcc/ada /home/pcpa/rpmbuild/BUILD/gcc-4.7-20120225/gcc/ada/mlib-prj.adb -o mlib-prj.o [...] ../../xgcc -B../../ -static-libgcc -I- -I../rts -I. -I/home/pcpa/rpmbuild/BUILD/gcc-4.7-20120225/gcc/ada -DIN_GCC -g -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -fPIC -W -Wall -o ../../gnatmake b_gnatm.o a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o uname.o urealp.o usage.o widechar.o \ targext.o link.o ../../libcommon-target.a ../../libcommon.a ../../../libcpp/libcpp.a ../rts/libgnat.a ../../../libiberty/libiberty.a mlib-prj.o:(.debug_types[wt.d60ca0c82bc70253]+0x8a): undefined reference to `.LLST479' mlib-prj.o:(.debug_types[wt.41905a5a6a523ee9]+0x8f): undefined reference to `.LLST479' mlib-prj.o:(.debug_types[wt.0a43032d5d4a580b]+0x8a): undefined reference to `.LLST473' mlib-prj.o:(.debug_types[wt.36d40966de25ea99]+0x8f): undefined reference to `.LLST473' mlib-prj.o:(.debug_types[wt.5347ec71460dc53e]+0x8a): undefined reference to `.LLST455' mlib-prj.o:(.debug_types[wt.3096742ee216922d]+0x8f): undefined reference to `.LLST455' mlib-prj.o:(.debug_types[wt.d1642ddc76250466]+0x8a): undefined reference to `.LLST449' mlib-prj.o:(.debug_types[wt.0976701503715b70]+0x8f): undefined reference to `.LLST449' collect2: error: ld returned 1 exit status