Created attachment 682147 [details] build.log [...] >>> Compiling source in /var/tmp/portage/dev-libs/libx86-1.1-r4/work/libx86-1.1 ... make -j1 BACKEND=x86emu LIBRARY=shared shared powerpc-unknown-linux-gnu-gcc -Os -mcpu=7450 -pipe -fno-delete-null-pointer-checks -DX86EMU -fPIC -c -o x86-common.o x86-common.c powerpc-unknown-linux-gnu-gcc -Os -mcpu=7450 -pipe -fno-delete-null-pointer-checks -DX86EMU -fPIC -c -o thunk.o thunk.c thunk.c:14:10: fatal error: sys/io.h: No such file or directory 14 | #include <sys/io.h> | ^~~~~~~~~~ compilation terminated. make: *** [<builtin>: thunk.o] Error 1 * ERROR: dev-libs/libx86-1.1-r4::gentoo failed (compile phase): * emake failed
Created attachment 682150 [details] emerge --info
Created attachment 682153 [details, diff] fix build on ppc /usr/include/sys/io.h is not available on ppc, but it is not needed anyway to build it seems.
Turns out I was a bit too quick with my patch... libx86-1.1-r4 does not need sys/io.h to build, but x11-misc/read-edid-3.0.2 needs symbols out of sys/io.h or else it fails with: [...] [ 66%] Linking C executable get-edid cd /var/tmp/portage/x11-misc/read-edid-3.0.2/work/read-edid-3.0.2_build/get-edid && /usr/bin/cmake -E cmake_link_script CMakeFiles/get-edid.dir/link.txt --verbose=1 /usr/bin/powerpc-unknown-linux-gnu-gcc -Os -mcpu=7450 -pipe -fcommon -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic CMakeFiles/get-edid.dir/get-edid.c.o CMakeFiles/get-edid.dir/classic.c.o CMakeFiles/get-edid.dir/i2c.c.o -o get-edid -lx86 /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: CMakeFiles/get-edid.dir/classic.c.o: in function `classicmain': classic.c:(.text+0x8c0): undefined reference to `ioperm' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: classic.c:(.text+0x8cc): undefined reference to `iopl' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../lib/libx86.so: undefined reference to `inw' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../lib/libx86.so: undefined reference to `outb' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../lib/libx86.so: undefined reference to `outl' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../lib/libx86.so: undefined reference to `inb' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../lib/libx86.so: undefined reference to `inl' /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../lib/libx86.so: undefined reference to `outw' collect2: error: ld returned 1 exit status
same on sparc
same on riscv
same on arm32