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

gollvm: os_linux.go:360:14: error: reference to undefined name '_itimerspec' #54562

Open
advancedwebdeveloper opened this issue Aug 20, 2022 · 4 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux
Milestone

Comments

@advancedwebdeveloper
Copy link

Caught a bug, out here:

/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:360:14: error: reference to undefined name '_itimerspec'
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:360:14: error: expected type
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:246:40: error: use of undefined type '_sigevent'
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:366:6: error: reference to field 'sigev_notify' in object which has no fields or methods
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:366:22: error: reference to undefined name '_SIGEV_THREAD_ID'
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:367:6: error: reference to field 'sigev_signo' in object which has no fields or methods
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:368:33: error: reference to field '_sigev_un' in object which has no fields or methods
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:246:40: error: use of undefined type '_sigevent'
/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/runtime/os_linux.go:250:58: error: use of undefined type '_itimerspec'
[1795/3011] Creating /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/build_release/tools/gollvm/libgo/tmp-sysinfo.go

@advancedwebdeveloper
Copy link
Author

advancedwebdeveloper commented Aug 20, 2022

@seankhliao seankhliao added this to the gollvm milestone Aug 20, 2022
@seankhliao seankhliao added OS-Linux NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Aug 20, 2022
@realqhc
Copy link

realqhc commented Aug 20, 2022

again you should consider plct branch or use an older version of gofrontend https://github.com/plctlab/gofrontend
But I can't replicate your issue, so it might not work.

@advancedwebdeveloper
Copy link
Author

@realqhc , consider the following.

I have a successful build, by using GCC.

I was trying to use Clang compiler.
One of the scenarios lad to a compilation failure.

You can reproduce everything, by using Github Actions.

Hence that Clang's version differ, from case to case. Means we can figure out the minimal required version, to reflect that on gollvm's landing page.

@advancedwebdeveloper
Copy link
Author

@thanm , if the issue is related to the front-end - why I don't have the same with GCC?

Hence that I have success with Clang 12.

There is a bug within the naming (CMake resolves Clang 12, not 13 - fixing that, right now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux
Projects
None yet
Development

No branches or pull requests

3 participants