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: Issues on Alpine linux. Tentative definition has type 'struct sigstack' that is never completed, in sysinfo.c #42308
Comments
|
You can find my compressed build folder out here |
Asked @rcombs , recently - and got a hint: that is about using sigaltstack ( description ) versus sigstack ( description ). |
@ncopa , please advise something. |
I have replaced the line - so now I am getting the following:
Here is my compressed build folder. Also mentioned Line 512 in 39a5ee5
So there seams to be some support, for sigaltstack |
https://go.googlesource.com/gollvm/#wheretopostquestions recommends the mailing list instead of the issue tracker. |
@thanm, I got this
I was using
|
Now I have another problem:
|
This is an LLVM peculiarity -- in the LLVM cmake rules ( https://llvm.org/docs/CMake.html ) there is a control variable
Most likely what is happening is that your build system doesn't have zlib installed. Try applying this patch and see if it helps:
|
Thanks, I will check. Btw here is a compressed virtual drive image: |
@advancedwebdeveloper Hello. I wonder if you can get gollvm compiled on top of alpine+musl? |
I can't tell that it can't be compiled - it rather seems to have some custom issues, for some packages of libgo. @ardhipoetra , are you interested to reproduce this (on the latest version of Alpine and by using the latest versions of gollvm, Clang) ? |
I almost able to compile gollvm with latest-ish llvm (from git) and clang (from alpine repo). However, the linking seems to be incorrect, though :
|
Trying installing musl-dev package |
It was definitely not because I didn't have musl-dev package. Apparently I need to set the target build correctly and did some hackish changes on the gollvm (and gofrontend). Now it is compiled (gcc9 + alpine + musl), but cannot be executed, although ldd gives me all the linkage :
|
You are somewhat ahead of me. That would allow to reproduce this. @thanm , any ideas on the runtime issue? I sent you an invite, on Slack |
@ardhipoetra You can try installing |
@ericonr, @ardhipoetra : I am still following. |
Hello.
I was trying to check what is required to build gollvm on Alpine linux (it has musl instead of glibc).
Look like recently revealed set of minimal requirements allowed to build the configuration file (for Ninja).
heading to check whether Ninja would compile.
I wasn't able to find a pre-compiled Clang 11, for Alpine - but Clang 10 was available, which was pre-compiled against musl (C++ standard library has to rely on musl, instead of glibc - as I suppose).
Maybe I would recompile Clang 11, for Alpine distro - but not today.
Must admit that CMake worked much faster, compared to Ubuntu.
Comments would be much appreciated.
The text was updated successfully, but these errors were encountered: