Skip to content

luabind, eigen2, soi: fix build with cmake 4#452677

Merged
7c6f434c merged 3 commits intoNixOS:masterfrom
drawbu:clement/push-zqvklkyqromu
Oct 21, 2025
Merged

luabind, eigen2, soi: fix build with cmake 4#452677
7c6f434c merged 3 commits intoNixOS:masterfrom
drawbu:clement/push-zqvklkyqromu

Conversation

@drawbu
Copy link
Member

@drawbu drawbu commented Oct 16, 2025

Fix luabind, eigen2 and soi build failure and its dependencies on newer cmake 4.

This should fix build for:

  • luabind
  • luabind_luajit
  • osrm-backend
  • osmscout-server
  • eigen2
  • soi

Should help for:

Also, icesl which depends on luabind fails to build, but it is unrelated to the CMake failure.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 6.topic: games Gaming on NixOS labels Oct 16, 2025
@nix-owners nix-owners bot requested review from 7c6f434c and svanderburg October 16, 2025 18:51
@nixpkgs-ci nixpkgs-ci bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Oct 16, 2025
- CMake 4 is no longer retro compatible with versions < 3.5
- Should fix `luabind`, `luabind_luajit` & `osrm-backend`
- CMake 4 is no longer retro compatible with versions < 3.5
- CMake Error at doc/snippets/CMakeLists.txt:17 (GET_TARGET_PROPERTY):
  The LOCATION property may not be read from target "compile_class_LU".  Use
  the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.
- CMake Error at doc/examples/CMakeLists.txt:11 (GET_TARGET_PROPERTY):
  The LOCATION property may not be read from target
  "Tutorial_simple_example_dynamic_size".  Use the target name directly with
  add_custom_command, or use the generator expression $<TARGET_FILE>, as
  appropriate.
- CMake 4 is no longer retro compatible with versions < 3.5
- PROJECT_VERSION variable was now overwritten by the call to project()
  function so updating how the version was set has been needed.
@drawbu drawbu force-pushed the clement/push-zqvklkyqromu branch from a7d5edc to 0705992 Compare October 16, 2025 20:33
@drawbu
Copy link
Member Author

drawbu commented Oct 18, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 452677
Commit: 070599299c38343820616f1a3e8c9a9f0af0bd00 (subsequent changes)
Merge: eb59485e35cc56bbc66eb40dc357813643ac0fa3

Logs: https://github.com/drawbu/nixpkgs-review-gha/actions/runs/18621864989


x86_64-linux

❌ 1 package failed to build:
  • icesl
✅ 7 packages built:
  • eigen2
  • luabind
  • luabind_luajit
  • osmscout-server
  • osrm-backend
  • soi
  • tests.pkgs-lib

aarch64-linux

✅ 7 packages built:
  • eigen2
  • luabind
  • luabind_luajit
  • osmscout-server
  • osrm-backend
  • soi
  • tests.pkgs-lib

x86_64-darwin (sandbox = true)

❌ 1 package failed to build:
  • osrm-backend
✅ 4 packages built:
  • eigen2
  • luabind
  • luabind_luajit
  • tests.pkgs-lib

Error logs: `x86_64-darwin`
osrm-backend
  Error running link command: no such file or directorymake[2]: ***
  [CMakeFiles/foo.dir/build.make:104: libfoo.a] Error 2

make[2]: Leaving directory
'/nix/build/nix-34648-2394591766/source/build/CMakeFiles/_CMakeLTOTest-CXX/bin'

make[1]: *** [CMakeFiles/Makefile2:93: CMakeFiles/foo.dir/all] Error 2

make[1]: Leaving directory
'/nix/build/nix-34648-2394591766/source/build/CMakeFiles/_CMakeLTOTest-CXX/bin'

make: *** [Makefile:94: all] Error 2

>

-- Configuring incomplete, errors occurred!


aarch64-darwin (sandbox = true)

❌ 1 package failed to build:
  • osrm-backend
✅ 4 packages built:
  • eigen2
  • luabind
  • luabind_luajit
  • tests.pkgs-lib

Error logs: `aarch64-darwin`
osrm-backend
  Error running link command: no such file or directorymake[2]: ***
  [CMakeFiles/foo.dir/build.make:104: libfoo.a] Error 2

make[2]: Leaving directory
'/nix/build/nix-8115-3502455502/source/build/CMakeFiles/_CMakeLTOTest-CXX/bin'

make[1]: *** [CMakeFiles/Makefile2:93: CMakeFiles/foo.dir/all] Error 2

make[1]: Leaving directory
'/nix/build/nix-8115-3502455502/source/build/CMakeFiles/_CMakeLTOTest-CXX/bin'

make: *** [Makefile:94: all] Error 2

>

-- Configuring incomplete, errors occurred!

@7c6f434c 7c6f434c added this pull request to the merge queue Oct 21, 2025
Merged via the queue into NixOS:master with commit 5e93de3 Oct 21, 2025
25 checks passed
@drawbu drawbu deleted the clement/push-zqvklkyqromu branch October 21, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: games Gaming on NixOS 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants