-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
Linking fails on dev-2024-05 with: cannot find crtbegin.o #3597
Comments
I also had the same issue on Alpine. Here's a workaround you can do:
I have no idea why it's trying to link |
|
I can't replicate it on Ubuntu 24.04.
LLVM 17 either:
|
It can be temporarily fixed by specifying your target triple here. On my setup it's bc->link_flags = concatenate3_strings(permanent_allocator(),
str_lit("-target "), str_lit("x86_64-alpine-linux-musl"), str_lit(" ")); Tried to compile |
Thanks. I can confirm that this temporary fix works. @laytan Seeing as you have worked on this part of the codebase before, do you know how we could make a more permanent fix to this issue? |
From the temporary fix it seems like using the Maybe this line needs changing: Line 968 in d99e161
Something like But these are just initial guesses, I will try to find some time to test/reproduce this |
Problem
./build_odin.sh
succeeds on dev-2024-04a and prints the demo../build_odin.sh
fails on dev-2024-05 with the following output:Somewhere between dev-2024-04a and dev-2024-05 an issue was introduced, or have the build requirements changed?
System
OS: Alpine Linux edge, Linux 6.6.30-0-lts
Arch: x86_64
Libc: musl
Version
Odin: dev-2024-05:2250eb3e7
Backend: LLVM 17.0.6
The text was updated successfully, but these errors were encountered: