Compiling GCC 4.8.5 on Fedora 25 ( GCC 6.2 )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to build GCC 4.8.5 from source on Fedora 25 ( GCC 6.2 ).
The only patch I am using beyond vanilla source is
gcc-4.9-fix-build-with-gcc-6.patch designed to fix issues with
libc_name_p. Building fails early and complains about libstdc++
support for components built against Fedora 25 libstdcc++ and then run
on libstdcc++ from the bootstrap ( CXXABI not found ).

#
#I fail early at during the stage1 target.
#

checking how to run the C preprocessor... (cached)
/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -E
configure: error: in
`/home/msellers/Downloads/gcc-4.8.5/x86_64-unknown-linux-gnu/libgcc':
configure: error: C preprocessor
"/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -E" fails sanity
check
See `config.log' for more details.
Makefile:15291: recipe for target 'configure-stage1-target-libgcc' failed
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory '/home/msellers/Downloads/gcc-4.8.5'
Makefile:19438: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/msellers/Downloads/gcc-4.8.5'
Makefile:885: recipe for target 'all' failed
make: *** [all] Error 2


#It seems that early bootstrap components are being linked against
Fedora 25's ( 6.2 ) libstdcc++ during build and executed with ( 4.8.5
) during successive compliation.

#
# from config.log:

configure:3923:
/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -E  conftest.c
/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/cc1:
/home/msellers/Downloads/gcc-4.8.5/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6:
version `CXXABI_1.3.9' not found (required by
/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/cc1)
configure:3923: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:3953: error: in
`/home/msellers/Downloads/gcc-4.8.5/x86_64-unknown-linux-gnu/libgcc':
configure:3956: error: C preprocessor
"/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -E" fails sanity
check
See `config.log' for more details.


#
# cc1 is built against Fedora25 libstdc++ which causes above error.
#

msellers@msellers ~/Downloads/gcc-4.8.5 $ strings
/home/msellers/Downloads/gcc-4.8.5/host-x86_64-unknown-linux-gnu/gcc/cc1
| grep CXXABI
CXXABI_1.3.9
CXXABI_1.3

## cc1 is executed during build with libstdc++ built during early
bootstrap -- and fails.

msellers@msellers ~/Downloads/gcc-4.8.5 $ strings
/home/msellers/Downloads/gcc-4.8.5/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
| grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
CXXABI_1.3
CXXABI_1.3.2
CXXABI_1.3.6
CXXABI_1.3.1
CXXABI_1.3.5
CXXABI_1.3.4
CXXABI_TM_1
CXXABI_1.3.7
CXXABI_1.3.3

Is this the expected result of building an older GCC release with a
new one?  Is the libstdc++ support gap too wide?  Im having trouble
finding advice from other sources --- I appreciate any insight.

Thanks,
Matt



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux