Summary: | dev-libs/libx86-1.1-r4 - thunk.c:14:10: fatal error: sys/io.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | jstein, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 764026 | ||
Attachments: |
build.log
emerge --info fix build on ppc |
Description
ernsteiswuerfel
2021-01-09 19:20:01 UTC
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 |