[Feelings & Sharing] siyu6.7内核(ubuntu gcc-12)
Tofloor
poster avatar
青稚
deepin
2024-01-14 18:14
Author

事先声明,该方案是针对爱折腾的人员使用。(其他坛友也有混源大法安装一些软件驱动的教程)

如出现意外,后果自负。

起因想体验6.7内核,用github自动编译。

发现gcc版本不匹配,设备有些驱动依赖gcc。

于是混源大法(小白请勿尝试,如果您是发烧友,喜欢折腾除外)

首先在/etc/apt/sources.list.d/

创建名字随机,xxx.list

把ubuntu22.04清华源放到创建的list里面。

如果提示缺gpg

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82EB5823F4FE239D(替换为提示缺失的gpg)

之后sudo apt update

不要upgrade

完事后sudo apt install gcc-12 g++-12

安装完删除添加的list

之后sudo apt update

输入:sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100

输入:gcc -v(检测是否链接成功)

就可以安装github自动编译的内核了。

下载链接:

https://www.alipan.com/s/G41Ktnoqfq8

提取码: swv6

测试图片:
mmexport1705226279540.jpg

mmexport1705227100979.jpg

Reply Favorite View the author
All Replies
jjcui8595
deepin
2024-01-14 21:25
#1

like

Reply View the author
qq4945286
deepin
2024-01-14 21:58
#2

把gcc升级到12,amd显卡就可以安装ubuntu22.04的rocm了

Reply View the author
青稚
deepin
2024-01-15 05:07
#3
qq4945286

把gcc升级到12,amd显卡就可以安装ubuntu22.04的rocm了

是的

Reply View the author
yanjuner
Super Moderator
2024-01-15 09:43
#4

厉害了

Reply View the author
jiutian123
deepin
2024-02-01 14:53
#5
青稚

是的

b3 gcc很新joy

nsz@nsz-PC:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Deepin 13.2.0-3deepin' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/usr/src/packages/BUILD/debian/tmp-nvptx/usr,amdgcn-amdhsa=/usr/src/packages/BUILD/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=8
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Deepin 13.2.0-3deepin)

Reply View the author
青稚
deepin
2024-02-01 16:17
#6
jiutian123

b3 gcc很新joy

nsz@nsz-PC:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Deepin 13.2.0-3deepin' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/usr/src/packages/BUILD/debian/tmp-nvptx/usr,amdgcn-amdhsa=/usr/src/packages/BUILD/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=8
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Deepin 13.2.0-3deepin)

gcc确实够新了。

Reply View the author
jiutian123
deepin
2024-02-04 11:14
#7
青稚

gcc确实够新了。

b3来了,抽空弄个b3内核

like

tail

Reply View the author
青稚
deepin
2024-02-04 11:56
#8
jiutian123

b3来了,抽空弄个b3内核

like

tail

好嘞

Reply View the author