gcc, glibc build from source
steve_g
ah@avtodoria.ru
Mon Dec 26 16:17:00 GMT 2016
Hello! I think i built all correctly(all steps was successfully performed)
and installed to the /opt but when i try to link my test program with libs
which depends on GLIBC_2.17 linker cannot find them!
This is output of strings /opt/Compiler/lib64/libstdc++.so.6 | grep GLIBC
command
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBC_2.3
GLIBC_2.2.5
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
GLIBC_2.17 is absent here... MY Os is Oracle Linux 6.8 x86_64
Maybe i was wrong in building gcc&glibc? Its first experience for me.
This is all steps i did during the building:
3. binutils (phase 1)
wget -c https://ftp.gnu.org/gnu/binutils/binutils-2.26.1.tar.gz
tar xzf binutils-2.26.1.tar.gz
cd binutils-2.26.1
mkdir -v build
cd build
../configure --prefix=/opt/Compiler/
make all
make install
export PATH=«/opt/Compiler/bin:$PATH»
cd /root/distr
4. gcc (phase 1)
wget -c http://ftp.gnu.org/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.gz
tar xzf gcc-5.3.0.tar.gz
cd gcc-5.3.0
./contrib/download_prerequisites
mkdir -v build
cd build
../configure --prefix=/opt/Compiler --enable-languages=c,c++
--disable-multilib
make
make install
cd /root/distr
5. glibc
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.23.tar.gz tar xzf
glibc-2.23.tar.gz
cd glibc-2.23
mkdir -v build
cd build
../configure --prefix=/opt/Compiler
make all
make install
cd /root/distr
6. libstdc++-v3
Its part of gcc tarball, so
cd gcc-5.3.0/libstdc++-v3
mkdir -v build
cd build
../configure --prefix=/opt/Compiler
make all
make install
cd /root/distr
7. binutils (phase 2) cd binutils-2.26.1
mkdir -v build2
cd build2
../configure --prefix=/opt/Compiler/
make all
make install
cd /root/distr
8. gcc (phase 2)
cd gcc-5.3.0
mkdir -v build2
cd build2
../configure --prefix=/opt/Compiler --enable-languages=c,c++
--disable-multilib
make all
make install
cd /root/distr
9. gdb
yum install texinfo
wget -c http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.gz tar xzf gdb-7.11.tar.gz
cd gdb-7.11
mkdir -v build
cd build
../configure --prefix=/opt/Compiler
make all
make install
Hope for your help so much!
--
View this message in context: http://gcc.1065356.n8.nabble.com/gcc-glibc-build-from-source-tp1335017.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.
More information about the Libstdc++
mailing list