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

            Bug ID: 70896
           Summary: gcc4 ABI compatible bootstrap fails
           Product: gcc
           Version: 6.1.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tulipawn at gmail dot com
  Target Milestone: ---

I've just tried bootstrapping gcc 6.1.0 on ARM Linux with gcc 4.9.3 using the
following options:

 --enable-languages=c,c++,fortran --prefix=/usr/gcc6 --program-suffix=-6
--enable-shared --enable-linker-build-id --libexecdir=/usr/gcc6/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/gcc6/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=gcc4-compatible --disable-libstdcxx-dual-abi
--enable-gnu-unique-object --disable-libitm --disable-libquadmath
--enable-plugin --with-system-zlib --disable-browser-plugin --enable-multiarch
--enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a
--with-fpu=vfpv3 --with-float=hard --with-mode=thumb --disable-werror
--enable-multilib --enable-checking=release --build=arm-linux-gnueabihf
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf


but it failed like this:


make[6]: Entering directory
`gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/src/c++11'
/bin/bash ../../libtool --tag CXX --tag disable-shared   --mode=compile
/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/./gcc/xgcc -shared-libgcc
-B/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/./gcc -nostdinc++
-L/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/src
-L/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/src/.libs
-L/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs
-B/usr/gcc6/arm-linux-gnueabihf/bin/ -B/usr/gcc6/arm-linux-gnueabihf/lib/
-isystem /usr/gcc6/arm-linux-gnueabihf/include -isystem
/usr/gcc6/arm-linux-gnueabihf/sys-include   
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/libstdc++-v3/../libgcc
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/include
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/libstdc++-v3/libsupc++  
-std=gnu++11 -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates  -Wall
-Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once  
-ffunction-sections -fdata-sections  -frandom-seed=cow-stdexcept.lo -g -O2
-mcpu=cortex-a5 -O3 -marm -fomit-frame-pointer -fipa-pta -mfpu=vfpv4
-D_GNU_SOURCE  -c -o cow-stdexcept.lo
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc
libtool: compile:  /home/odroid/.phoronix-test-suite/gcc-6.1.0/build/./gcc/xgcc
-shared-libgcc -B/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/./gcc
-nostdinc++
-L/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/src
-L/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/src/.libs
-L/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs
-B/usr/gcc6/arm-linux-gnueabihf/bin/ -B/usr/gcc6/arm-linux-gnueabihf/lib/
-isystem /usr/gcc6/arm-linux-gnueabihf/include -isystem
/usr/gcc6/arm-linux-gnueabihf/sys-include
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/libstdc++-v3/../libgcc
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/build/arm-linux-gnueabihf/libstdc++-v3/include
-I/home/odroid/.phoronix-test-suite/gcc-6.1.0/libstdc++-v3/libsupc++
-std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=cow-stdexcept.lo -g -O2
-mcpu=cortex-a5 -O3 -marm -fomit-frame-pointer -fipa-pta -mfpu=vfpv4
-D_GNU_SOURCE -c ../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc  -fPIC
-DPIC -D_GLIBCXX_SHARED -o cow-stdexcept.o
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘const
char* _txnal_sso_string_c_str(const void*)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:300:40: error: ‘const
__sso_string {aka const class std::basic_string<char>}’ has no member named
‘_M_s’; did you mean ‘_M_rep’?
    &((const std::__sso_string*) that)->_M_s._M_p));
                                        ^~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::logic_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:408:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(11logic_error, std::logic_error, logic_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt12domain_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::domain_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:417:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(12domain_error, std::domain_error, logic_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::invalid_argument*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:418:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(16invalid_argument, std::invalid_argument, logic_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt12length_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::length_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:419:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(12length_error, std::length_error, logic_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt12out_of_rangeC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::out_of_range*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:420:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(12out_of_range, std::out_of_range, logic_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::runtime_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:423:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(13runtime_error, std::runtime_error, runtime_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt11range_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::range_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:432:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(11range_error, std::range_error, runtime_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt14overflow_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::overflow_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:433:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(14overflow_error, std::overflow_error, runtime_error)
 ^~~~~~~~
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc: In function ‘void
_ZGTtNSt15underflow_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(std::underflow_error*,
const __sso_string&)’:
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:378:43: warning: unused
parameter ‘s’ [-Wunused-parameter]
     CLASS* that, const std::__sso_string& s)    \
                                           ^
../../../../../libstdc++-v3/src/c++11/cow-stdexcept.cc:434:1: note: in
expansion of macro ‘CTORDTOR’
 CTORDTOR(15underflow_error, std::underflow_error, runtime_error)
 ^~~~~~~~
make[6]: *** [cow-stdexcept.lo] Error 1

Reply via email to