Binutils¶
to use Gold linker (first released in binutils version 2.19), should to avoid link-error https://mirror.yongbok.net/gnu/binutils/?C=M&O=D There are three linkers available on modern GNU/Linux systems:
- ld, maintained by GNU binutils,
- gold, maintained by GNU binutils, "still in beta test",
- lld, developed as part of the LLVM project.
For speed benchmarks, see: https://www.phoronix.com/scan.php?page=article&item=lld4-linux-tests&num=2 TL, DR: lld is fastest, followed by gold, followed by ld check binutils version: ld -v
Install: http://www.linuxfromscratch.org/lfs/view/development/chapter06/binutils.html
Note
do not use #
in folder name
Tachyon - Centos 6.9¶
cd /home1/p001cao/0SourceCode/tooldev
wget -c --no-check-certificate https://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.gz
tar zxvf binutils-2.40.tar.gz
cd binutils-2.40
rm -rf build && mkdir build && cd build
export PATH=/home2/app/compiler/gcc/9.5.0/bin:$PATH
export PATH=/home1/p001cao/app/tooldev/texinfo-7.0.3/bin:$PATH
export PATH=/home1/p001cao/app/tooldev/bison-3.8.2/bin:$PATH # add custom ver before system's version
../configure --enable-gold=yes --enable-ld=default --enable-lto \
--enable-plugins --enable-shared --disable-werror \
--enable-64-bit-bfd --with-system-zlib \
--prefix=/home1/p001cao/app/tooldev/binutils-2.40
make -j 16 && make install
check: ld -v # --enable-gprofng=no
UCS1:¶
- work with binutils-2.36.1, to avoid error in GCC-11
tar zxvf binutils-2.36.1.tar.gz
cd binutils-2.36.1
mkdir build && cd build
../configure --enable-gold=yes --enable-ld=default --enable-lto \
--enable-plugins --enable-shared --disable-werror \
--enable-64-bit-bfd --with-system-zlib \
--prefix=/uhome/p001cao/app/tool_dev/binutils-2.36
create module file¶
cd /uhome/p001cao/local/Imodfiles → create file "cmake-3.20.3"
# for Tcl script use only
set topdir /home1/p001cao/app/tool_dev/binutils-2.37
prepend-path PATH $topdir/bin
prepend-path LD_LIBRARY_PATH $topdir/lib
prepend-path INCLUDE $topdir/include
texinfo¶
cd /home1/p001cao/0SourceCode/tooldev
wget -c --no-check-certificate https://ftp.gnu.org/gnu/texinfo/texinfo-7.0.3.tar.gz
tar zxvf texinfo-7.0.3.tar.gz
cd texinfo-7.0.3
./configure --prefix=/home1/p001cao/app/tooldev/texinfo-7.0.3
make -j 16 && make install