https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77917

            Bug ID: 77917
           Summary: undefined reference to '__aeabi_unwind_cpp_pr0' during
                    ARM bootstrap
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tulipawn at gmail dot com
  Target Milestone: ---

In case that's the culprit, I had the CFLAGS I customarily use, including
-flto, present in the environment before starting the bootstrap (gcc4 ABI,
using 4.9): 

checking size of long long... configure: error: in
`/home/guest/gcc-svn-master/build/gcc':
configure: error: cannot compute sizeof (long long)
See `config.log' for more details.
make[2]: *** [configure-stage2-gcc] Error 77

configure:6075: checking size of long long
configure:6080:  /home/guest/gcc-svn-master/build/./prev-gcc/xg++
-B/home/guest/gcc-svn-master/build/./prev-gcc/ -B/usr/gcc7/arm-linux-gnue
abihf/bin/ -nostdinc++
-B/home/guest/gcc-svn-master/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-B/home/guest/gcc-svn-master/buil
d/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs 
-I/home/guest/gcc-svn-master/build/prev-arm-linux-gnueabihf/libstdc++-v3/include/a
rm-linux-gnueabihf 
-I/home/guest/gcc-svn-master/build/prev-arm-linux-gnueabihf/libstdc++-v3/include
 -I/home/guest/gcc-svn-master/libstdc+
+-v3/libsupc++
-L/home/guest/gcc-svn-master/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-L/home/guest/gcc-svn-master/build/prev-a
rm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -o conftest -g -O2 -gtoggle 
-static-libstdc++ -static-libgcc  conftest.cpp  >&5

/tmp/ccFBuI5b.o(.ARM.exidx.text.startup+0x0): error: undefined reference to
'__aeabi_unwind_cpp_pr0'
collect2: error: ld returned 1 exit status

Should LTO be avoided early on?

Reply via email to