Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
23
Star
30
Fork
165
src-openEuler
/
gcc
Closed
Code
Issues
30
Pull Requests
12
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
X86架构下无法对mysql8进行autobolt模式反馈编译,报错
Done
#I5RTUS
Bug
谢京
Opened this issue
2022-09-19 15:47
【标题描述】X86架构下无法对mysql8进行autobolt模式反馈编译,报错 请帮确认下:autobolt模式反馈优化,现在支持哪些架构呢,ARM和X86是否都能支持? 【环境信息】 硬件信息: X86架构CPU 软件信息: openeuler 22.03-lts (提前安装好llvm-bolt和autofdo软件包) gcc版本:10.3.1   【问题复现步骤】 1)下载官网源码成功编译mysql8.0.28 wget https://cdn.mysql.com/archives/mysql-8.0/mysql-boost-8.0.28.tar.gz  2)下载sysbench,并成功安装  3)运行sysbench,对mysqld跑TPCC测试,同时用perf采集数据 运行起来TPCC测试程序后, 执行如perf record -e cycles:u -o perf_profile.data -p `pidof mysqld` -- sleep 180采集数据 通过llvm-bolt提供的perf2bolt工具将采集的数据进行格式转换 perf2bolt -p=/root/autobolt/perf_profile.data /usr/local/mysql/bin/mysqld -o /root/autobolt/perf_profile.gcov -nl 得到最终的待autobolt文件:  4)对mysql增加bolt编译参数,进行反馈编译 修改CMakeLists.txt文件 set(CMAKE_C_FLAGS "-fbolt-use=/root/autobolt/perf_profile.gcov -fbolt-target=/usr/local/mysql/bin/mysqld -Wl,-q ") set(CMAKE_CXX_FLAGS "-fbolt-use=/root/autobolt/perf_profile.gcov -fbolt-target=/usr/local/mysql/bin/mysqld -Wl,-q ") set(CMAKE_EXE_LINKER_FLAGS "-fbolt-use=/root/autobolt/perf_profile.gcov -fbolt-target=/usr/local/mysql/bin/mysqld -Wl,-q ") 重新进行mysql编译,在cmake的时候报错了。同样的操作在ARM环境是正常的。  【预期结果】 可以成功进行反馈编译 【实际结果】 X86架构下反馈编译阶段报错
【标题描述】X86架构下无法对mysql8进行autobolt模式反馈编译,报错 请帮确认下:autobolt模式反馈优化,现在支持哪些架构呢,ARM和X86是否都能支持? 【环境信息】 硬件信息: X86架构CPU 软件信息: openeuler 22.03-lts (提前安装好llvm-bolt和autofdo软件包) gcc版本:10.3.1   【问题复现步骤】 1)下载官网源码成功编译mysql8.0.28 wget https://cdn.mysql.com/archives/mysql-8.0/mysql-boost-8.0.28.tar.gz  2)下载sysbench,并成功安装  3)运行sysbench,对mysqld跑TPCC测试,同时用perf采集数据 运行起来TPCC测试程序后, 执行如perf record -e cycles:u -o perf_profile.data -p `pidof mysqld` -- sleep 180采集数据 通过llvm-bolt提供的perf2bolt工具将采集的数据进行格式转换 perf2bolt -p=/root/autobolt/perf_profile.data /usr/local/mysql/bin/mysqld -o /root/autobolt/perf_profile.gcov -nl 得到最终的待autobolt文件:  4)对mysql增加bolt编译参数,进行反馈编译 修改CMakeLists.txt文件 set(CMAKE_C_FLAGS "-fbolt-use=/root/autobolt/perf_profile.gcov -fbolt-target=/usr/local/mysql/bin/mysqld -Wl,-q ") set(CMAKE_CXX_FLAGS "-fbolt-use=/root/autobolt/perf_profile.gcov -fbolt-target=/usr/local/mysql/bin/mysqld -Wl,-q ") set(CMAKE_EXE_LINKER_FLAGS "-fbolt-use=/root/autobolt/perf_profile.gcov -fbolt-target=/usr/local/mysql/bin/mysqld -Wl,-q ") 重新进行mysql编译,在cmake的时候报错了。同样的操作在ARM环境是正常的。  【预期结果】 可以成功进行反馈编译 【实际结果】 X86架构下反馈编译阶段报错
Comments (
8
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
编译小伙
li-yancheng
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Compiler
kind/feature
Not set
Projects
Unprojected
Unprojected
Milestones
openEuler-22.03-LTS-Dailybuild
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register