openbsd-wip
openbsd-wip copied to clipboard
games/xash3d: build fails on i386
===> Configuring for xash3d-hl-0.0.70bd3a2 [26/1964]
CMake Deprecation Warning at CMakeLists.txt:23 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is Clang 11.1.0
-- The CXX compiler identification is Clang 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/ports/pobj/xash3d-hl-0.0.70bd3a2/bin/cc -
skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/ports/pobj/xash3d-hl-0.0.70bd3a2/bin/c++
- skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:65 (message):
You enabled XASH_64BIT, but compiler can't create 64 bit code!
It seems XASH_64BIT is still getting defined even though I'm on a 32-bit platform.
https://github.com/jasperla/openbsd-wip/blob/5dd2028d804e2590c8057469b0f6186aee00202e/games/xash3d/hl/Makefile#L34
Commenting this line out in all of the Makefiles allows it to continue. I'm not sure why the if above would succeed however.
opfor is also broken as hlsdk-xash3d-opfor-b669960.tar.gz is missing from all mirrors.
sounds like this arch detection isn't working:
https://github.com/jasperla/openbsd-wip/blob/2b75d72e141b36ce888d297988458ea2a2ea89ff/games/xash3d/engine/Makefile#L40
someone will need to write and test a fix...