gcc-14/README.md
zhaoshujian bc0e181af6 [bugfix] Change libgomp, libfortran, libgcc_s, libitm, libatomic package path.
Add gcc-toolset-14 Readme.

Signed-off-by: zhaoshujian <zhaoshujian@huawei.com>
2024-08-24 17:39:24 +08:00

70 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# gcc-14
#### 介绍
openEuler 24.03 LTS 版本选择 GCC 12.3.1 作为开发基线,确保在整 LTS 周期内,系统版本保持相对稳定。
为满足用户对不同版本编译器的需求,使能多样算力新特性,基于 openEuler 24.09 系统,推出 gcc-toolset-14 副版本编译工具链,形成主版本为 GCC12副版本为 GCC14 的编译器搭配,为用户提供更加灵活且高效的编译选择。
#### 软件架构
```shell
## 默认 GCC12 路径
PATH=/usr/bin/
## 默认动态库路径
LD_LIBRARY_PATH=/usr/lib64/
## gcc-toolset-14 副版本安装路径
PATH=/opt/openEuler/gcc-toolset-14/root/usr/bin/
```
#### 软件约束
| 名称| 版本要求|
| --- | --- |
| 系统版本| openEuler 24.09 以上 |
| 默认GCC | 12.3.1 |
| 架构 | Aarch64 / X86_64|
| Glibc | 2.34 及以上 |
| Binutils | 2.42 及以上|
约束是指本多版本工具链在以上条件的版本中进行了完整的工程验证和兼容性测试,如果使用在其他场景中,不保证完整功能实现。
#### 安装教程
1. `yum install gcc-toolset-14-gcc gcc-toolset-14-g++`
2. 如果需要搭配 binutils-2.42,则 `yum install gcc-toolset-14-binutils`
#### 使用说明
1. 安装 scl
> yum install scl-utils
2. 注册 gcc-toolset-14
> scl register /opt/openEuler/gcc-toolset-14/
使用`scl list-collections`显示 gcc-toolset-14 已经在 scl 中注册成功;
3. 切换 gcc-toolset-14
> scl enable gcc-toolset-14 bash
4. 退出 gcc-toolset-14
> exit
退出bash shell会话此时 GCC 的版本切换成系统默认版本。
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)