CentOS Integrated Toolchain Tutorial

I work on CentOS 6 machines, which has a very old version of GCC / GlibC. I want to create all glibc, binutils, gcc toolchain with the latest or at least very recent versions, to use C ++ 11 support in the latest gcc and ld.gold in the latest binutils and, possibly, improvements in recent glibc.

I want to put the entire toolchain in a separate directory and not affect any existing system files. I also want to build gcc with -sys-root, so when using gcc I do not need to specify -I / some / directory / include and -L / some / directory / lib or any other parameters. Also, the generated executable automatically uses the new ld-linux-xxxxx program loader, which will automatically find the new libc.so.

Does anyone know if there is some kind of tutorial on this task?

+5
source share
5 answers

The compiler is very dependent on glibc, although you will be able to build the compiler either on a chrooted system or equivalent, you will also need to compile all the libraries needed with the program that you will build using this new compiler. The best you can do is use a new new system (vm or something else) or upgrade an existing one

0
source

Openembedded Yocto. . , , , ++ 11. : http://downloads.yoctoproject.org/releases/yocto/yocto-1.7/toolchain/ ( 32-, 64- )

0

, ? , , . !

-1

, Fedora.

/ , RPM CentOS Fedora, CentOS, Fedora, , t , ( !) /usr/local ). binutils, gcc.

-2

1 2 Linux From Scratch binutils, gcc, glibc libstd++. 2 gcc. glibc centos linux yum install kernel-headers-$(uname -r) -installs as- > /usr/src/linux-headers-$(uname -r)

-2

All Articles