https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79862
Bug ID: 79862
Summary: Compilation error while building libstdc++
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sbansal at ciena dot com
Target Milestone: ---
Dear Team,
I am trying to build 4.8.1 libstdc++-v3 library and I am seeing some
compilation errors. Please help.
Also, I was able to compile libgcc successfully.
GCC configuration used as :
===================================
$../gcc-4.8/configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--target=powerpc-wrs-vxworks \
--disable-libmudflap \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-sjlj-exceptions \
--disable-symvers \
--disable-fixed-point \
--disable-decimal-float \
--disable-lto \
--disable-hosted-libstdcxx \
--disable-nls \
--disable-libgomp
--enable-threads=vxworks \
--enable-poison-system-directories
--enable-version-specific-runtime-libs \
--enable-__cxa_atexit \
--enable-languages=c,c++ \
--enable-shared \
--exec-prefix='/opt/cross/x86-linux2' \
--libdir='/opt/cross/lib' \
--program-transform-name='s,^gcc$,cc,;s,$,ppc,' \
--prefix=/opt/cross \
--with-gmp=/opt/cross \
--with-mpfr=/opt/cross \
--with-isl=/opt/cross \
--with-gxx-include-dir=''\''/opt/cross/'\''include/c++/4.8'
--with-build-time-tools=/opt/cross/x86-linux2/powerpc-wrs-vxworks/bin
--with-cloog=/opt/cross
--with-gnu-as \
--with-gnu-ld \
../../../../gcc-4.8/libstdc++-v3/libsupc++/tinfo.h:25:20: fatal error:
typeinfo: No such file or directory
I checked but typeinfo file does not physically exist at below location.
gcc-4.8/libstdc++-v3/libsupc++/
I also tried to copy this file "typeinfo" from my older toolchain 4.3.3 but it
starts to fail further for "exception" file not found.
I again copied "exception" file from my older toolchain 4.3.3 but it again
fails further at :
error: '_GLIBCXX_END_NAMESPACE' does not name a type.
Any help in this regard will be appreciated.
Thanks.
Sumit