#asahi-dev · 2024-02-13 17:48
sam_exactly#asahi-dev · 2024-02-13 17:48
jannegwhy would -ffreestanding be incompatible with -Werror=implicit-function-declaration? the latter just errors out if an used function misses an declaration#asahi-dev · 2024-02-13 17:48
sam_it's just about where they come from :)#asahi-dev · 2024-02-13 17:47
sam_you need prototypes for things either way#asahi-dev · 2024-02-13 17:47
sam_yes, they are mutually compatible#asahi-dev · 2024-02-13 17:45
janneghas built m1n1 on macos with https://github.com/richfelker/musl-cross-make#asahi-dev · 2024-02-13 17:44
svenyeah, and that's also just from the normal m1n1 Makefile#asahi-dev · 2024-02-13 17:43
zzywysmhe's building with -ffreestanding and -Werror=implicit-function-declaration simultaneously, are those mutually compatible?#asahi-dev · 2024-02-13 17:43
zzywysmagreed#asahi-dev · 2024-02-13 17:42
svenlet's focus on the problem instead of musl vs. glibc#asahi-dev · 2024-02-13 17:42
zzywysmjanneg: he says "So building it with musl gets all kinds of errors..." not realizing that neither musl nor glibc are necessary to build m1n1#asahi-dev · 2024-02-13 17:41
jannegI don't think this is related to musl#asahi-dev · 2024-02-13 17:40
zzywysmwhen people tell me that the musl movement isn't a compulsion, i will remember this :D#asahi-dev · 2024-02-13 17:36
jannegburoa: please paste build/display.S after running https://privatebin.net/?0d1d6390d12767fc=#6iGTh2LLnGYGDBkZ2yXtVvQ52RHeKPP11LnSE9PNmJJD#asahi-dev · 2024-02-13 17:33
buroaThis is what files are in that folder: https://privatebin.net/?a79775de1854c522#DLCLS4H8UCBhNqoGqy4cLA9X8MQ6uYcQZv3ojbHB5mYD#asahi-dev · 2024-02-13 17:32
jannegthat file shouldn't be in the compiler include path "/toolchain/lib/gcc/aarch64-linux-musl/13.2.0/include"#asahi-dev · 2024-02-13 17:32
j`eynice spot janneg #asahi-dev · 2024-02-13 17:32
j`eyyep: https://git.musl-libc.org/cgit/musl/tree/src/include/string.h#asahi-dev · 2024-02-13 17:30
buroaYep, sec#asahi-dev · 2024-02-13 17:29
jannegcan you grep in /toolchain/lib/gcc/aarch64-linux-musl/13.2.0/include for "STRING_H"#asahi-dev · 2024-02-13 17:26
buroahttps://privatebin.net/?f92920a291805ca6#FbGqGgwSgFGtG7UKLeLTyxRwjjkoL7b1ePSuQd4x4NGh#asahi-dev · 2024-02-13 17:26
jannegcan you paste the full failing compile command? i.e. the last compile cmd line from `make V=1`#asahi-dev · 2024-02-13 17:25
buroaOnce I get this all figured out, I'll be able to publish Talos Linux versions for the community.#asahi-dev · 2024-02-13 17:25
buroaIt's... very custom#asahi-dev · 2024-02-13 17:25
buroaFWIW: I'm building it using https://github.com/siderolabs/tools / https://github.com/siderolabs/pkgs#asahi-dev · 2024-02-13 17:23
j`eyburoa: as I showed, alpine builds it just fine, so something weird in your setup#asahi-dev · 2024-02-13 17:23
j`eysorry yeah, src/string.c sysinc/string.h#asahi-dev · 2024-02-13 17:23
svensysinc/string.h i think#asahi-dev · 2024-02-13 17:22
j`eythat's defined in src/string.{c,h}#asahi-dev · 2024-02-13 17:22
buroaThere are many more, but that's just the surface.#asahi-dev · 2024-02-13 17:21
buroaSo building it with musl gets all kinds of errors... error: implicit declaration of function 'atol' [-Werror=implicit-function-declaration]#asahi-dev · 2024-02-13 17:20
jannegburoa: m1n1 itself uses -ffreestanding see https://github.com/AsahiLinux/m1n1/blob/3b9a71422e45209ef57c563e418f877bf54358be/Makefile#L49C3-L49C16#asahi-dev · 2024-02-13 17:19
mazdragging libc in something as low-level as m1n1 would be... interesting.#asahi-dev · 2024-02-13 17:12
j`eynot sure what the issue is, but alpine has m1n1, that uses musl, so it works#asahi-dev · 2024-02-13 17:10
buroaI don't have libc in my build as I use musl. By default that is using libc, so it's building.#asahi-dev · 2024-02-13 17:08
j`eyburoa: https://git.alpinelinux.org/aports/tree/community/m1n1/APKBUILD#asahi-dev · 2024-02-13 17:08
buroalibc.#asahi-dev · 2024-02-13 17:07
buroaWhat do you think these use? https://github.com/AsahiLinux/m1n1/blob/main/Dockerfile#L4#asahi-dev · 2024-02-13 17:06
buroaOk#asahi-dev · 2024-02-13 17:06
buroaLol#asahi-dev · 2024-02-13 17:06
j`eynothing#asahi-dev · 2024-02-13 17:06
buroaIt doesn't use musl, so what does it use?#asahi-dev · 2024-02-13 17:06
j`eyburoa: it doesnt use libc#asahi-dev · 2024-02-13 17:05
buroaI want to compile it using musl, so I can build it into Talos Linux's toolchain, which uses alpine.#asahi-dev · 2024-02-13 17:05
buroaThat's what is used to compile it.#asahi-dev · 2024-02-13 17:02
svenwhat makes you think m1n1 needs glibc?#asahi-dev · 2024-02-13 16:59
buroaHow can we build m1n1 using musl instead of glibc?#asahi-dev · 2024-02-13 16:37
zzywysmchadmed is likely asleep and doesn't realize a gremlin is repeatedly plugging and unplugging his Ethernet cable#asahi-dev · 2024-02-13 16:30
j`eyzzywysm: ah yeah, I did that too#asahi-dev · 2024-02-13 16:30
zzywysmmmmm, delicious module-less-ness