https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69791
Bug ID: 69791 Summary: ICE in ultimate_transparent_alias_target, at varasm.c:1263 Product: gcc Version: 6.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: --- When I try to pass -flto gcc from is compiled (most recent version from git), I get the following error: export GCC=yes export enable_static=no export enable_shared=yes export CFLAGS="-pipe -O3 -fno-fat-lto-objects -flto" export CXXFLAGS="-pipe -O3 -fno-fat-lto-objects -flto" export LDFLAGS="-Wl,-O1,-z,relro,-s -flto=4 -L/lib64" export enable_silent_rules=yes [ -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-pc-linux-gnu/libiberty' make[4]: Entering directory '/home/d/gcc/build-x86_64-pc-linux-gnu/libiberty/testsuite' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/d/gcc/build-x86_64-pc-linux-gnu/libiberty/testsuite' make[3]: Leaving directory '/home/d/gcc/build-x86_64-pc-linux-gnu/libiberty' make[3]: Entering directory '/home/d/gcc/build-x86_64-pc-linux-gnu/fixincludes' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/d/gcc/build-x86_64-pc-linux-gnu/fixincludes' make[3]: Entering directory '/home/d/gcc/build-x86_64-pc-linux-gnu/libcpp' test -f config.h || (rm -f stamp-h1 && make stamp-h1) make[3]: Leaving directory '/home/d/gcc/build-x86_64-pc-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-pc-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) \ /usr/local/x86_64-pc-linux-gnu/bin/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-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-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 -DUSE_ELF_SYMVER -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-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-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 -DUSE_ELF_SYMVER -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 && (echo "/* GNU ld script"; echo " Use the shared library, but some functions are only in"; echo " the static library. */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so /usr/local/x86_64-pc-linux-gnu/bin/ld: error in /tmp/ccaW3AcY.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-pc-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 /usr/local/x86_64-pc-linux-gnu/bin/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; /usr/local/bin/install -c -m 644 ./libgcc_s.so ../.././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 /usr/local/x86_64-pc-linux-gnu/bin/ranlib ../.././gcc/libgcc.a /usr/local/bin/install -c -m 644 libgcov.a ../.././gcc/ chmod 644 ../.././gcc/libgcov.a /usr/local/x86_64-pc-linux-gnu/bin/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) \ /usr/local/x86_64-pc-linux-gnu/bin/ranlib ../.././gcc/$file ;; \ esac; \ done make[4]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libgcc' make[3]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libgcc' Checking multilib configuration for libgomp... Checking multilib configuration for libstdc++-v3... make[3]: Entering directory '/home/d/gcc/x86_64-pc-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-pc-linux-gnu" "gxx_include_dir=/usr/local/include/c++/6.0.0" "AR=/usr/local/x86_64-pc-linux-gnu/bin/ar" "AS=/home/d/gcc/./gcc/as" "LD=/home/d/gcc/./gcc/collect-ld" "RANLIB=/usr/local/x86_64-pc-linux-gnu/bin/ranlib" "NM=/home/d/gcc/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/usr/local/x86_64-pc-linux-gnu/bin/nm" "DESTDIR=" "WERROR=" all-recursive make[4]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3' Making all in include make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/include' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/include' Making all in libsupc++ make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++' Making all in src make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src' Making all in c++98 make[6]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/c++98' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/c++98' Making all in c++11 make[6]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/c++11' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/c++11' Making all in filesystem make[6]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/filesystem' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/filesystem' make[6]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src' make[6]: Nothing to be done for 'all-am'. make[6]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src' make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src' Making all in doc make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/doc' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/doc' Making all in po make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/po' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/po' Making all in testsuite make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/testsuite' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/testsuite' Making all in python make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/python' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3/python' make[5]: Entering directory '/home/d/gcc/x86_64-pc-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-pc-linux-gnu" "gxx_include_dir=/usr/local/include/c++/6.0.0" "AR=/usr/local/x86_64-pc-linux-gnu/bin/ar" "AS=/home/d/gcc/./gcc/as" "LD=/home/d/gcc/./gcc/collect-ld" "RANLIB=/usr/local/x86_64-pc-linux-gnu/bin/ranlib" "NM=/home/d/gcc/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/usr/local/x86_64-pc-linux-gnu/bin/nm" "DESTDIR=" "WERROR=" DO=all multi-do # make make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3' make[4]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3' make[3]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libstdc++-v3' Checking multilib configuration for libmpx... make[3]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx' make "AR_FLAGS=rc" "CC_FOR_BUILD=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" "JC1FLAGS=" "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 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "includedir=/usr/local/include" "AR=/usr/local/x86_64-pc-linux-gnu/bin/ar" "AS=/home/d/gcc/./gcc/as" "LD=/home/d/gcc/./gcc/collect-ld" "LIBCFLAGS=-g -O2 -pipe -O3 -fno-fat-lto-objects -flto" "NM=/home/d/gcc/./gcc/nm" "PICFLAG=" "RANLIB=/usr/local/x86_64-pc-linux-gnu/bin/ranlib" "DESTDIR=" all-recursive make[4]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx' Making all in mpxrt make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx/mpxrt' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx/mpxrt' Making all in mpxwrap make[5]: Entering directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx/mpxwrap' /bin/bash ../libtool --tag=CC --mode=link /home/d/gcc/./gcc/xgcc -B/home/d/gcc/./gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -fcheck-pointer-bounds -mmpx -fno-chkp-check-read -fno-chkp-check-write -fno-chkp-use-wrappers -fPIC -g -O2 -pipe -O3 -fno-fat-lto-objects -flto -Wl,--version-script=/git/gcc/libmpx/mpxwrap/libmpxwrappers.map -version-info `grep -v '^#' /git/gcc/libmpx/mpxwrap/libtool-version` -o libmpxwrappers.la -rpath /usr/local/lib/../lib64 libmpxwrappers_la-mpx_wrappers.lo libtool: link: /home/d/gcc/./gcc/xgcc -B/home/d/gcc/./gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include -shared -fPIC -DPIC .libs/libmpxwrappers_la-mpx_wrappers.o -mmpx -Wl,--version-script=/git/gcc/libmpx/mpxwrap/libmpxwrappers.map -Wl,-soname -Wl,libmpxwrappers.so.2 -o .libs/libmpxwrappers.so.2.0.0 <built-in>: warning: type of '__builtin_strncat.chkp' does not match original declaration [-Wlto-type-mismatch] /git/gcc/libmpx/mpxwrap/mpx_wrappers.c:520:1: note: type mismatch in parameter 2 __mpx_wrapper_strncat (char *dst, const char *src, size_t n) ^ /git/gcc/libmpx/mpxwrap/mpx_wrappers.c:520:1: note: '__mpx_wrapper_strncat' was previously declared here /git/gcc/libmpx/mpxwrap/mpx_wrappers.c:520:1: note: code may be misoptimized unless -fno-strict-aliasing is used /git/gcc/libmpx/mpxwrap/mpx_wrappers.c: In function '__mpx_wrapper_malloc.chkp': /git/gcc/libmpx/mpxwrap/mpx_wrappers.c:35:9: internal compiler error: in ultimate_transparent_alias_target, at varasm.c:1263 void *p = (void *)malloc (size); ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: /home/d/gcc/./gcc/xgcc returned 1 exit status compilation terminated. /usr/local/x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Makefile:369: recipe for target 'libmpxwrappers.la' failed make[5]: *** [libmpxwrappers.la] Error 1 make[5]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx/mpxwrap' Makefile:409: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx' Makefile:300: recipe for target 'all' failed make[3]: *** [all] Error 2 make[3]: Leaving directory '/home/d/gcc/x86_64-pc-linux-gnu/libmpx' Makefile:14341: recipe for target 'all-stage1-target-libmpx' failed make[2]: *** [all-stage1-target-libmpx] Error 2 make[2]: Leaving directory '/home/d/gcc' Makefile:20571: recipe for target 'stage1-bubble' failed make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory '/home/d/gcc' Makefile:913: recipe for target 'all' failed make: *** [all] Error 2