View Issue Details

IDProjectCategoryView StatusLast Update
0004857The Dark ModCodingpublic05.07.2018 07:36
Reportercaseyac Assigned To 
Status newResolutionopen 
PlatformA-EON Cyrus, PPC64 e5500OSDebianOS Versionunstable
Product VersionTDM 2.06 
Summary0004857: Build Error due to reference to cpuid.h on PPC64
DescriptionThe build and target system is an A-EON Cyrus board, a 64-bit Freescale PowerPC e5500 based system running Debian unstable (64-bit kernel, 32-bit user-space). Building fails due to reference to cpuid.h. Please consider fixing; the A-EON Cyrus is a current, consumer marketed system.
Build Fail:
g++ -o build/scons_powerpc/release/core/idlib/math/Rotation.o -c -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -std=c++11 -fno-strict-aliasing -fvisibility=hidden -g -O3 -ffast-math -fno-unsafe-math-optimizations -DXTHREADS -Ibuild/scons_powerpc/release/core/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/libjpeg -Iinclude/libpng -Iinclude/devil -Iinclude/ffmpeg -I. -Iidlib -Iframework -Igame idlib/math/Rotation.cpp
g++ -o build/scons_powerpc/release/core/idlib/math/Simd.o -c -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -std=c++11 -fno-strict-aliasing -fvisibility=hidden -g -O3 -ffast-math -fno-unsafe-math-optimizations -DXTHREADS -Ibuild/scons_powerpc/release/core/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/libjpeg -Iinclude/libpng -Iinclude/devil -Iinclude/ffmpeg -I. -Iidlib -Iframework -Igame idlib/math/Simd.cpp
idlib/math/Simd.cpp:21:10: fatal error: cpuid.h: No such file or directory
 #include <cpuid.h>
compilation terminated.
scons: *** [build/scons_powerpc/release/core/idlib/math/Simd.o] Error 1
scons: building terminated because of errors.
Steps To ReproduceAttempt build on a powerpc or emulated powerpc system.
TagsNo tags attached.


related to 0004550 assignedstgatilov Cleanup of SIMD code 




05.07.2018 03:01

administrator   ~0010642

OMG, wtf cpu is this?!!11 =)

I think PowerPC CPU with Linux OS was never supported even by ID software. At least this was never in consideration for TDM. Given that Apple has switched to x86 long time ago, there is no reason to support PowerPC except for people with very old Macs and you.

It can probably be fixed during generic SIMD cleanup, which is not going to happen until 2.07 is out.

You can fix compilation yourself: comment out this include, and the big "#ifdef __linux__" section in idSIMD::InitProcessor.


05.07.2018 07:36

developer   ~0010643

Please provide a patch for us to merge, because setting up a PPC VM for build is "too much stress".

Issue History

Date Modified Username Field Change
04.07.2018 04:30 caseyac New Issue
05.07.2018 02:50 stgatilov Relationship added related to 0004550
05.07.2018 03:01 stgatilov Note Added: 0010642
05.07.2018 07:36 duzenko Note Added: 0010643