!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

564 Members
119 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
9 May 2025
@curid:matrix.org@curid:matrix.orgI'm stupid, the cpuid package has nothing to do with cpuid.h16:37:11
@curid:matrix.org@curid:matrix.org

🤔

       > CMake Error at CMakeLists.txt:71 (MESSAGE):
       >   Unrecognized CMAKE_SYSTEM_PROCESSOR value "x86_64"

https://github.com/google/XNNPACK/blob/659147817805d17c7be2d60bd7bbca7e780f9c82/CMakeLists.txt#L71

18:30:29
10 May 2025
@curid:matrix.org@curid:matrix.orgHow can I tell mkDerivation that the CMakeLists.txt isn't in the root dir? https://github.com/google/gemmlowp/tree/master/contrib17:16:18
@curid:matrix.org@curid:matrix.orgI'd ask in the main room if I could join it17:16:23
@k900:0upti.meK900 sourceRoot 17:16:35
@k900:0upti.meK900Also invited to the main room17:16:50
11 May 2025
@curid:matrix.org@curid:matrix.org is cmake message(${CMAKE_SYSTEM_PROCESSOR}) suppose to print x86_64? 08:04:19
@curid:matrix.org@curid:matrix.org

When cross-compiling, a CMAKE_TOOLCHAIN_FILE should set the CMAKE_SYSTEM_PROCESSOR variable to match target architecture that it specifies (via CMAKE_<LANG>COMPILER and perhaps CMAKE<LANG>_COMPILER_TARGET).

Am I suppose to set it manually?

08:05:35
@curid:matrix.org@curid:matrix.orgRedacted or Malformed Event19:16:46
@curid:matrix.org@curid:matrix.orgI finally managed to get tensorflow lite to cross-compile to aarch64 by using cmake instead of bazel: https://paste.debian.net/1374172/19:17:16
@curid:matrix.org@curid:matrix.orgshould I upstream it?19:33:39
@emilazy:matrix.orgemilyI don't know if you need those patches?19:35:55
@emilazy:matrix.orgemilyI'm pretty sure you can point CMake to the right place with flags19:36:14
@emilazy:matrix.orgemilyor at least inject stuff into the right paths, not sure19:36:25

Show newer messages


Back to Room ListRoom Version: 6