Started by user snail Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on docker-jenkins-agent in workspace /home/jenkins/agent/workspace/gcc-patch [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done The recommended git tool is: NONE using credential 0adb5fc7-caa2-429d-97d2-c7fa2fa1d884 Cloning the remote Git repository Using shallow clone with depth 1 Avoid fetching tags Cloning repository git@github.com:plctlab/patchwork-gcc.git > git init /home/jenkins/agent/workspace/gcc-patch # timeout=10 Fetching upstream changes from git@github.com:plctlab/patchwork-gcc.git > git --version # timeout=10 > git --version # 'git version 2.37.2' using GIT_SSH to set credentials patchwork github wangliu-iscas git ssh key Verifying host key using known hosts file, will automatically accept unseen keys > git fetch --no-tags --force --progress --depth=1 -- git@github.com:plctlab/patchwork-gcc.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:plctlab/patchwork-gcc.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a # timeout=10 Commit message: "RISC-V: Reorganize binary autovec testcases" > git rev-list --no-walk c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a # timeout=10 [EnvInject] - Mask passwords that will be passed as build parameters. [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content GITHUB_REPO=https://github.com/plctlab/patchwork-gcc PATCHWORK_URL=https://patchwork.plctlab.org [EnvInject] - Variables injected successfully. [gcc-patch] $ /usr/bin/env bash /tmp/jenkins11454532314833909375.sh + git config pw.server https://patchwork.plctlab.org/api/1.2/ + git config pw.project gcc-patch + git config pw.token [*******] ++ date +%Y-%m + now_date=2024-02 ++ date +%Y + now_date_year=2024 + bundle_name=gcc-patch_2024-02 ++ curl -s -H 'Authorization: Token [*******]' 'https://patchwork.plctlab.org/api/1.2/bundles/?project=gcc-patch&per_page=999' + bundle_response=' Site Maintenance

We’ll be back soon!

Sorry for the inconvenience. We’re performing some maintenance at the moment.

' ++ echo ' Site Maintenance

We’ll be back soon!

Sorry for the inconvenience. We’re performing some maintenance at the moment.

' ++ jq -rc '.[].name' parse error: Invalid numeric literal at line 1, column 10 + bundle_name_list= + [[ '' =~ 2024-02 ]] + git-pw bundle create --public gcc-patch_2024-02 203875 Server error. Please report this issue to https://github.com/getpatchwork/patchwork Traceback (most recent call last): File "/usr/local/bin/git-pw", line 8, in sys.exit(cli()) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 418, in new_func return ctx.invoke(f, *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/git_pw/bundle.py", line 232, in create_cmd bundle = api.create('bundles', data) File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 363, in create return _post(url, data).json() File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 180, in _post _handle_error('create', exc) File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 178, in _post rsp.raise_for_status() File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://patchwork.plctlab.org/api/1.2/bundles/ + git clone git@github.com:wangliu-iscas/Patchwork-Bundles.git Cloning into 'Patchwork-Bundles'... + cd Patchwork-Bundles + sed -i '/## 2024/a[2024-02](https://patchwork.plctlab.org/bundle/patchwork-bot/gcc-patch_2024-02) ' gcc-patch.md + git add gcc-patch.md + git commit -m 'gcc-patch add 2024-02 bundle' [main c966217] gcc-patch add 2024-02 bundle 1 file changed, 1 insertion(+) + git push To github.com:wangliu-iscas/Patchwork-Bundles.git 22af4b6..c966217 main -> main + cd - /home/jenkins/agent/workspace/gcc-patch + git config pull.rebase false + git fetch origin master From github.com:plctlab/patchwork-gcc * branch master -> FETCH_HEAD + git checkout master Switched to a new branch 'master' branch 'master' set up to track 'origin/master'. + git pull origin master From github.com:plctlab/patchwork-gcc * branch master -> FETCH_HEAD Already up to date. + git fetch origin upstream-master From github.com:plctlab/patchwork-gcc * branch upstream-master -> FETCH_HEAD + git checkout upstream-master Switched to a new branch 'upstream-master' branch 'upstream-master' set up to track 'origin/upstream-master'. + git remote add upstream https://github.com/gcc-mirror/gcc.git + git pull upstream master From https://github.com/gcc-mirror/gcc * branch master -> FETCH_HEAD * [new branch] master -> upstream/master fatal: refusing to merge unrelated histories + git push -u origin upstream-master Everything up-to-date branch 'upstream-master' set up to track 'origin/upstream-master'. + git checkout master Switched to branch 'master' Your branch is up to date with 'origin/master'. + git merge upstream-master fatal: refusing to merge unrelated histories + git push -u origin master Everything up-to-date branch 'master' set up to track 'origin/master'. + branchname=series83949-patch203875 ++ git branch -a ++ grep 'series83949-patch203875$' + checkbranch= + checkbranchresult=null + '[' null = series83949-patch203875 ']' + git checkout -b series83949-patch203875 Switched to a new branch 'series83949-patch203875' ++ curl https://patchwork.plctlab.org/api/1.2/series/83949/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3413 100 3413 0 0 89815 0 --:--:-- --:--:-- --:--:-- 89815 + series_response='{"id":83949,"url":"https://patchwork.plctlab.org/api/1.2/series/83949/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=83949","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://github.com/wangliu-iscas/Patchwork-Bundles/blob/main/gcc-patch.md","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"Fix a series of problems caused by","date":"2024-02-21T03:08:38","submitter":{"id":6,"url":"https://patchwork.plctlab.org/api/1.2/people/6/","name":"Lulu Cheng","email":"chenglulu@loongson.cn"},"version":1,"total":4,"received_total":4,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/83949/mbox/","cover_letter":{"id":20703,"url":"https://patchwork.plctlab.org/api/1.2/covers/20703/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221030841.23454-1-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-1-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:37","name":"[v1,0/4] Fix a series of problems caused by","mbox":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221030841.23454-1-chenglulu@loongson.cn/mbox/"},"patches":[{"id":203873,"url":"https://patchwork.plctlab.org/api/1.2/patches/203873/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-2-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:38","name":"[v1,1/4] LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/"},{"id":203875,"url":"https://patchwork.plctlab.org/api/1.2/patches/203875/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-3-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:39","name":"[v1,2/4] LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/"},{"id":203876,"url":"https://patchwork.plctlab.org/api/1.2/patches/203876/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-4-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-4-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:40","name":"[v1,3/4] LoongArch: Disable relaxation if the assembler don'\''t support conditional branch relaxation [PR112330]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-4-chenglulu@loongson.cn/mbox/"},{"id":203874,"url":"https://patchwork.plctlab.org/api/1.2/patches/203874/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-5-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-5-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:41","name":"[v1,4/4] LoongArch: Define HAVE_AS_TLS to 0 if it'\''s undefined [PR112299]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-5-chenglulu@loongson.cn/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' ++ echo '{"id":83949,"url":"https://patchwork.plctlab.org/api/1.2/series/83949/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=83949","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://github.com/wangliu-iscas/Patchwork-Bundles/blob/main/gcc-patch.md","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"Fix a series of problems caused by","date":"2024-02-21T03:08:38","submitter":{"id":6,"url":"https://patchwork.plctlab.org/api/1.2/people/6/","name":"Lulu Cheng","email":"chenglulu@loongson.cn"},"version":1,"total":4,"received_total":4,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/83949/mbox/","cover_letter":{"id":20703,"url":"https://patchwork.plctlab.org/api/1.2/covers/20703/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221030841.23454-1-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-1-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:37","name":"[v1,0/4] Fix a series of problems caused by","mbox":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221030841.23454-1-chenglulu@loongson.cn/mbox/"},"patches":[{"id":203873,"url":"https://patchwork.plctlab.org/api/1.2/patches/203873/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-2-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:38","name":"[v1,1/4] LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/"},{"id":203875,"url":"https://patchwork.plctlab.org/api/1.2/patches/203875/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-3-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:39","name":"[v1,2/4] LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/"},{"id":203876,"url":"https://patchwork.plctlab.org/api/1.2/patches/203876/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-4-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-4-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:40","name":"[v1,3/4] LoongArch: Disable relaxation if the assembler don'\''t support conditional branch relaxation [PR112330]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-4-chenglulu@loongson.cn/mbox/"},{"id":203874,"url":"https://patchwork.plctlab.org/api/1.2/patches/203874/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-5-chenglulu@loongson.cn/","msgid":"<20240221030841.23454-5-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:41","name":"[v1,4/4] LoongArch: Define HAVE_AS_TLS to 0 if it'\''s undefined [PR112299]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-5-chenglulu@loongson.cn/mbox/"}]}' + patchid_patchurl='"203873,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/" "203875,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/" "203876,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-4-chenglulu@loongson.cn/mbox/" "203874,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-5-chenglulu@loongson.cn/mbox/"' + echo '"203873,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/" "203875,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/" "203876,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-4-chenglulu@loongson.cn/mbox/" "203874,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-5-chenglulu@loongson.cn/mbox/"' + IFS=, + read -r series_patch_id series_patch_url ++ echo '"203873' ++ sed 's/"//g' + series_patch_id=203873 ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/"' ++ sed 's/"//g' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++ git rev-parse HEAD + commitid_before=c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a + eval '+++ declare -p bout bret declare -- bout="Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP." declare -- bret="0" ++ berr='\''++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10179 100 10179 0 0 320k 0 --:--:-- --:--:-- --:--:-- 331k +++ bout='\''\'\'''\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\''\'\'''\'' +++ bret=0'\'' ++ declare -p berr declare -- berr="++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10179 100 10179 0 0 320k 0 --:--:-- --:--:-- --:--:-- 331k +++ bout='\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\'' +++ bret=0"' ++ +++ declare -p bout bret /tmp/jenkins11454532314833909375.sh: line 129: +++: command not found ++ declare -- 'bout=Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.' ++ declare -- bret=0 ++ ++ 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10179 100 10179 0 0 320k 0 --:--:-- --:--:-- --:--:-- 331k +++ bout='\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\'' +++ bret=0' /tmp/jenkins11454532314833909375.sh: line 140: ++: command not found ++ ++ declare -p berr /tmp/jenkins11454532314833909375.sh: line 141: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-2-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10179 100 10179 0 0 320k 0 --:--:-- --:--:-- --:--:-- 331k +++ bout='\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\'' +++ bret=0' ++ git rev-parse HEAD + commitid_after=44820f771dd096ddee29c96fab0a7e0a18711956 + '[' 0 = 0 ']' + '[' 44820f771dd096ddee29c96fab0a7e0a18711956 = c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a ']' + '[' 203873 = 203875 ']' + IFS=, + read -r series_patch_id series_patch_url ++ echo '"203875' ++ sed 's/"//g' + series_patch_id=203875 ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/"' ++ sed 's/"//g' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++ git rev-parse HEAD + commitid_before=44820f771dd096ddee29c96fab0a7e0a18711956 + eval '+++ declare -p bout bret declare -- bout="Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run \"git am --continue\". If you prefer to skip this patch, run \"git am --skip\" instead. To restore the original branch and stop patching, run \"git am --abort\"." declare -- bret="128" ++ berr='\''++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 14931 100 14931 0 0 470k 0 --:--:-- --:--:-- --:--:-- 470k +++ bout='\''\'\'''\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\'\'''\''\'\''\'\'''\'''\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\''\'\''\'\'''\'''\''\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".'\''\'\'''\'' +++ bret=128'\'' ++ declare -p berr declare -- berr="++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 14931 100 14931 0 0 470k 0 --:--:-- --:--:-- --:--:-- 470k +++ bout='\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\\'\'''\''git am --show-current-patch=diff'\''\\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run \"git am --continue\". If you prefer to skip this patch, run \"git am --skip\" instead. To restore the original branch and stop patching, run \"git am --abort\".'\'' +++ bret=128"' ++ +++ declare -p bout bret /tmp/jenkins11454532314833909375.sh: line 129: +++: command not found ++ declare -- 'bout=Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".' ++ declare -- bret=128 ++ ++ 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 14931 100 14931 0 0 470k 0 --:--:-- --:--:-- --:--:-- 470k +++ bout='\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".'\'' +++ bret=128' /tmp/jenkins11454532314833909375.sh: line 154: ++: command not found ++ ++ declare -p berr /tmp/jenkins11454532314833909375.sh: line 155: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 14931 100 14931 0 0 470k 0 --:--:-- --:--:-- --:--:-- 470k +++ bout='\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".'\'' +++ bret=128' ++ git rev-parse HEAD + commitid_after=44820f771dd096ddee29c96fab0a7e0a18711956 + '[' 128 = 0 ']' + [[ ++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 14931 100 14931 0 0 470k 0 --:--:-- --:--:-- --:--:-- 470k +++ bout='Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".' +++ bret=128 =~ sha1 information is lacking or useless ]] + submit_check warning Unresolved https://patchwork.plctlab.org/jenkins/job/gcc-patch/17051/consoleText 'Git am fail log' + check_state=warning + patch_state=Unresolved + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/17051/consoleText + DESCRIPTION='Git am fail log' + curl -X POST -H 'Authorization: Token [*******]' -F state=warning -F target_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/17051/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/203875/checks/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 970 100 429 100 541 5296 6679 --:--:-- --:--:-- --:--:-- 11975 {"id":19778,"url":"https://patchwork.plctlab.org/api/patches/203875/checks/19778/","user":{"id":1,"url":"https://patchwork.plctlab.org/api/users/1/","username":"snail","first_name":"","last_name":"","email":"wangliu@iscas.ac.cn"},"date":"2024-02-21T03:45:05.058934","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/17051/consoleText","context":"gcc-patch-check","description":"Git am fail log"}+ curl -X PATCH -H 'Authorization: Token [*******]' -F state=Unresolved https://patchwork.plctlab.org/api/1.2/patches/203875/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{"id":203875,"url":"https://patchwork.plctlab.org/api/1.2/patches/203875/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://github.com/wangliu-iscas/Patchwork-Bundles/blob/main/gcc-patch.md","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20240221030841.23454-3-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:08:39","name":"[v1,2/4] LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default.","commit_ref":null,"pull_url":null,"state":"unresolved","archived":false,"hash":"54e0205466cdf4f9e2e148f380fc59121763dbf2","submitter":{"id":6,"url":"https://patchwork.plctlab.org/api/1.2/people/6/","name":"Lulu Cheng","email":"chenglulu@loongson.cn"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221030841.23454-3-chenglulu@loongson.cn/mbox/","series":[{"id":83949,"url":"https://patchwork.plctlab.org/api/1.2/series/83949/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=83949","date":"2024-02-21T03:08:38","name":"Fix a series of problems caused by","version":1,"mbox":"https://patchwork.plctlab.org/series/83949/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/203875/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/203875/checks/","tags":{},"headers":{"Return-Path":"","Delivered-To":["ouuuleilei@gmail.com","gcc-patches@gcc.gnu.org"],"Received":["by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp803781dyc;\n Tue, 20 Feb 2024 19:10:58 -0800 (PST)","from server2.sourceware.org (server2.sourceware.org.\n [2620:52:3:1:0:246e:9693:128c])\n by mx.google.com with ESMTPS id\n s5-20020a0562140ca500b0068f756764cbsi5232296qvs.281.2024.02.20.19.10.58\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 20 Feb 2024 19:10:58 -0800 (PST)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id DA3553858C52\n\tfor ; Wed, 21 Feb 2024 03:10:57 +0000 (GMT)","from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10])\n by sourceware.org (Postfix) with ESMTPS id 9926B3858D3C\n for ; Wed, 21 Feb 2024 03:09:01 +0000 (GMT)","from mail.loongson.cn ([114.242.206.163])\n by eggs.gnu.org with esmtp (Exim 4.90_1)\n (envelope-from ) id 1rccyg-0000KP-Et\n for gcc-patches@gcc.gnu.org; Tue, 20 Feb 2024 22:09:01 -0500","from loongson.cn (unknown [10.20.4.107])\n by gateway (Coremail) with SMTP id _____8CxG+lHadVl0acPAA--.22281S3;\n Wed, 21 Feb 2024 11:08:55 +0800 (CST)","from loongson-pc.loongson.cn (unknown [10.20.4.107])\n by localhost.localdomain (Coremail) with SMTP id\n AQAAf8BxLs88adVlyGw9AA--.26359S4;\n Wed, 21 Feb 2024 11:08:52 +0800 (CST)"],"X-Forwarded-Encrypted":"i=3;\n AJvYcCXazbzcCurg7sMXocfHzcZKW7jx4FLMgwo884/RMdKEI1UZGvOpzZOX5uqzE3Wn23vxd7L4bdMV1E5f5HjUpct7q1RXIQ==","X-Google-Smtp-Source":"\n AGHT+IF9f9i0NnvXMhyvG92POZfJ/JdEORD0H6iBv2Pz4iKFwXBhphPHP9VbHC+p37kPQ8SbNel5","X-Received":"by 2002:a05:6214:409:b0:68e:e94e:b43c with SMTP id\n z9-20020a056214040900b0068ee94eb43cmr21174167qvx.52.1708485058457;\n Tue, 20 Feb 2024 19:10:58 -0800 (PST)","ARC-Seal":["i=2; a=rsa-sha256; t=1708485058; cv=pass;\n d=google.com; s=arc-20160816;\n b=Fa7oFDGc/AbME79UrGNRgUfZHf1cxXWmwHlya5aGj8SPWNGx0CRjrQ+1TJ59boBduM\n itOSSJCW3zuNRth98ro2j/EKvWk+jhY5yLLZ7/jt4Ah3UHRXb6hWoH5+Z5dCtQGrFupU\n zINcjKtMWiIllfelw9bjx+KhRVZz6zZtZ0/pGg/ubZXX4s3GCHkECRcV9I6N3B66HwdK\n M5yh6NZmAgdK1KWZecuP2HlOAqdeYpbUrY+YawClAFBM/38iyQT+cf5sre9gXGrqWk/q\n ATNG6O+ivkHFwwYqjMbkEEF8BNfn+UqDkDHPZTaK+wzTpAiWftkDVN/88UwR3oS1llru\n LQYA==","i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708484943; cv=none;\n b=HkrNwhdRwNdz1pXn8xffW+MJlW13VmFYdGy2Ui44UyNMg7vu23PwswuanKjmYFqfbd4izpe5hTHTurrvkc5rWcspWwEb/PuHNcwPg2iJCc245y83koaKBM+E3iT29tJ7U/l2mJsIcrgRZp3R5QHVcgI2aeC/pLBlfnAVn8a7yyg="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n h=errors-to:list-subscribe:list-help:list-post:list-archive\n :list-unsubscribe:list-id:precedence:content-transfer-encoding\n :mime-version:references:in-reply-to:message-id:date:subject:cc:to\n :from:arc-filter:dmarc-filter:delivered-to;\n bh=sAdCbvScUTRobayozzbFouINeKxl3iv709HwXhcEyY4=;\n fh=wYRiZnn9nDBltyuQH1H/s7FMOEBgw7D5UzXRQ9Hnwic=;\n b=RguZxH20eEAj6UnNePhfA+OT45CoRPFEIgBXkgQAeyIL93qSiS+jrX2I0cOk1u7CMC\n lAth4JtAtIbzLTQ77vmUaYl6BieXDEDdaDfMRNxGrMoKRAaZ5sOKwkrw+CGfL6PzhwRH\n bVqMdIwPKG8yPg94nXogu2JRoI5XXxvK93bbKLI9zLB5gtqofua6GsC3p67d1xlohtVZ\n J8Qm6ZS5By146wntCs7MaPH83BNkKXyEDb2VZJwfp8SwGbcGLh87XFzO+juCRfLOFegK\n SOuHY1HAbCaz4wM+BM4pY/df0rQNS3DwQtQMbRzy0tm0sn7q0j7cKUnAHB1lmATHy0uW\n ffAA==;\n dara=google.com","i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1708484943; c=relaxed/simple;\n bh=r6kIL6i8tu/eznPHtijIZn2iCjRGV+OBy/ImDoHg0VU=;\n h=From:To:Subject:Date:Message-Id:MIME-Version;\n b=TRWystAjHTC0N1dCfAwWGV/w+1zmjDNvTudGsWuSvTj9XolT7iSH8yrHnNVTR3GNjzAx8L24ac2chEAE+mIQxvJYqG/xHGLwmr/UvJnwIO1RUWoNEClod/Lzcb7dW0Hwv0lYLKhc3YsOeZvjbL/uvjanKhozREnqfVW22Pzj4N8="],"ARC-Authentication-Results":["i=2; mx.google.com;\n arc=pass (i=1);\n spf=pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates\n 2620:52:3:1:0:246e:9693:128c as permitted sender)\n smtp.mailfrom=\"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org\"","i=1; server2.sourceware.org"],"Received-SPF":["pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates\n 2620:52:3:1:0:246e:9693:128c as permitted sender)\n client-ip=2620:52:3:1:0:246e:9693:128c;","pass client-ip=114.242.206.163;\n envelope-from=chenglulu@loongson.cn; helo=mail.loongson.cn"],"Authentication-Results":["mx.google.com;\n arc=pass (i=1);\n spf=pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates\n 2620:52:3:1:0:246e:9693:128c as permitted sender)\n smtp.mailfrom=\"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org\"","sourceware.org;\n dmarc=none (p=none dis=none) header.from=loongson.cn","sourceware.org; spf=fail smtp.mailfrom=loongson.cn","server2.sourceware.org;\n arc=none smtp.remote-ip=2001:470:142:3::10"],"X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 9926B3858D3C","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 9926B3858D3C","From":"Lulu Cheng ","To":"gcc-patches@gcc.gnu.org","Cc":"xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn,\n chenglulu@loongson.cn","Subject":"[PATCH v1 2/4] LoongArch: Check whether binutils supports the relax\n function. If supported, explicit relocs are turned off by default.","Date":"Wed, 21 Feb 2024 11:08:39 +0800","Message-Id":"<20240221030841.23454-3-chenglulu@loongson.cn>","X-Mailer":"git-send-email 2.20.1","In-Reply-To":"<20240221030841.23454-1-chenglulu@loongson.cn>","References":"<20240221030841.23454-1-chenglulu@loongson.cn>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-CM-TRANSID":"AQAAf8BxLs88adVlyGw9AA--.26359S4","X-CM-SenderInfo":"xfkh0wpoxo3qxorr0wxvrqhubq/","X-Coremail-Antispam":"1Uk129KBj93XoW3Gr48uFWrtr1kCF1Utr4rtFc_yoWxWFyDpr\n 9rZw1ayF48Grs3Gr4Dta4fWwn3Jr97Wr12va13Xr18Ca15Xr10vF40yrnrXFy7Xw4rWry2\n vr1rKa129a1kAwbCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa\n sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU\n 0xBIdaVrnRJUUUvIb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2\n IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v\n e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI\n 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2\n 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w\n Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE\n 14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x\n 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02\n F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw\n 1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW5JVW7JwCI42IY6xIIjxv20xvEc7Cj\n xVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r\n 4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j8\n CztUUUUU=","X-Spam_score_int":"-18","X-Spam_score":"-1.9","X-Spam_bar":"-","X-Spam_report":"(-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-Spam-Status":"No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n KAM_DMARC_STATUS, SPF_FAIL, SPF_HELO_PASS, TXREP,\n T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6","X-Spam-Checker-Version":"SpamAssassin 3.4.6 (2021-04-09) on\n server2.sourceware.org","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list ","List-Unsubscribe":",\n ","List-Archive":"","List-Post":"","List-Help":"","List-Subscribe":",\n ","Errors-To":"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org","X-getmail-retrieved-from-mailbox":"INBOX","X-GMAIL-THRID":"1791476428230203724","X-GMAIL-MSGID":"1791476428230203724"},"content":"gcc/ChangeLog:\n\n\t* config.in: Regenerate.\n\t* config/loongarch/genopts/loongarch.opt.in: Add compilation option\n\tmrelax. And set the initial value of explicit-relocs according to the\n\tdetection status.\n\t* config/loongarch/gnu-user.h: When compiling with -mno-relax, pass the\n\t--no-relax option to the linker.\n\t* config/loongarch/loongarch-driver.h (ASM_SPEC): When compiling with\n\t-mno-relax, pass the -mno-relax option to the assembler.\n\t* config/loongarch/loongarch-opts.h (HAVE_AS_MRELAX_OPTION): Define macro.\n\t* config/loongarch/loongarch.opt: Regenerate.\n\t* configure: Regenerate.\n\t* configure.ac: Add detection of support for binutils relax function.\n\n(cherry picked from commint 9bab65a77049edcc7afc59532173206ee816e726)\n---\n gcc/config.in | 12 +++++++\n gcc/config/loongarch/genopts/loongarch.opt.in | 5 +++\n gcc/config/loongarch/gnu-user.h | 4 +--\n gcc/config/loongarch/loongarch-opts.h | 4 +++\n gcc/config/loongarch/loongarch.opt | 5 +++\n gcc/configure | 31 +++++++++++++++++++\n gcc/configure.ac | 4 +++\n 7 files changed, 63 insertions(+), 2 deletions(-)","diff":"diff --git a/gcc/config.in b/gcc/config.in\nindex cc638759a40..f5b6287a96a 100644\n--- a/gcc/config.in\n+++ b/gcc/config.in\n@@ -630,6 +630,12 @@\n #endif\n \n \n+/* Define if your assembler supports -mrelax option. */\n+#ifndef USED_FOR_TARGET\n+#undef HAVE_AS_MRELAX_OPTION\n+#endif\n+\n+\n /* Define if your assembler supports .mspabi_attribute. */\n #ifndef USED_FOR_TARGET\n #undef HAVE_AS_MSPABI_ATTRIBUTE\n@@ -2214,6 +2220,12 @@\n #endif\n \n \n+/* Define which stat syscall is able to handle 64bit indodes. */\n+#ifndef USED_FOR_TARGET\n+#undef HOST_STAT_FOR_64BIT_INODES\n+#endif\n+\n+\n /* Define as const if the declaration of iconv() needs const. */\n #ifndef USED_FOR_TARGET\n #undef ICONV_CONST\ndiff --git a/gcc/config/loongarch/genopts/loongarch.opt.in b/gcc/config/loongarch/genopts/loongarch.opt.in\nindex 61e7d72a0a1..edc2ed045d7 100644\n--- a/gcc/config/loongarch/genopts/loongarch.opt.in\n+++ b/gcc/config/loongarch/genopts/loongarch.opt.in\n@@ -177,3 +177,8 @@ Enum(cmodel) String(@@STR_CMODEL_EXTREME@@) Value(CMODEL_EXTREME)\n mcmodel=\n Target RejectNegative Joined Enum(cmodel) Var(la_opt_cmodel) Init(CMODEL_NORMAL)\n Specify the code model.\n+\n+mrelax\n+Target Var(loongarch_mrelax) Init(HAVE_AS_MRELAX_OPTION)\n+Take advantage of linker relaxations to reduce the number of instructions\n+required to materialize symbol addresses.\ndiff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h\nindex f050078da52..28ac8b0e1f6 100644\n--- a/gcc/config/loongarch/gnu-user.h\n+++ b/gcc/config/loongarch/gnu-user.h\n@@ -46,8 +46,8 @@ along with GCC; see the file COPYING3. If not see\n #define GNU_USER_TARGET_LINK_SPEC \\\n \"%{G*} %{shared} -m \" GNU_USER_LINK_EMULATION \\\n \"%{!shared: %{static} %{!static: %{rdynamic:-export-dynamic} \" \\\n- \"-dynamic-linker \" GNU_USER_DYNAMIC_LINKER \"}}\"\n-\n+ \"-dynamic-linker \" GNU_USER_DYNAMIC_LINKER \"}}\" \\\n+ \"%{mno-relax: --no-relax}\"\n \n /* Similar to standard Linux, but adding -ffast-math support. */\n #undef GNU_USER_TARGET_MATHFILE_SPEC\ndiff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h\nindex eaa6fc07448..60e682f57a0 100644\n--- a/gcc/config/loongarch/loongarch-opts.h\n+++ b/gcc/config/loongarch/loongarch-opts.h\n@@ -87,4 +87,8 @@ loongarch_config_target (struct loongarch_target *target,\n while -m[no]-memcpy imposes a global constraint. */\n #define TARGET_DO_OPTIMIZE_BLOCK_MOVE_P loongarch_do_optimize_block_move_p()\n \n+#ifndef HAVE_AS_MRELAX_OPTION\n+#define HAVE_AS_MRELAX_OPTION 0\n+#endif\n+\n #endif /* LOONGARCH_OPTS_H */\ndiff --git a/gcc/config/loongarch/loongarch.opt b/gcc/config/loongarch/loongarch.opt\nindex 3ff0d860413..78b5e0cc452 100644\n--- a/gcc/config/loongarch/loongarch.opt\n+++ b/gcc/config/loongarch/loongarch.opt\n@@ -184,3 +184,8 @@ Enum(cmodel) String(extreme) Value(CMODEL_EXTREME)\n mcmodel=\n Target RejectNegative Joined Enum(cmodel) Var(la_opt_cmodel) Init(CMODEL_NORMAL)\n Specify the code model.\n+\n+mrelax\n+Target Var(loongarch_mrelax) Init(HAVE_AS_MRELAX_OPTION)\n+Take advantage of linker relaxations to reduce the number of instructions\n+required to materialize symbol addresses.\ndiff --git a/gcc/configure b/gcc/configure\nindex b4907d258be..67cdd92a4f3 100755\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -28871,6 +28871,37 @@ if test $gcc_cv_as_loongarch_dtprelword != yes; then\n $as_echo \"#define HAVE_AS_DTPRELWORD 1\" >>confdefs.h\n \n fi\n+ { $as_echo \"$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option\" >&5\n+$as_echo_n \"checking assembler for -mrelax option... \" >&6; }\n+if ${gcc_cv_as_loongarch_relax+:} false; then :\n+ $as_echo_n \"(cached) \" >&6\n+else\n+ gcc_cv_as_loongarch_relax=no\n+ if test x$gcc_cv_as != x; then\n+ $as_echo '.text' > conftest.s\n+ if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'\n+ { { eval echo \"\\\"\\$as_me\\\":${as_lineno-$LINENO}: \\\"$ac_try\\\"\"; } >&5\n+ (eval $ac_try) 2>&5\n+ ac_status=$?\n+ $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n+ test $ac_status = 0; }; }\n+ then\n+\tgcc_cv_as_loongarch_relax=yes\n+ else\n+ echo \"configure: failed program was\" >&5\n+ cat conftest.s >&5\n+ fi\n+ rm -f conftest.o conftest.s\n+ fi\n+fi\n+{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax\" >&5\n+$as_echo \"$gcc_cv_as_loongarch_relax\" >&6; }\n+if test $gcc_cv_as_loongarch_relax = yes; then\n+\n+$as_echo \"#define HAVE_AS_MRELAX_OPTION 1\" >>confdefs.h\n+\n+fi\n+\n ;;\n s390*-*-*)\n { $as_echo \"$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support\" >&5\ndiff --git a/gcc/configure.ac b/gcc/configure.ac\nindex d369c4717b2..e08ac5f4b49 100644\n--- a/gcc/configure.ac\n+++ b/gcc/configure.ac\n@@ -5336,6 +5336,10 @@ x:\n \t.dtprelword x+0x8000],,\n [AC_DEFINE(HAVE_AS_ 100 16922 100 16772 100 150 282k 2586 --:--:-- --:--:-- --:--:-- 284k DTPRELWORD, 1,\n \t [Define if your assembler supports .dtprelword.])])\n+ gcc_GAS_CHECK_FEATURE([-mrelax option], gcc_cv_as_loongarch_relax,\n+ [-mrelax], [.text],,\n+ [AC_DEFINE(HAVE_AS_MRELAX_OPTION, 1,\n+\t\t[Define if your assembler supports -mrelax option.])])\n ;;\n s390*-*-*)\n gcc_GAS_CHECK_FEATURE([.gnu_attribute support],\n","prefixes":["v1","2/4"]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE