一旦发布的话都会同时发布x86_64和aarch64版本
祝好
发件人:
妞妞乖乖妈妈 [mailto:jeremiah.shi@qq.com]
发送时间: 2020年9月8日 10:27
收件人: guoge (A) <guoge1@huawei.com>
抄送: liuzhiqiang (I) <liuzhiqiang26@huawei.com>; dev@openeuler.org; Zhanghaijian (A) <z.zhanghaijian@huawei.com>; Chengwentao (Vintorcheng) <chengwentao@huawei.com>
主题: Re: 答复:
答复: Clang在openeuler编译,求助
谢谢 郭 歌@jdkboy :)
在x86_64下,有补丁包吗?
Shalom
成阁
Anno Domini 2020-09-08 10:26
------------------ Original ------------------
From:
"guoge (A)";<guoge1@huawei.com>;
Send time: Tuesday, Sep 8, 2020 9:27 AM
To: "妞妞乖乖妈妈"<jeremiah.shi@qq.com>;
Cc: "liuzhiqiang (I)"<liuzhiqiang26@huawei.com>; "妞妞乖乖妈妈"<502874763@qq.com>;
"dev@openeuler.org"<dev@openeuler.org>; "Zhanghaijian(A)"<z.zhanghaijian@huawei.com>; "Chengwentao (Vintorcheng)"<chengwentao@huawei.com>;
Subject:
答复:
答复: Clang在openeuler编译,求助
你好,
目前openEuler的主干以及20.03版本都已经升级到10.0.1了,但是补丁还没有发布,待补丁发布后,预期可以在
http://repo.openeuler.org/openEuler-20.03-LTS/update/aarch64/Packages/
下面看到供升级的包(也有可能有别的提供方式,比如在sp版本中提供,这个要看release-management SIG的安排)
对于将llvm升级到11.0.0版本,我认为现在还不是最好的时机,因为11.0.0版本社区实际上还没有发布最终正式版本,目前只有rc版本,请见
http://llvm.org/,我们会在社区发布final版本的时候升级至最新版本
我们致力于为openEuler社区提供【最具竞争力的】【稳定版本】,对于一些包我们会保持活跃的开发态,和上游社区的开发状态保持一致,但llvm目前还不在此列
祝好
发件人:
妞妞乖乖妈妈 [mailto:jeremiah.shi@qq.com]
发送时间: 2020年9月8日 7:49
收件人: guoge (A) <guoge1@huawei.com>
抄送: Zhanghaijian (A) <z.zhanghaijian@huawei.com>; liuzhiqiang (I) <liuzhiqiang26@huawei.com>; 502874763 <502874763@qq.com>
主题: Re: 答复: Clang在openeuler编译,求助
亲爱的郭 歌@jdkboy,早上好,
我在openEuler 20.03 TLS everything
的安装还需要再更新一下安装库。
昨天在Ubuntu 20.4环境下,已经部署成功了 Clang 10.0.0.4.
近期我在关注Clang code static Anayzer.
如果能OpenEuler上升级到Clang 10.0.0.X,也是很不错的:)
在社区里,我找到了源代码包:clang-10.0.1.src.tar,没有能够编译成功。
这方面,还请教您,看看可不可以在移植到openEuler上,我们保持好一点的成绩。
从Mac OS 10.15来看,Apple的成绩是 Clang 11.X.
亟盼佳音:)
Shalom
Anno Domini 2020-09-08-7:48
jeremiah@jeremiah-VirtualBox:~/Desktop$ sudo aptitude install clang
sudo: aptitude: command not found
jeremiah@jeremiah-VirtualBox:~/Desktop$ ps aux | grep -i apt
root 2655 0.4 1.1 196788 90764 ? SNl 15:14 0:02 /usr/bin/python3 /usr/sbin/aptd
_apt 2668 0.6 0.1 32836 9704 ? SN 15:14 0:02 /usr/lib/apt/methods/http
jeremiah 3235 0.0 0.0 17664 728 pts/0 S+ 15:22 0:00 grep --color=auto -i apt
jeremiah@jeremiah-VirtualBox:~/Desktop$ ps aux | grep -i apt
root 2655 0.4 1.1 196788 90764 ? SNl 15:14 0:02 /usr/bin/python3 /usr/sbin/aptd
_apt 2668 0.5 0.1 32836 9704 ? SN 15:14 0:03 /usr/lib/apt/methods/http
jeremiah 3270 0.0 0.0 17664 2920 pts/0 S+ 15:23 0:00 grep --color=auto -i apt
jeremiah@jeremiah-VirtualBox:~/Desktop$ sudo kill 2668
jeremiah@jeremiah-VirtualBox:~/Desktop$ sudo apt-get install -f clang
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binfmt-support binutils binutils-common binutils-x86-64-linux-gnu clang-10 lib32gcc-s1 lib32gcc1 lib32stdc++6
libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libc6-i386 libclang-common-10-dev libclang-cpp10
libclang1-10 libcrypt-dev libctf-nobfd0 libctf0 libffi-dev libgcc-9-dev libitm1 liblsan0 libncurses-dev
libobjc-9-dev libobjc4 libomp-10-dev libomp5-10 libpfm4 libquadmath0 libstdc++-9-dev libtinfo-dev libtsan0
libubsan1 libz3-4 libz3-dev linux-libc-dev llvm-10 llvm-10-dev llvm-10-runtime llvm-10-tools manpages-dev
python3-pygments
Suggested packages:
binutils-doc clang-10-doc glibc-doc ncurses-doc libomp-10-doc libstdc++-9-doc llvm-10-doc python-pygments-doc
ttf-bitstream-vera
The following NEW packages will be installed:
binfmt-support binutils binutils-common binutils-x86-64-linux-gnu clang clang-10 lib32gcc-s1 lib32gcc1
lib32stdc++6 libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libc6-i386 libclang-common-10-dev
libclang-cpp10 libclang1-10 libcrypt-dev libctf-nobfd0 libctf0 libffi-dev libgcc-9-dev libitm1 liblsan0
libncurses-dev libobjc-9-dev libobjc4 libomp-10-dev libomp5-10 libpfm4 libquadmath0 libstdc++-9-dev libtinfo-dev
libtsan0 libubsan1 libz3-4 libz3-dev linux-libc-dev llvm-10 llvm-10-dev llvm-10-runtime llvm-10-tools
manpages-dev python3-pygments
0 upgraded, 45 newly installed, 0 to remove and 129 not upgraded.
Need to get 80.1 MB of archives.
After this operation, 498 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1
http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 binfmt-support amd64 2.2.0-2 [58.2 kB]
... ...
Get:45
http://cn.archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2,266 kB]
Fetched 80.1 MB in 19min 39s (68.0 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package binfmt-support.
(Reading database ... 179633 files and directories currently installed.)
Preparing to unpack .../00-binfmt-support_2.2.0-2_amd64.deb ...
... ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
jeremiah@jeremiah-VirtualBox:~/Desktop$ clang --version
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
------------------ Original ------------------
From: "guoge (A)";<guoge1@huawei.com>;
Send time: Thursday, Sep 3, 2020 7:33 PM
To: "妞妞乖乖妈妈"<jeremiah.shi@qq.com>;
Cc: "妞妞乖乖妈妈"<502874763@qq.com>; "Zhanghaijian (A)"<z.zhanghaijian@huawei.com>;
"liuzhiqiang (I)"<liuzhiqiang26@huawei.com>;
Subject: 答复: Clang在openeuler编译,求助
@成阁,你好
我在本地安装的openEuler 20.03 LTS版本中是可以安装并执行clang的
> [root@hghphispra03738 ~]# yum install clang
> Last metadata expiration check: 2:24:59 ago on Thu 03 Sep 2020 05:06:53 PM CST.
> Dependencies resolved.
> ===================================================================================================
> Package Architecture Version Repository Size
> ===================================================================================================
> Installing:
> clang x86_64 7.0.0-6.oe1 update 15 M
> Installing dependencies:
> libatomic x86_64 7.3.0-20190804.34.oe1 update 21 k
>
> Transaction Summary
> ===================================================================================================
> Install 2 Packages
>
> Total download size: 15 M
> Installed size: 66 M
> Is this ok [y/N]: y
> Downloading Packages:
> (1/2): libatomic-7.3.0-20190804.34.oe1.x86_64.rpm 34 kB/s | 21 kB 00:00
> (2/2): clang-7.0.0-6.oe1.x86_64.rpm 702 kB/s | 15 MB 00:22
> ---------------------------------------------------------------------------------------------------
> Total 703 kB/s | 15 MB 00:22
> Running transaction check
> Transaction check succeeded.
> Running transaction test
> Transaction test succeeded.
> Running transaction
> Preparing : 1/1
> Installing : libatomic-7.3.0-20190804.34.oe1.x86_64 1/2
> Installing : clang-7.0.0-6.oe1.x86_64 2/2
> Running scriptlet: clang-7.0.0-6.oe1.x86_64 2/2
> Verifying : clang-7.0.0-6.oe1.x86_64 1/2
> Verifying : libatomic-7.3.0-20190804.34.oe1.x86_64 2/2
>
> Installed:
> clang-7.0.0-6.oe1.x86_64 libatomic-7.3.0-20190804.34.oe1.x86_64
>
> Complete!
> [root@hghphispra03738 ~]# which clang
> /usr/bin/clang
> [root@hghphispra03738 ~]# clang -v
> clang version 7.0.0 (openEuler 7.0.0-6.oe1)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
> Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0
> Candidate multilib: .;@m64
> Selected multilib: .;@m64
我配置的源是
> [root@hghphispra03738 ~]# cat /etc/yum.repos.d/openEuler_x86_64.repo
> [base]
> name=openEuler-20.03-LTS base
> baseurl=http://mirrors.tools.huawei.com/openeuler/openEuler-20.03-LTS/everything/x86_64/
> enabled=1
> gpgcheck=0
> gpgkey=http://mirrors.tools.huawei.com/openeuler/openEuler-20.03-LTS/everything/x86_64/RPM-GPG-KEY-openEuler
>
> [everything]
> name=everything
> baseurl=http://repo.openeuler.org/openEuler-20.03-LTS/everything/x86_64/
> enabled=1
> gpgcheck=1
> gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS/everything/x86_64/RPM-GPG-KEY-openEuler
>
> [update]
> name=update
> baseurl=http://repo.openeuler.org/openEuler-20.03-LTS/update/x86_64/
> enabled=1
> gpgcheck=1
> gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS/update/x86_64/RPM-GPG-KEY-openEuler
请参考
-----邮件原件-----
发件人: liuzhiqiang (I)
发送时间: 2020年9月3日 19:11
收件人: 妞妞乖乖妈妈 <jeremiah.shi@qq.com>; guoge (A) <guoge1@huawei.com>; Zhanghaijian (A) <z.zhanghaijian@huawei.com>
抄送: 502874763 <502874763@qq.com>
主题: Re: Clang在openeuler编译,求助
时成阁,
你好,欢迎你使用openEuler并针对不足或者问题进行反馈。由于你反馈的是clang相关的问题,建议你找clang包的maintainer来回答你的问题。
为了节省时间,这次我把clang所属的Compiler sig组的maintainer抄送了一下,由他们来回答你的问题。 当然你也可以在clang的仓库中提issue来跟踪该问题。
建议:
1. 后续通过有问题或有疑惑的包的仓库中提issue来跟踪问题
2. 查找到包所在sig组,直接与该sig组maintainer进行沟通,可以快速解决问题。
希望 郭 歌@jdkboy 和 章 海剑@Haijian.Zhang
能够解决你的困惑。
clang的仓库:https://gitee.com/src-openeuler/clang
查看包所在sig组:https://gitee.com/openeuler/community/blob/master/sig/sigs.yaml
clang包是由compiler sig组看护,该sig组的信息:https://gitee.com/openeuler/community/tree/master/sig/Compiler
刘志强
On 2020/9/3 11:05, 妞妞乖乖妈妈 wrote:
> 尊敬的zhiqiang总,
>
> 我是openEuler的爱好者,最近在看Clang编译器方面的文章,尝试了一下在openEuler上使用Clang.
在标准版openEuler-20.03-LTS-x86_64-dvd中,没有发现默认安装库。后来我又扫描openEuler-20.03-LTS-everything-x86_64-dvd,有版本7.0的Clang,
但是安装后,在shell中,任然没有Clang可用入口。
>
> 在社区里面,发现了您的联系信息,https://gitee.com/src-openeuler/mariadb-connector-c/commit/3494a96c5d0d92acd49d89bb1ce2130e418bbf48,不知道可不可以向您求助,如何在openeuler安装使用Clang?
> 我看在CentOS 8中,默认安装库是Clang 9.0.X
> 在Mac OS 10.15中,默认安装库是Clang 11.0.X
>
> 在CLang/llvm开源站点,下载最新版是10.0.X。 http://clang.llvm.org/get_started.html
>
> 如果方便,请回信。
>
> 亟盼回复。
>
> 礼
>
> 时成阁
>
> 2020-09-03 11:04