https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70200
Bug ID: 70200 Summary: builing gcc with -lfto without libunwind Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dilyan.palauzov at aegee dot org Target Milestone: --- I have the newest gcc-5 (commit e0f9303ca2e71). In my /etc/config.site is written: export CFLAGS="-pipe -O3 -fno-fat-lto-objects -flto" export CXXFLAGS="-pipe -O3 -fno-fat-lto-objects -flto" export enable_silent_rules=yes export LDFLAGS="-Wl,-z,relro,-O1,-s -flto=24" I use binutils 2.26.51.20160310 (ld.bfd, gas, etc). Then I do: /git/gcc/configure --enable-host-shared --enable-threads=posix --with-arch=haswell --enable-targets=all --enable-nls --with-linker-hash-style=gnu --with-system-zlib --disable-multilib --enable-languages=c,c++,jit,lto and at stage_current=stage_last=2 I get "undefined reference to `_Unwind_Resume'", as listed below. Please update the documentation under INSTALL, that in order to avoid this problem, libunwind has to be installed and configured with "./configure --enable-cxx-exceptions". Not passing "-fno-fat-lto-objects -flto" to CFLAGS/CXXFLAGS does not show the problem, even if libunwind is not installed. [ -f stage_final ] || echo stage3 > stage_final make[1]: Entering directory '/home/d/gcc' make[2]: Entering directory '/home/d/gcc' make[3]: Entering directory '/home/d/gcc' rm -f stage_current make[3]: Leaving directory '/home/d/gcc' make[2]: Leaving directory '/home/d/gcc' make[2]: Entering directory '/home/d/gcc' make[3]: Entering directory '/home/d/gcc/libiberty' make[4]: Entering directory '/home/d/gcc/libiberty/testsuite' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/d/gcc/libiberty/testsuite' make[3]: Leaving directory '/home/d/gcc/libiberty' make[3]: Entering directory '/home/d/gcc/lto-plugin' make all-am make[4]: Entering directory '/home/d/gcc/lto-plugin' make[4]: Leaving directory '/home/d/gcc/lto-plugin' make[3]: Leaving directory '/home/d/gcc/lto-plugin' make[3]: Entering directory '/home/d/gcc/intl' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/intl' make[3]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty' make[4]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty/testsuite' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty/testsuite' make[3]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty' make[3]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/fixincludes' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/fixincludes' make[3]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libcpp' make[3]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libcpp' make[3]: Entering directory '/home/d/gcc/libbacktrace' make all-am make[4]: Entering directory '/home/d/gcc/libbacktrace' true DO=all multi-do # make make[4]: Leaving directory '/home/d/gcc/libbacktrace' make[3]: Leaving directory '/home/d/gcc/libbacktrace' make[3]: Entering directory '/home/d/gcc/libcpp' test -f config.h || (rm -f stamp-h1 && make stamp-h1) make[3]: Leaving directory '/home/d/gcc/libcpp' make[3]: Entering directory '/home/d/gcc/libdecnumber' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/libdecnumber' make[3]: Entering directory '/home/d/gcc/gcc' make[3]: Leaving directory '/home/d/gcc/gcc' Checking multilib configuration for libgcc... make[3]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgcc' # If this is the top-level multilib, build all the other # multilibs. # Early copyback; see "all" above for the rationale. The # early copy is necessary so that the gcc -B options find # the right startup files when linking shared libgcc. /bin/bash /git/gcc/libgcc/../mkinstalldirs ../.././gcc parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"; \ for file in $parts; do \ rm -f ../.././gcc/$file; \ /usr/local/bin/install -c -m 644 $file ../.././gcc/; \ case $file in \ *.a) \ ranlib ../.././gcc/$file ;; \ esac; \ done # @multilib_flags@ is still needed because this may use # /home/d/gcc/./gcc/xgcc -B/home/d/gcc/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include and -O2 -g -O2 -pipe -O3 -fno-fat-lto-objects -flto -DIN_GCC -fPIC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector directly. # @multilib_dir@ is not really necessary, but sometimes it has # more uses than just a directory name. /bin/bash /git/gcc/libgcc/../mkinstalldirs . /home/d/gcc/./gcc/xgcc -B/home/d/gcc/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -g -O2 -pipe -O3 -fno-fat-lto-objects -flto -DIN_GCC -fPIC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -pipe -O3 -fno-fat-lto-objects -flto -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o getf2_s.o letf2_s.o eqtf2_s.o _divtc3_s.o _multc3_s.o _powitf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so /usr/local/lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../x86_64-pc-linux-gnu/bin/ld: error in /tmp/ccwVpgOa.ltrans0.ltrans.o(.eh_frame); no .eh_frame_hdr table will be created. dest=../.././gcc/include/tmp$$-unwind.h; \ cp unwind.h $dest; \ chmod a+r $dest; \ sh /git/gcc/libgcc/../move-if-change $dest ../.././gcc/include/unwind.h # Now that we have built all the objects, we need to copy # them back to the GCC directory. Too many things (other # in-tree libraries, and DejaGNU) know about the layout # of the build tree, for now. make install-leaf DESTDIR=../.././gcc \ slibdir= libsubdir= MULTIOSDIR=. make[4]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgcc' /bin/bash /git/gcc/libgcc/../mkinstalldirs ../.././gcc /usr/local/bin/install -c -m 644 libgcc_eh.a ../.././gcc/ chmod 644 ../.././gcc/libgcc_eh.a ranlib ../.././gcc/libgcc_eh.a /bin/bash /git/gcc/libgcc/../mkinstalldirs ../.././gcc; /usr/local/bin/install -c -m 644 ./libgcc_s.so.1 ../.././gcc/libgcc_s.so.1; rm -f ../.././gcc/libgcc_s.so; ln -s libgcc_s.so.1 ../.././gcc/libgcc_s.so /bin/bash /git/gcc/libgcc/../mkinstalldirs ../.././gcc /usr/local/bin/install -c -m 644 libgcc.a ../.././gcc/ chmod 644 ../.././gcc/libgcc.a ranlib ../.././gcc/libgcc.a /usr/local/bin/install -c -m 644 libgcov.a ../.././gcc/ chmod 644 ../.././gcc/libgcov.a ranlib ../.././gcc/libgcov.a parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"; \ for file in $parts; do \ rm -f ../.././gcc/$file; \ /usr/local/bin/install -c -m 644 $file ../.././gcc/; \ case $file in \ *.a) \ ranlib ../.././gcc/$file ;; \ esac; \ done make[4]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgcc' make[3]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgcc' Checking multilib configuration for libgomp... Checking multilib configuration for libstdc++-v3... make[3]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3' make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=/home/d/gcc/./gcc/xgcc -B/home/d/gcc/./gcc/" "CFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "CXXFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-pipe -O3 -fno-fat-lto-objects -flto" "CFLAGS_FOR_TARGET=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "INSTALL=/usr/local/bin/install -c" "INSTALL_DATA=/usr/local/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/local/bin/install -c" "INSTALL_SCRIPT=/usr/local/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "SHELL=/bin/bash" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "includedir=/usr/local/include" "prefix=/usr/local" "tooldir=/usr/local/x86_64-unknown-linux-gnu" "gxx_include_dir=/usr/local/include/c++/5.3.1" "AR=ar" "AS=/home/d/gcc/./gcc/as" "LD=/home/d/gcc/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/d/gcc/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive make[4]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3' Making all in include make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include' Making all in libsupc++ make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++' Making all in src make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src' Making all in c++98 make[6]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++98' Making all in c++11 make[6]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++11' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++11' Making all in filesystem make[6]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/filesystem' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/filesystem' make[6]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src' make[6]: Nothing to be done for 'all-am'. make[6]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src' make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src' Making all in doc make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/doc' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/doc' Making all in po make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/po' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/po' Making all in testsuite make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/testsuite' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/testsuite' Making all in python make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/python' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/python' make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3' true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=/home/d/gcc/./gcc/xgcc -B/home/d/gcc/./gcc/" "CFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "CXXFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-pipe -O3 -fno-fat-lto-objects -flto" "CFLAGS_FOR_TARGET=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "INSTALL=/usr/local/bin/install -c" "INSTALL_DATA=/usr/local/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/local/bin/install -c" "INSTALL_SCRIPT=/usr/local/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "SHELL=/bin/bash" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "includedir=/usr/local/include" "prefix=/usr/local" "tooldir=/usr/local/x86_64-unknown-linux-gnu" "gxx_include_dir=/usr/local/include/c++/5.3.1" "AR=ar" "AS=/home/d/gcc/./gcc/as" "LD=/home/d/gcc/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/d/gcc/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" DO=all multi-do # make make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3' make[4]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3' make[3]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libstdc++-v3' make[3]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp' make all-recursive make[4]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp' Making all in testsuite make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp/testsuite' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp/testsuite' make[5]: Entering directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp' true DO=all multi-do # make make[5]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp' make[4]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp' make[3]: Leaving directory '/home/d/gcc/x86_64-unknown-linux-gnu/libgomp' make[2]: Leaving directory '/home/d/gcc' make[2]: Entering directory '/home/d/gcc' make[3]: Entering directory '/home/d/gcc' rm -f stage_current make[3]: Leaving directory '/home/d/gcc' make[2]: Leaving directory '/home/d/gcc' make[2]: Entering directory '/home/d/gcc' make[3]: Entering directory '/home/d/gcc/libiberty' make[4]: Entering directory '/home/d/gcc/libiberty/testsuite' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/d/gcc/libiberty/testsuite' make[3]: Leaving directory '/home/d/gcc/libiberty' make[3]: Entering directory '/home/d/gcc/lto-plugin' make all-am make[4]: Entering directory '/home/d/gcc/lto-plugin' make[4]: Leaving directory '/home/d/gcc/lto-plugin' make[3]: Leaving directory '/home/d/gcc/lto-plugin' make[3]: Entering directory '/home/d/gcc/intl' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/intl' make[3]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty' make[4]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty/testsuite' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty/testsuite' make[3]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libiberty' make[3]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/fixincludes' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/fixincludes' make[3]: Entering directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libcpp' make[3]: Leaving directory '/home/d/gcc/build-x86_64-unknown-linux-gnu/libcpp' make[3]: Entering directory '/home/d/gcc/libbacktrace' make all-am make[4]: Entering directory '/home/d/gcc/libbacktrace' true DO=all multi-do # make make[4]: Leaving directory '/home/d/gcc/libbacktrace' make[3]: Leaving directory '/home/d/gcc/libbacktrace' make[3]: Entering directory '/home/d/gcc/libcpp' make[3]: Leaving directory '/home/d/gcc/libcpp' make[3]: Entering directory '/home/d/gcc/libdecnumber' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/libdecnumber' make[3]: Entering directory '/home/d/gcc/gcc' /home/d/gcc/./prev-gcc/xg++ -B/home/d/gcc/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/d/gcc/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/d/gcc/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/d/gcc/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/d/gcc/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/git/gcc/libstdc++-v3/libsupc++ -L/home/d/gcc/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/d/gcc/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -gtoggle -DIN_GCC -fPIC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o build/genmatch \ build/genmatch.o ../libcpp/libcpp.a ../libiberty/pic/libiberty.a build/errors.o build/vec.o build/hash-table.o .././libiberty/pic/libiberty.a /usr/local/lib/gcc/x86_64-pc-linux-gnu/6.0.0/../../../../x86_64-pc-linux-gnu/bin/ld: error in /tmp/cclGjTVW.ltrans1.ltrans.o(.eh_frame); no .eh_frame_hdr table will be created. /tmp/cclGjTVW.ltrans1.ltrans.o: In function `__cxa_call_unexpected': <artificial>:(.text+0x1498): undefined reference to `_Unwind_Resume' /tmp/cclGjTVW.ltrans1.ltrans.o: In function `__gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*)': <artificial>:(.text+0x1683): undefined reference to `_Unwind_Resume' /tmp/cclGjTVW.ltrans3.ltrans.o: In function `__gnu_cxx::__verbose_terminate_handler()': <artificial>:(.text+0xd57): undefined reference to `_Unwind_Resume' /tmp/cclGjTVW.ltrans8.ltrans.o: In function `__cxa_allocate_exception.constprop.14': <artificial>:(.text.unlikely+0x72): undefined reference to `_Unwind_Resume' collect2: error: ld returned 1 exit status Makefile:2613: recipe for target 'build/genmatch' failed make[3]: *** [build/genmatch] Error 1 make[3]: Leaving directory '/home/d/gcc/gcc' Makefile:4411: recipe for target 'all-stage2-gcc' failed make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory '/home/d/gcc' Makefile:19827: recipe for target 'stage2-bubble' failed make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory '/home/d/gcc' Makefile:902: recipe for target 'all' failed make: *** [all] Error 2