Does not seem like this message got through. Removing the attachment. -------- Forwarded Message -------- From: Svante Signell <[email protected]> Reply-to: <[email protected]> To: bug-hurd <[email protected]> Cc: debian-hurd <[email protected]>, Debian Bug Tracking System <[email protected]> Subject: Success in building x86info under GNU/Hurd Date: Sat, 29 Jan 2011 17:15:37 +0100
Hi, when building x86info under GNU/Hurd (and according to the web other packages like erlang, see Debian bug ##527589) functions like __CPU_ZERO_S and __CPU_SET_S are not defined causing a build error. Tracing it back to the header files I found that /usr/include/sched.h from libc6-dev/libc0.3-dev are identical on Linux and Hurd but not /usr/include/bits/sched.h. Attached is a diff between these files. In the Linux version of the file the for Hurd missing functions are properly defined, and it looks like the Hurd version is outdated. Exchanging the Hurd header with the Linux header file made x86info build. Adding the hurd-i386 to the Debian .dsc and control files enabled x86info package to build :-) The only problem to install x86info_1.25-1_hurd-i386.deb is the dependency of makedev which conflicts with Hurd or udev which is not available for Hurd. One small problem was found during the build: x86info.o: In function `bind_cpu': cpuid.o: In function `native_cpuid': /home/srs/DEBs/x86info-1.25/x86info.h:186: warning: warning: sched_getaffinity is not implemented and will always fail /home/srs/DEBs/x86info-1.25/x86info.h:189: warning: warning: sched_setaffinity is not implemented and will always fail However trying the x86info command under qemu/hurd gave the following result: x86info v1.25. Dave Jones 2001-2009 Feedback to <[email protected]>. Found 1 CPU -------------------------------------------------------------------------- EFamily: 0 EModel: 0 Family: 6 Model: 3 Stepping: 3 CPU Model: Pentium II (Klamath) [C0] Type: 0 (Original OEM) Brand: 0 (Unsupported) Number of cores per physical package=1 Number of logical processors per socket=1 Number of logical processors per core=1 APIC ID: 0x0 Package: 0 Core: 0 SMT ID 0
