-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
blc --configure fails with musl-libc #151
Comments
Hmm, I tried fresh clone on Ubuntu and it seems to work, can you please check if the file |
it exists inside the bin directory:
|
OK, the file is distributed as a binary, you can try to execute it manually Are you running Btw
|
I use x86_64 and /etc is symlinked. I tried ./bl-config -h and it gave the same error:
I will manually add the config and see if it works. |
hmm, maybe symlink reading does not work properly... |
this part "/lib64/ld-linux-x86-64.so.2 -e _start -lc -lm" will not work with musl libc. Musl libc has ld-musl-x86_64.so.1. edit: I created etc folder inside the source dir, and blc asks for input file. edit2: I have tried to compile a sample code but blc gives me this error:
edit3: I guess the reason I get "no such file or directory" is because bl-config and bl-lld expects glibc. |
yes, I was kinda expecting this, it seems to be the same issue, |
It's possible! Both binaries are compiled with glibc. |
You can try to use your default system linker |
Now I get all these undefined references:
|
Hmm, this looks like a real blocker, currently, bl is dependent on some stuff from libc, and it's definitely not tested with musl :/ I work on Windows so the support of Linux is limited just to WSL or let's say Ubuntu... |
Maybe adding support for musl-libc will be a feaute enhancement for future development, I guess. Thanks anyway for your help. |
I'm thinking about it, btw is there any advantage over |
It produces fairly small binaries when statically linked, supposed to be more stable, less bug prone than glibc. Other than that I don,t know. Here is an introduction if you are interested: https://www.musl-libc.org/intro.html If you want to try out musl libc in action you could use alpine linux, which is best known to be based on musl-libc. https://alpinelinux.org/ |
I have manually built bl from the source and added blc to the PATH env. But when I run "blc --configure", I ge this error message:
I use a custom musl-libc based linux distro with llvm version 12.0.1(I changed Cmakelists.txt to use llvm 12.0.1). Compilation finnished without any errors, but configuring blc doesn't go through.
The text was updated successfully, but these errors were encountered: