enable builds with musl libc? #445

Open
opened 2022-08-06 05:29:36 +00:00 by emidoots · 2 comments
emidoots commented 2022-08-06 05:29:36 +00:00 (Migrated from github.com)

Missing a PIC flag somewhere or something:

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'memset'; recompile with -fPIC
>>> defined in /home/runner/.cache/zig/o/8568fc64266b3d78437ad350efd0b20a/libc.so.6
>>> referenced by AuRead.o:(XauReadAuth) in archive /home/runner/.local/share/hexops/sdk-linux-x86_64/root/usr/lib/x86_64-linux-gnu/libXau.a

ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'free'; recompile with -fPIC
>>> defined in /home/runner/.cache/zig/o/8568fc64266b3d78437ad350efd0b20a/libc.so.6
>>> referenced by AuDispose.o:(XauDisposeAuth) in archive /home/runner/.local/share/hexops/sdk-linux-x86_64/root/usr/lib/x86_64-linux-gnu/libXau.a

https://github.com/hexops/mach/runs/7658081261?check_suite_focus=true

Missing a PIC flag somewhere or something: ``` ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'memset'; recompile with -fPIC >>> defined in /home/runner/.cache/zig/o/8568fc64266b3d78437ad350efd0b20a/libc.so.6 >>> referenced by AuRead.o:(XauReadAuth) in archive /home/runner/.local/share/hexops/sdk-linux-x86_64/root/usr/lib/x86_64-linux-gnu/libXau.a ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol 'free'; recompile with -fPIC >>> defined in /home/runner/.cache/zig/o/8568fc64266b3d78437ad350efd0b20a/libc.so.6 >>> referenced by AuDispose.o:(XauDisposeAuth) in archive /home/runner/.local/share/hexops/sdk-linux-x86_64/root/usr/lib/x86_64-linux-gnu/libXau.a ``` https://github.com/hexops/mach/runs/7658081261?check_suite_focus=true
alichraghi commented 2022-08-25 16:31:43 +00:00 (Migrated from github.com)

after fixing this with https://github.com/hexops/sdk-linux-x86_64/pull/4, the main reason will be that we don't include x86_64-linux-musl in linux sdk. so i guess you have to rename issue name

after fixing this with https://github.com/hexops/sdk-linux-x86_64/pull/4, the main reason will be that we don't include `x86_64-linux-musl` in linux sdk. so i guess you have to rename issue name
emidoots commented 2023-07-04 05:30:12 +00:00 (Migrated from github.com)

likely working now. Renaming issue to describe more general musl support

Probably already works(?), just need to add something to test it builds in https://github.com/hexops/mach/blob/main/libs/core/.github/workflows/ci.yml

likely working now. Renaming issue to describe more general musl support Probably already works(?), just need to add something to test it builds in https://github.com/hexops/mach/blob/main/libs/core/.github/workflows/ci.yml
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#445
No description provided.