Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764656 - dev-libs/libx86-1.1-r4 - thunk.c:14:10: fatal error: sys/io.h: No such file or directory
Summary: dev-libs/libx86-1.1-r4 - thunk.c:14:10: fatal error: sys/io.h: No such file o...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 764026
  Show dependency tree
 
Reported: 2021-01-09 19:20 UTC by ernsteiswuerfel
Modified: 2024-03-05 06:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (libx86-1.1-r4:20210109-185300.log,2.43 KB, text/plain)
2021-01-09 19:20 UTC, ernsteiswuerfel
Details
emerge --info (file_764656.txt,5.86 KB, text/plain)
2021-01-09 19:20 UTC, ernsteiswuerfel
Details
fix build on ppc (fix-ppc-headers.patch,269 bytes, patch)
2021-01-09 19:22 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-01-09 19:20:01 UTC
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
Comment 1 ernsteiswuerfel archtester 2021-01-09 19:20:33 UTC
Created attachment 682150 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2021-01-09 19:22:23 UTC
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.
Comment 3 ernsteiswuerfel archtester 2021-01-09 19:46:27 UTC
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
Comment 4 Rolf Eike Beer archtester 2021-01-13 17:20:50 UTC
same on sparc
Comment 5 Marek Szuba (RETIRED) archtester gentoo-dev 2021-10-10 16:48:09 UTC
same on riscv
Comment 6 Agostino Sarubbo gentoo-dev 2024-02-22 08:33:49 UTC
same on arm32