https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69581
Bug ID: 69581
Summary: r232586 broke arm-cross-compiler bootstrap
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bernd.edlinger at hotmail dot de
Target Milestone: ---
I'm using glibc 2.15 at $prefix/$target/include
this works:
../gcc-trunk/configure --prefix=/home/ed/gnu/arm-linux-gnueabihf-linux64
--target=arm-linux-gnueabihf --with-arch=armv7-a --with-tune=cortex-a9
--with-fpu=vfpv3-d16 --with-float=hard --enable-languages=c,c++,ada,fortran
but this fails:
../gcc-trunk/configure --prefix=/home/ed/gnu/arm-linux-gnueabihf-cross
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --with-arch=armv7-a
--with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard
--enable-languages=c,ada,c++,fortran
make used to work previously,
but now it aborts with:
libtool: compile: arm-linux-gnueabihf-c++ -D_GNU_SOURCE -D_DEBUG
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-DHAVE_RPC_XDR_H=1 -DHAVE_TIRPC_RPC_XDR_H=0 -I.
-I../../../../gcc-trunk/libsanitizer/sanitizer_common -I.. -I
../../../../gcc-trunk/libsanitizer/include -isystem
../../../../gcc-trunk/libsanitizer/include/system -Wall -W
-Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC
-fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables
-fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include
-I../../libstdc++-v3/include/arm-linux-gnueabihf
-I../../../../gcc-trunk/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11
-DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I
../../../../gcc-trunk/libsanitizer/../libbacktrace -I ../libbacktrace -I
../../../../gcc-trunk/libsanitizer/../include -include
../../../../gcc-trunk/libsanitizer/libbacktrace/backtrace-rename.h -g -O2
-D_GNU_SOURCE -MT sanitizer_platform_limits_posix.lo -MD -MP -MF
.deps/sanitizer_platform_limits_posix.Tpo -c
../../../../gcc-trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
-fPIC -DPIC -o .libs/sanitizer_platform_limits_posix.o
In file included from ../../libstdc++-v3/include/stdlib.h:35:0,
from
/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/include/rpc/types.h:60,
from
/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/include/rpc/xdr.h:39,
from
../../../../gcc-trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:144:
../../libstdc++-v3/include/cstdlib:124:11: error: '::div_t' has not been
declared
using ::div_t;
^~~~~
../../libstdc++-v3/include/cstdlib:125:11: error: '::ldiv_t' has not been
declared
using ::ldiv_t;
^~~~~~
../../libstdc++-v3/include/cstdlib:127:11: error: '::abort' has not been
declared
using ::abort;
^~~~~
../../libstdc++-v3/include/cstdlib:128:11: error: '::abs' has not been declared
using ::abs;
^~~
../../libstdc++-v3/include/cstdlib:129:11: error: '::atexit' has not been
declared
using ::atexit;
^~~~~~
../../libstdc++-v3/include/cstdlib:132:11: error: '::at_quick_exit' has not
been declared
using ::at_quick_exit;
^~~~~~~~~~~~~
../../libstdc++-v3/include/cstdlib:135:11: error: '::atof' has not been
declared
using ::atof;
^~~~
../../libstdc++-v3/include/cstdlib:136:11: error: '::atoi' has not been
declared
using ::atoi;
^~~~
../../libstdc++-v3/include/cstdlib:137:11: error: '::atol' has not been
declared
using ::atol;
^~~~
../../libstdc++-v3/include/cstdlib:138:11: error: '::bsearch' has not been
declared
using ::bsearch;
^~~~~~~
../../libstdc++-v3/include/cstdlib:140:11: error: '::div' has not been declared
using ::div;
^~~
../../libstdc++-v3/include/cstdlib:141:11: error: '::exit' has not been
declared
using ::exit;
^~~~
../../libstdc++-v3/include/cstdlib:143:11: error: '::getenv' has not been
declared
using ::getenv;
^~~~~~
../../libstdc++-v3/include/cstdlib:144:11: error: '::labs' has not been
declared
using ::labs;
^~~~
../../libstdc++-v3/include/cstdlib:145:11: error: '::ldiv' has not been
declared
using ::ldiv;
^~~~
../../libstdc++-v3/include/cstdlib:148:11: error: '::mblen' has not been
declared
using ::mblen;
^~~~~
../../libstdc++-v3/include/cstdlib:149:11: error: '::mbstowcs' has not been
declared
using ::mbstowcs;
^~~~~~~~
../../libstdc++-v3/include/cstdlib:150:11: error: '::mbtowc' has not been
declared
using ::mbtowc;
^~~~~~
../../libstdc++-v3/include/cstdlib:152:11: error: '::qsort' has not been
declared
using ::qsort;
^~~~~
../../libstdc++-v3/include/cstdlib:155:11: error: '::quick_exit' has not been
declared
using ::quick_exit;
^~~~~~~~~~
../../libstdc++-v3/include/cstdlib:158:11: error: '::rand' has not been
declared
using ::rand;
^~~~
../../libstdc++-v3/include/cstdlib:160:11: error: '::srand' has not been
declared
using ::srand;
^~~~~
../../libstdc++-v3/include/cstdlib:161:11: error: '::strtod' has not been
declared
using ::strtod;
^~~~~~
../../libstdc++-v3/include/cstdlib:162:11: error: '::strtol' has not been
declared
using ::strtol;
^~~~~~
../../libstdc++-v3/include/cstdlib:163:11: error: '::strtoul' has not been
declared
using ::strtoul;
^~~~~~~
../../libstdc++-v3/include/cstdlib:164:11: error: '::system' has not been
declared
using ::system;
^~~~~~
../../libstdc++-v3/include/cstdlib:166:11: error: '::wcstombs' has not been
declared
using ::wcstombs;
^~~~~~~~
../../libstdc++-v3/include/cstdlib:167:11: error: '::wctomb' has not been
declared
using ::wctomb;
^~~~~~
../../libstdc++-v3/include/cstdlib:174:10: error: 'ldiv_t' does not name a type
inline ldiv_t
^~~~~~
../../libstdc++-v3/include/cstdlib:220:11: error: '::lldiv_t' has not been
declared
using ::lldiv_t;
^~~~~~~
../../libstdc++-v3/include/cstdlib:226:11: error: '::_Exit' has not been
declared
using ::_Exit;
^~~~~
../../libstdc++-v3/include/cstdlib:230:11: error: '::llabs' has not been
declared
using ::llabs;
^~~~~
../../libstdc++-v3/include/cstdlib:232:10: error: 'lldiv_t' does not name a
type
inline lldiv_t
^~~~~~~
../../libstdc++-v3/include/cstdlib:236:11: error: '::lldiv' has not been
declared
using ::lldiv;
^~~~~
../../libstdc++-v3/include/cstdlib:247:11: error: '::atoll' has not been
declared
using ::atoll;
^~~~~
../../libstdc++-v3/include/cstdlib:248:11: error: '::strtoll' has not been
declared
using ::strtoll;
^~~~~~~
../../libstdc++-v3/include/cstdlib:249:11: error: '::strtoull' has not been
declared
using ::strtoull;
^~~~~~~~
../../libstdc++-v3/include/cstdlib:251:11: error: '::strtof' has not been
declared
using ::strtof;
^~~~~~
../../libstdc++-v3/include/cstdlib:252:11: error: '::strtold' has not been
declared
using ::strtold;
^~~~~~~
../../libstdc++-v3/include/cstdlib:260:22: error: '__gnu_cxx::lldiv_t' has not
been declared
using ::__gnu_cxx::lldiv_t;
^~~~~~~
../../libstdc++-v3/include/cstdlib:262:22: error: '__gnu_cxx::_Exit' has not
been declared
using ::__gnu_cxx::_Exit;
^~~~~
../../libstdc++-v3/include/cstdlib:264:22: error: '__gnu_cxx::llabs' has not
been declared
using ::__gnu_cxx::llabs;
^~~~~
../../libstdc++-v3/include/cstdlib:265:22: error: '__gnu_cxx::div' has not been
declared
using ::__gnu_cxx::div;
^~~
../../libstdc++-v3/include/cstdlib:266:22: error: '__gnu_cxx::lldiv' has not
been declared
using ::__gnu_cxx::lldiv;
^~~~~
../../libstdc++-v3/include/cstdlib:268:22: error: '__gnu_cxx::atoll' has not
been declared
using ::__gnu_cxx::atoll;
^~~~~
../../libstdc++-v3/include/cstdlib:269:22: error: '__gnu_cxx::strtof' has not
been declared
using ::__gnu_cxx::strtof;
^~~~~~
../../libstdc++-v3/include/cstdlib:270:22: error: '__gnu_cxx::strtoll' has not
been declared
using ::__gnu_cxx::strtoll;
^~~~~~~
../../libstdc++-v3/include/cstdlib:271:22: error: '__gnu_cxx::strtoull' has not
been declared
using ::__gnu_cxx::strtoull;
^~~~~~~~
../../libstdc++-v3/include/cstdlib:272:22: error: '__gnu_cxx::strtold' has not
been declared
using ::__gnu_cxx::strtold;
^~~~~~~
In file included from
/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/include/rpc/types.h:60:0,
from
/home/ed/gnu/arm-linux-gnueabihf-linux64/arm-linux-gnueabihf/include/rpc/xdr.h:39,
from
../../../../gcc-trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:144:
../../libstdc++-v3/include/stdlib.h:37:12: error: 'std::abort' has not been
declared
using std::abort;
^~~~~
../../libstdc++-v3/include/stdlib.h:38:12: error: 'std::atexit' has not been
declared
using std::atexit;
^~~~~~
../../libstdc++-v3/include/stdlib.h:39:12: error: 'std::exit' has not been
declared
using std::exit;
^~~~
../../libstdc++-v3/include/stdlib.h:42:14: error: 'std::at_quick_exit' has not
been declared
using std::at_quick_exit;
^~~~~~~~~~~~~
../../libstdc++-v3/include/stdlib.h:45:14: error: 'std::quick_exit' has not
been declared
using std::quick_exit;
^~~~~~~~~~
../../libstdc++-v3/include/stdlib.h:50:12: error: 'std::div_t' has not been
declared
using std::div_t;
^~~~~
../../libstdc++-v3/include/stdlib.h:51:12: error: 'std::ldiv_t' has not been
declared
using std::ldiv_t;
^~~~~~
../../libstdc++-v3/include/stdlib.h:54:12: error: 'std::atof' has not been
declared
using std::atof;
^~~~
../../libstdc++-v3/include/stdlib.h:55:12: error: 'std::atoi' has not been
declared
using std::atoi;
^~~~
../../libstdc++-v3/include/stdlib.h:56:12: error: 'std::atol' has not been
declared
using std::atol;
^~~~
../../libstdc++-v3/include/stdlib.h:57:12: error: 'std::bsearch' has not been
declared
using std::bsearch;
^~~~~~~
../../libstdc++-v3/include/stdlib.h:59:12: error: 'std::div' has not been
declared
using std::div;
^~~
../../libstdc++-v3/include/stdlib.h:61:12: error: 'std::getenv' has not been
declared
using std::getenv;
^~~~~~
../../libstdc++-v3/include/stdlib.h:62:12: error: 'std::labs' has not been
declared
using std::labs;
^~~~
../../libstdc++-v3/include/stdlib.h:63:12: error: 'std::ldiv' has not been
declared
using std::ldiv;
^~~~
../../libstdc++-v3/include/stdlib.h:66:12: error: 'std::mblen' has not been
declared
using std::mblen;
^~~~~
../../libstdc++-v3/include/stdlib.h:67:12: error: 'std::mbstowcs' has not been
declared
using std::mbstowcs;
^~~~~~~~
../../libstdc++-v3/include/stdlib.h:68:12: error: 'std::mbtowc' has not been
declared
using std::mbtowc;
^~~~~~
../../libstdc++-v3/include/stdlib.h:70:12: error: 'std::qsort' has not been
declared
using std::qsort;
^~~~~
../../libstdc++-v3/include/stdlib.h:71:12: error: 'std::rand' has not been
declared
using std::rand;
^~~~
../../libstdc++-v3/include/stdlib.h:73:12: error: 'std::srand' has not been
declared
using std::srand;
^~~~~
../../libstdc++-v3/include/stdlib.h:74:12: error: 'std::strtod' has not been
declared
using std::strtod;
^~~~~~
../../libstdc++-v3/include/stdlib.h:75:12: error: 'std::strtol' has not been
declared
using std::strtol;
^~~~~~
../../libstdc++-v3/include/stdlib.h:76:12: error: 'std::strtoul' has not been
declared
using std::strtoul;
^~~~~~~
../../libstdc++-v3/include/stdlib.h:77:12: error: 'std::system' has not been
declared
using std::system;
^~~~~~
../../libstdc++-v3/include/stdlib.h:79:12: error: 'std::wcstombs' has not been
declared
using std::wcstombs;
^~~~~~~~
../../libstdc++-v3/include/stdlib.h:80:12: error: 'std::wctomb' has not been
declared
using std::wctomb;
^~~~~~
make[4]: *** [sanitizer_platform_limits_posix.lo] Error 1
make[4]: Leaving directory
`/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross/arm-linux-gnueabihf/libsanitizer/sanitizer_common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross/arm-linux-gnueabihf/libsanitizer'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross/arm-linux-gnueabihf/libsanitizer'
make[1]: *** [all-target-libsanitizer] Error 2
make[1]: Leaving directory `/home/ed/gnu/gcc-build-arm-linux-gnueabihf-cross'
make: *** [all] Error 2