当前位置: 首页 > article >正文

debian 10编译安装gcc 9.5.0

debian 10编译安装gcc 9.5.0

  • 1、配置安装目录
  • 2、安装依赖包
  • 3、再次配置安装目录
  • 4、配置支持语言 C C++
  • 5、编译源码
  • 6、安装程序
    • 6.1、make install
    • 6.2、查看gcc版本
    • 6.3、安装目录大小1.1G
    • 6.4、查看安装目录文件明细

1、配置安装目录

下载gcc 9.5.0
https://mirrors.aliyun.com/gnu/gcc/gcc-9.5.0/
校验文件下载:
https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-9.5.0/
在这里插入图片描述
解压缩 tar -xzvf gcc-9.5.0.tar.gz -C /usr/local/src/

root@debian:/usr/local/src/gcc-9.5.0# pwd
/usr/local/src/gcc-9.5.0
root@debian:/usr/local/src/gcc-9.5.0# mkdir /usr/local/gcc-build-9.5.0
root@debian:/usr/local/src/gcc-9.5.0# pwd
/usr/local/src/gcc-9.5.0
root@debian:/usr/local/src/gcc-9.5.0# 
root@debian:/usr/local/src/gcc-9.5.0# 
root@debian:/usr/local/src/gcc-9.5.0# ./configure --prefix=/usr/local/gcc-build-9.5.0/
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
root@debian:/usr/local/src/gcc-9.5.0# 

报错没有依赖包configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.

2、安装依赖包

cd /usr/local/src/gcc-9.5.0
vi ./contrib/download_prerequisites
下面红框是需要手动下载的依赖包
在这里插入图片描述
wget https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2 --no-check-certificate
tar -xjvf isl-0.18.tar.bz2
ln -s isl-0.18 isl

在https://mirrors.sjtug.sjtu.edu.cn/gnu/下载 mpc-1.0.3.tar.gz
mpfr-3.1.4.tar.bz2 gmp-6.1.0.tar.bz2

tar -xvfz mpc-1.0.3.tar.gz
ln -s mpc-1.0.3 mpc

tar -xvfj gmp-6.1.0.tar.bz2
ln -s gmp-6.1.0 gmp

tar -xvfj mpfr-3.1.4.tar.bz2
ln -s mpfr-3.1.4 mpfr

3、再次配置安装目录

./configure --prefix=/usr/local/gcc-build-9.5.0/

root@debian:/usr/local/src/gcc-9.5.0# ./configure --prefix=/usr/local/gcc-build-9.5.0/
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
The following languages will be built: c,c++,fortran,lto,objc
*** This configuration is not supported in the following subdirectories:
     gnattools gotools target-libada target-libhsail-rt target-libphobos target-zlib target-libgo target-libffi target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/8/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/8/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: cannot find libgcc_s.so.1
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/8/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
root@debian:/usr/local/src/gcc-9.5.0# 

改进命令
./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib

root@debian:/usr/local/src/gcc-9.5.0# ./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
The following languages will be built: c,c++,fortran,lto,objc
*** This configuration is not supported in the following subdirectories:
     gnattools gotools target-libada target-libhsail-rt target-libphobos target-zlib target-libgo target-libffi target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
/usr/local/src/gcc-9.5.0/missing: 81: /usr/local/src/gcc-9.5.0/missing: makeinfo: not found
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for otool... no
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gfortran... no
checking for gccgo... no
checking for gdc... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objcopy... no
checking for objcopy... objcopy
checking for objdump... no
checking for objdump... objdump
checking for otool... no
checking for otool... no
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for readelf... readelf
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... host tool
checking where to find the target gdc... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target otool... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
root@debian:/usr/local/src/gcc-9.5.0# 

4、配置支持语言 C C++

./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib --enable-checking=release --enable-languages=c,c++
这步会生成makefile文件,供make命令使用。

root@debian:/usr/local/src/gcc-9.5.0# ./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib --enable-checking=release --enable-languages=c,c++
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
*** This configuration is not supported in the following subdirectories:
     gnattools gotools target-libada target-libhsail-rt target-libphobos target-zlib target-libbacktrace target-libgfortran target-libgo target-libffi target-libobjc target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
/usr/local/src/gcc-9.5.0/missing: 81: /usr/local/src/gcc-9.5.0/missing: makeinfo: not found
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for otool... no
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gfortran... no
checking for gccgo... no
checking for gdc... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objcopy... no
checking for objcopy... objcopy
checking for objdump... no
checking for objdump... objdump
checking for otool... no
checking for otool... no
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for readelf... readelf
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... host tool
checking where to find the target gccgo... host tool
checking where to find the target gdc... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target otool... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
root@debian:/usr/local/src/gcc-9.5.0# 

5、编译源码

需要提前安装依赖包,否则会编译失败
apt-get install build-essential
apt-get install g++

cd /usr/local/src/gcc-9.5.0
make
注:编译时间很长
Makefile文件巨长 1.1M 29377行
在这里插入图片描述
在这里插入图片描述
花费了3个小时编译完成,机器配置:内存8G CPU 1核
在这里插入图片描述

6、安装程序

6.1、make install

安装好成功后有如下提示。
在这里插入图片描述

6.2、查看gcc版本

root@debian:/usr/local/gcc-build-9.5.0/bin# pwd
/usr/local/gcc-build-9.5.0/bin
root@debian:/usr/local/gcc-build-9.5.0/bin# ./gcc -v
Using built-in specs.
COLLECT_GCC=./gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-build-9.5.0/libexec/gcc/x86_64-pc-linux-gnu/9.5.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib --enable-checking=release --enable-languages=c,c++
Thread model: posix
gcc version 9.5.0 (GCC) 
root@debian:/usr/local/gcc-build-9.5.0/bin# /usr/local/gcc-build-9.5.0/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-build-9.5.0/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-build-9.5.0/libexec/gcc/x86_64-pc-linux-gnu/9.5.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib --enable-checking=release --enable-languages=c,c++
Thread model: posix
gcc version 9.5.0 (GCC) 
root@debian:/usr/local/gcc-build-9.5.0/bin# which gcc
/usr/bin/gcc
root@debian:/usr/local/gcc-build-9.5.0/bin# ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 5 Feb 25  2019 /usr/bin/gcc -> gcc-8
root@debian:/usr/local/gcc-build-9.5.0/bin# ls -l /usr/bin/gcc-
gcc-8         gcc-ar        gcc-ar-8      gcc-nm        gcc-nm-8      gcc-ranlib    gcc-ranlib-8  
root@debian:/usr/local/gcc-build-9.5.0/bin# ls -l /usr/bin/gcc-8
lrwxrwxrwx 1 root root 22 Apr  6  2019 /usr/bin/gcc-8 -> x86_64-linux-gnu-gcc-8
root@debian:/usr/local/gcc-build-9.5.0/bin# 
root@debian:/usr/local/gcc-build-9.5.0/bin# ln -s /usr/local/gcc-build-9.5.0/bin/gcc  /usr/bin/gcc 
ln: failed to create symbolic link '/usr/bin/gcc': File exists
root@debian:/usr/local/gcc-build-9.5.0/bin# rm /usr/bin/gcc
root@debian:/usr/local/gcc-build-9.5.0/bin# ln -s /usr/local/gcc-build-9.5.0/bin/gcc  /usr/bin/gcc 
root@debian:/usr/local/gcc-build-9.5.0/bin# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-build-9.5.0/libexec/gcc/x86_64-pc-linux-gnu/9.5.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc-build-9.5.0/ --disable-multilib --enable-checking=release --enable-languages=c,c++
Thread model: posix
gcc version 9.5.0 (GCC) 
root@debian:/usr/local/gcc-build-9.5.0/bin# ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 34 Apr  3 05:38 /usr/bin/gcc -> /usr/local/gcc-build-9.5.0/bin/gcc
root@debian:/usr/local/gcc-build-9.5.0/bin# 

6.3、安装目录大小1.1G

root@debian:/usr/local/gcc-build-9.5.0# du -sh ../gcc-build-9.5.0/
1.1G	../gcc-build-9.5.0/
root@debian:/usr/local/gcc-build-9.5.0#

6.4、查看安装目录文件明细

root@debian:/usr/local/gcc-build-9.5.0# ls -lh *
bin:
total 71M
-rwxr-xr-x 4 root root 6.9M Apr  3 05:25 c++
-rwxr-xr-x 1 root root 6.9M Apr  3 05:25 cpp
-rwxr-xr-x 4 root root 6.9M Apr  3 05:25 g++
-rwxr-xr-x 3 root root 6.9M Apr  3 05:26 gcc
-rwxr-xr-x 2 root root 171K Apr  3 05:26 gcc-ar
-rwxr-xr-x 2 root root 171K Apr  3 05:26 gcc-nm
-rwxr-xr-x 2 root root 171K Apr  3 05:26 gcc-ranlib
-rwxr-xr-x 1 root root 6.5M Apr  3 05:25 gcov
-rwxr-xr-x 1 root root 4.0M Apr  3 05:25 gcov-dump
-rwxr-xr-x 1 root root 4.3M Apr  3 05:25 gcov-tool
-rwxr-xr-x 4 root root 6.9M Apr  3 05:25 x86_64-pc-linux-gnu-c++
-rwxr-xr-x 4 root root 6.9M Apr  3 05:25 x86_64-pc-linux-gnu-g++
-rwxr-xr-x 3 root root 6.9M Apr  3 05:26 x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 3 root root 6.9M Apr  3 05:26 x86_64-pc-linux-gnu-gcc-9.5.0
-rwxr-xr-x 2 root root 171K Apr  3 05:26 x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 2 root root 171K Apr  3 05:26 x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 2 root root 171K Apr  3 05:26 x86_64-pc-linux-gnu-gcc-ranlib

include:
total 4.0K
drwxr-xr-x 3 root root 4.0K Apr  3 05:26 c++

lib:
total 4.0K
drwxr-xr-x 3 root root 4.0K Apr  3 05:25 gcc

lib64:
total 220M
-rw-r--r-- 1 root root  40M Apr  3 05:26 libasan.a
-rwxr-xr-x 1 root root 1.1K Apr  3 05:26 libasan.la
-rw-r--r-- 1 root root  17K Apr  3 05:26 libasan_preinit.o
lrwxrwxrwx 1 root root   16 Apr  3 05:26 libasan.so -> libasan.so.5.0.0
lrwxrwxrwx 1 root root   16 Apr  3 05:26 libasan.so.5 -> libasan.so.5.0.0
-rwxr-xr-x 1 root root  15M Apr  3 05:26 libasan.so.5.0.0
-rw-r--r-- 1 root root 451K Apr  3 05:26 libatomic.a
-rwxr-xr-x 1 root root  984 Apr  3 05:26 libatomic.la
lrwxrwxrwx 1 root root   18 Apr  3 05:26 libatomic.so -> libatomic.so.1.2.0
lrwxrwxrwx 1 root root   18 Apr  3 05:26 libatomic.so.1 -> libatomic.so.1.2.0
-rwxr-xr-x 1 root root 165K Apr  3 05:26 libatomic.so.1.2.0
-rwxr-xr-x 1 root root 1002 Apr  3 05:26 libcc1.la
lrwxrwxrwx 1 root root   15 Apr  3 05:26 libcc1.so -> libcc1.so.0.0.0
lrwxrwxrwx 1 root root   15 Apr  3 05:26 libcc1.so.0 -> libcc1.so.0.0.0
-rwxr-xr-x 1 root root 1.2M Apr  3 05:26 libcc1.so.0.0.0
-rw-r--r-- 1 root root  132 Apr  3 05:26 libgcc_s.so
-rw-r--r-- 1 root root 853K Apr  3 05:26 libgcc_s.so.1
-rw-r--r-- 1 root root 3.1M Apr  3 05:26 libgomp.a
-rwxr-xr-x 1 root root  966 Apr  3 05:26 libgomp.la
lrwxrwxrwx 1 root root   16 Apr  3 05:26 libgomp.so -> libgomp.so.1.0.0
lrwxrwxrwx 1 root root   16 Apr  3 05:26 libgomp.so.1 -> libgomp.so.1.0.0
-rwxr-xr-x 1 root root 1.4M Apr  3 05:26 libgomp.so.1.0.0
-rw-r--r-- 1 root root  169 Apr  3 05:26 libgomp.spec
-rw-r--r-- 1 root root 3.6M Apr  3 05:26 libitm.a
-rwxr-xr-x 1 root root  954 Apr  3 05:26 libitm.la
lrwxrwxrwx 1 root root   15 Apr  3 05:26 libitm.so -> libitm.so.1.0.0
lrwxrwxrwx 1 root root   15 Apr  3 05:26 libitm.so.1 -> libitm.so.1.0.0
-rwxr-xr-x 1 root root 1.5M Apr  3 05:26 libitm.so.1.0.0
-rw-r--r-- 1 root root  162 Apr  3 05:26 libitm.spec
-rw-r--r-- 1 root root 9.1M Apr  3 05:26 liblsan.a
-rwxr-xr-x 1 root root 1.1K Apr  3 05:26 liblsan.la
-rw-r--r-- 1 root root  11K Apr  3 05:26 liblsan_preinit.o
lrwxrwxrwx 1 root root   16 Apr  3 05:26 liblsan.so -> liblsan.so.0.0.0
lrwxrwxrwx 1 root root   16 Apr  3 05:26 liblsan.so.0 -> liblsan.so.0.0.0
-rwxr-xr-x 1 root root 3.4M Apr  3 05:26 liblsan.so.0.0.0
-rw-r--r-- 1 root root 2.0M Apr  3 05:26 libquadmath.a
-rwxr-xr-x 1 root root  993 Apr  3 05:26 libquadmath.la
lrwxrwxrwx 1 root root   20 Apr  3 05:26 libquadmath.so -> libquadmath.so.0.0.0
lrwxrwxrwx 1 root root   20 Apr  3 05:26 libquadmath.so.0 -> libquadmath.so.0.0.0
-rwxr-xr-x 1 root root 1.2M Apr  3 05:26 libquadmath.so.0.0.0
-rw-r--r-- 1 root root  320 Apr  3 05:26 libsanitizer.spec
-rw-r--r-- 1 root root  99K Apr  3 05:26 libssp.a
-rwxr-xr-x 1 root root  954 Apr  3 05:26 libssp.la
-rw-r--r-- 1 root root 3.1K Apr  3 05:26 libssp_nonshared.a
-rwxr-xr-x 1 root root  936 Apr  3 05:26 libssp_nonshared.la
lrwxrwxrwx 1 root root   15 Apr  3 05:26 libssp.so -> libssp.so.0.0.0
lrwxrwxrwx 1 root root   15 Apr  3 05:26 libssp.so.0 -> libssp.so.0.0.0
-rwxr-xr-x 1 root root  50K Apr  3 05:26 libssp.so.0.0.0
-rw-r--r-- 1 root root  57M Apr  3 05:26 libstdc++.a
-rw-r--r-- 1 root root  18M Apr  3 05:26 libstdc++fs.a
-rwxr-xr-x 1 root root  921 Apr  3 05:26 libstdc++fs.la
-rwxr-xr-x 1 root root  981 Apr  3 05:26 libstdc++.la
lrwxrwxrwx 1 root root   19 Apr  3 05:26 libstdc++.so -> libstdc++.so.6.0.28
lrwxrwxrwx 1 root root   19 Apr  3 05:26 libstdc++.so.6 -> libstdc++.so.6.0.28
-rwxr-xr-x 1 root root  22M Apr  3 05:26 libstdc++.so.6.0.28
-rw-r--r-- 1 root root 2.4K Apr  3 05:26 libstdc++.so.6.0.28-gdb.py
-rw-r--r-- 1 root root 2.0M Apr  3 05:26 libsupc++.a
-rwxr-xr-x 1 root root  915 Apr  3 05:26 libsupc++.la
-rw-r--r-- 1 root root  23M Apr  3 05:26 libtsan.a
-rwxr-xr-x 1 root root 1.1K Apr  3 05:26 libtsan.la
-rw-r--r-- 1 root root 3.7K Apr  3 05:26 libtsan_preinit.o
lrwxrwxrwx 1 root root   16 Apr  3 05:26 libtsan.so -> libtsan.so.0.0.0
lrwxrwxrwx 1 root root   16 Apr  3 05:26 libtsan.so.0 -> libtsan.so.0.0.0
-rwxr-xr-x 1 root root 8.2M Apr  3 05:26 libtsan.so.0.0.0
-rw-r--r-- 1 root root 7.8M Apr  3 05:26 libubsan.a
-rwxr-xr-x 1 root root 1.1K Apr  3 05:26 libubsan.la
lrwxrwxrwx 1 root root   17 Apr  3 05:26 libubsan.so -> libubsan.so.1.0.0
lrwxrwxrwx 1 root root   17 Apr  3 05:26 libubsan.so.1 -> libubsan.so.1.0.0
-rwxr-xr-x 1 root root 3.1M Apr  3 05:26 libubsan.so.1.0.0

libexec:
total 4.0K
drwxr-xr-x 3 root root 4.0K Apr  3 05:25 gcc

share:
total 16K
drwxr-xr-x  3 root root 4.0K Apr  3 05:26 gcc-9.5.0
drwxr-xr-x  2 root root 4.0K Apr  3 05:26 info
drwxr-xr-x 24 root root 4.0K Apr  3 05:26 locale
drwxr-xr-x  4 root root 4.0K Apr  3 05:25 man
root@debian:/usr/local/gcc-build-9.5.0# 

http://www.kler.cn/a/5831.html

相关文章:

  • Ubuntu问题 -- 硬盘存储不够了, 如何挂载一个新的硬盘上去, 图文简单明了, 已操作成功
  • 【数据结构】航班查询系统:链表的实际运用
  • 无网络时自动切换备用网络环境
  • 全新免押租赁系统打造便捷安全的租赁体验
  • 经典多模态模型CLIP - 直观且详尽的解释
  • 将txt转成excel正则化公式的调整
  • 剪枝与重参第一课:修剪结构
  • Python类和对象的命名空间
  • 简述vue生命周期,以及每个周期做的事情?
  • 简单谈谈图形界面和命令行的区别
  • 大一被忽悠进了培训班
  • Java题目训练——统计每个月兔子的总数和字符串通配符
  • 2022年河南省高等职业教育技能大赛软件测试赛项竞赛任务书
  • 使用RegQueryValueEx作为可能为REG_DWORD或REG_SZ的注册表值
  • 蓝桥杯·3月份刷题集训Day03
  • GPT4国内镜像站
  • 第四十八天打卡
  • Date Time组件(下)
  • 【JavaEE】线程池
  • flutter安装自用笔记
  • 第一批00后,已经变成“职场老油条”了
  • TCP流套接字编程
  • Spark sql怎么使用Kafka Avro序列化器
  • 阿里云高级技术专家林立翔:基于阿里云弹性GPU服务的神龙AI加速引擎,无缝提升AI训练性能
  • 每日学术速递4.3
  • React Native开发环境搭建-Windows平台