Open u2400 opened 3 years ago
CC @thanm
Change https://golang.org/cl/340124 mentions this issue: gollvm: update struct ret attribute construction
I sent https://go-review.googlesource.com/c/gollvm/+/340124, which should resolve this particular problem once it is submitted.
For the time being I would recommend RelWithDebInfo with -DCMAKE_BUILD_TYPE= as opposed to Debug, since there seems to be another issue there with Debug that I haven't had a chance to look over.
Cool! Although I haven't tried to run it yet, but the build succeeded.
(base) root@7e4c15edc8bd:~/workdir/build-debug# cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_USE_LINKER=gold -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -G Ninja ../llvm-project/llvm
...
(base) root@7e4c15edc8bd:~/workdir/build-debug# ninja gollvm
...
[3763/3763] Building go program cgo
Thank you very much!
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I followed the instructions on the gollvm page.
What did you expect to see?
The project builds cleanly.
What did you see instead?
I built gollvm in docker, and got the following error message
Error message:
Other Environmental information
This issues(#42843) mentioned the same problem