#asahi-dev · 2024-02-13 18:34
janneg+it#asahi-dev · 2024-02-13 18:33
jannegyes, to me as well. only open question is how did break#asahi-dev · 2024-02-13 18:33
sam_how did this thing get built#asahi-dev · 2024-02-13 18:32
sventhis very much sounds like a broken toolchain to me#asahi-dev · 2024-02-13 18:32
jannegwith that adjustment the "--with-native-system-header-dir=/toolchain/include" from the gcc configure line looks suspicious as well#asahi-dev · 2024-02-13 18:29
janneg`ln -s /toolchain/include /usr/include` looks a little suspicios as well#asahi-dev · 2024-02-13 18:29
j`eyhttps://github.com/siderolabs/toolchain-musl/blob/8f1a7ebb886f3219b45f522051c588cd3e1f1c7e/toolchain/adjust.sh#L29#asahi-dev · 2024-02-13 18:28
svenhrm, that's not /usr/include though#asahi-dev · 2024-02-13 18:28
sventhat seems to add -isystem /include for the c pre-processor #asahi-dev · 2024-02-13 18:27
sventhat looks very suspicious#asahi-dev · 2024-02-13 18:27
svenactually, https://github.com/siderolabs/toolchain-musl/blob/8f1a7ebb886f3219b45f522051c588cd3e1f1c7e/toolchain/adjust.sh#L13#asahi-dev · 2024-02-13 18:26
svenso much for that theory :D#asahi-dev · 2024-02-13 18:26
j`eyI think the kernel uses nostdinc..#asahi-dev · 2024-02-13 18:25
svenand if this toolchain was never used to build with -nostdinc no one would've noticed that bug#asahi-dev · 2024-02-13 18:24
svenyou can probably add that -isystem /usr/include by messing with that file#asahi-dev · 2024-02-13 18:24
jannegor the output of `/toolchain/bin/gcc -dumpspecs`#asahi-dev · 2024-02-13 18:23
jannegthere is nothing suspicious in there. config is printed first#asahi-dev · 2024-02-13 18:23
svencan you paste /toolchain/lib/gcc/aarch64-linux-musl/13.2.0/specs ?#asahi-dev · 2024-02-13 18:22
sventhis smells like a messed up toolchain#asahi-dev · 2024-02-13 18:21
j`eyburoa: I would look at your gcc build see what flags youre passing..#asahi-dev · 2024-02-13 18:21
buroahttps://privatebin.net/?7babf4cf6061da76#3h2DVvJ5WwHMZEdXVfpG37azjMjBsA8tZMyvQfEqRK9d#asahi-dev · 2024-02-13 18:20
buroaSec#asahi-dev · 2024-02-13 18:20
jannegyes#asahi-dev · 2024-02-13 18:20
buroaWait, you want both?#asahi-dev · 2024-02-13 18:20
svenare you sure? i just see -nostdinc++ there and no -nostdinc#asahi-dev · 2024-02-13 18:19
jannegbut I would expect the output to be the same#asahi-dev · 2024-02-13 18:19
buroajanneg That was in this output: https://privatebin.net/?2560c8efeb6d5034#BWRKSse6BGuTcYKtVMUF7AKZ4a2LkqdFDLRvgzYvkTbf#asahi-dev · 2024-02-13 18:19
jannegplease add -nostdinc++ instead of replacing -nostdinc#asahi-dev · 2024-02-13 18:18
jannegno, that outputs /toolchain/lib/gcc/aarch64-linux-musl/13.2.0/include#asahi-dev · 2024-02-13 18:18
sven*ran#asahi-dev · 2024-02-13 18:17
svenwe would've seen that earlier when you can make V=1#asahi-dev · 2024-02-13 18:17
buroa$(shell $(CC) -print-file-name=include) I think: https://github.com/AsahiLinux/m1n1/blob/main/Makefile#L50C21-L50C60#asahi-dev · 2024-02-13 18:17
svenplease run that -v thing again with -nostdinc present#asahi-dev · 2024-02-13 18:17
svenoh, wait, you can that with just -nostdinc++#asahi-dev · 2024-02-13 18:16
svenhuh, where does -isystem /usr/include come from?#asahi-dev · 2024-02-13 18:15
buroadisplay.S: https://privatebin.net/?ed705414bffbb57f#8uVVfwpPRzr9JYF5VbZauBKy2pujEj18wtrnraQPM2Zb#asahi-dev · 2024-02-13 18:14
buroaCommand output (-v): https://privatebin.net/?2560c8efeb6d5034#BWRKSse6BGuTcYKtVMUF7AKZ4a2LkqdFDLRvgzYvkTbf#asahi-dev · 2024-02-13 18:13
jannegplease add "-v" to the command to generate display.S and paste the output from the command line#asahi-dev · 2024-02-13 18:12
jannegtry adding "-nostdinc++", that was added in gcc-13 but it would be strange if that borked gcc -nostdinc#asahi-dev · 2024-02-13 18:10
jannegfedora's 13.2.1 works as expected#asahi-dev · 2024-02-13 18:08
buroahttps://privatebin.net/?500b857792a61051#HukhQeQBJEDCdHWHbCaVgSVyCMPB8KVTfjz6vmCBvL3E#asahi-dev · 2024-02-13 18:08
svenyeah, i'm curious which compiler that is#asahi-dev · 2024-02-13 18:08
jannegthat would mean that "-nostdinc" is somehow broken#asahi-dev · 2024-02-13 18:07
svenwhat does /toolchain/bin/gcc --version print?#asahi-dev · 2024-02-13 18:05
svenweird, it includes /usr/include/string.h for some reason#asahi-dev · 2024-02-13 18:00
buroajanneg https://privatebin.net/?039097736f8c5022#GZyMbXFG8rbFWTRgLomYT5ej7d771CBFWTXULEh6evhC#asahi-dev · 2024-02-13 17:49
zzywysmah, cool#asahi-dev · 2024-02-13 17:49
jannegm1n1 has prototypes for every used libc function in sysinc/#asahi-dev · 2024-02-13 17:48
sam_(and it's default in gcc 14+, clang 16+)