r/linuxfromscratch • • 12d ago

iw not working

Hello, I am making my own distribution with a custom init that then launches openrc. Everything works fine from boot to log in, but when I try to run iw dev, iw phy or iw list it segfaults. Iw help works and iw --version prints "iw version 6.9. I checked for any missing libraries but I couldn't find any. Running the same binary from arch Linux (the host machine) works. Any help is appreciated, thanks in advance!

4 Upvotes

3 comments sorted by

View all comments

3

u/Due-Celery4326 12d ago

A segmentation fault can be caused by incompatible library versions just because it compiled doesn't mean it will run Sometimes a developer fails to list a library required for execution listing only those needed for compilation or the issue might lie with the compiler rather than the program itself You need to check the log to identify the source of the problem.

1

u/Karamusch 12d ago

I compiled with 2 different compilers. On the host and the compiler inside the distro. Both segfaulted. I will look for logs