Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building gollvm with Github Actions: "grep: gen-sysinfo.go: No such file or directory" and "error: At most two relocations per offset are supported" #42651

Closed
advancedwebdeveloper opened this issue Nov 17, 2020 · 3 comments
Milestone

Comments

@advancedwebdeveloper
Copy link

What version of Go are you using (go version)?

gollvm aka Go 1.15.5

Does this issue reproduce with the latest release?

Indeed

What operating system and processor architecture are you using (go env)?

Ubuntu 18.04.5 LTS, adopted for Azure's instances

What did you do?

I was trying to use Github Actions to automate gollvm's release process.
My run

What did you expect to see?

Successful compilation of libgo and all required sub-targets.

What did you see instead?

Well, I see that llvm-goc is built.
I see that the back-end test suite ran successfully.
But some auto-generation not working normally, for gen-sysinfo.go.

Consider checking archived logs here and a single file/raw listing here .

I see the first occurrence of reported file absence at

2020-11-15T23:36:42.1083177Z [1537/2664] Creating /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/tmp-os_user_linknames.go
2020-11-15T23:36:42.1089654Z grep: gen-sysinfo.go: No such file or directory
. It is repeating dozens of times.

2020-11-15T23:36:42.8153253Z [1560/2664] Generating /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/gen-sysinfo.go
2020-11-15T23:36:42.8164171Z error: At most two relocations per offset are supported

Probably a verbose logging should be enabled, to track this.
Btw is it depending on Clang's version?

I think it is triggered here .

CC @thanm @cherrymui @ianlancetaylor

@thanm thanm self-assigned this Nov 17, 2020
@thanm thanm added this to the gollvm milestone Nov 17, 2020
@thanm
Copy link
Contributor

thanm commented Nov 17, 2020

Thanks for the report.

"At most two relocations per offset" is a red herring, but the problem with gen-sysinfo.go looks like a missing dependency. I will send a CL.

@gopherbot
Copy link

Change https://golang.org/cl/270797 mentions this issue: gollvm: add missing dependency in libgo cmake rules

@thanm
Copy link
Contributor

thanm commented Nov 17, 2020

Checked in https://go.googlesource.com/gollvm/+/4576dabb5d51054895d04c16d03daba36291c82a with fix, closing now. Please reopen if there are still issues, thanks.

@thanm thanm closed this as completed Nov 17, 2020
@golang golang locked and limited conversation to collaborators Nov 17, 2021
@rsc rsc unassigned thanm Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants