| 8 May 2025 |
K900 | lib.optionalString stdenv.hostPlatform.isx86 "-msse4.2" | 19:18:21 |
| 9 May 2025 |
@curid:matrix.org | let
# latest unstable
pkgs = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/b3582c75c7f21ce0b429898980eddbbf05c68e55.tar.gz")
{
crossSystem = "aarch64-unknown-linux-gnu";
}).__splicedPackages;
in pkgs.mkShell {
buildInputs = [ pkgs.cpuid ];
}
src/x86/cpuid.c:138:10: fatal error: cpuid.h: No such file or directory
138 | #include <cpuid.h>
It seems to build x86 specific files https://github.com/pytorch/cpuinfo/blob/main/CMakeLists.txt
| 16:15:48 |
Tristan Ross |
- Use
packages
- Add
cmake (& optionally ninja) to packages
| 16:24:51 |
@curid:matrix.org | I'm stupid, the cpuid package has nothing to do with cpuid.h | 16:37:11 |
@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 | How can I tell mkDerivation that the CMakeLists.txt isn't in the root dir? https://github.com/google/gemmlowp/tree/master/contrib | 17:16:18 |
@curid:matrix.org | I'd ask in the main room if I could join it | 17:16:23 |
K900 | sourceRoot | 17:16:35 |
K900 | Also invited to the main room | 17:16:50 |
| 11 May 2025 |
@curid:matrix.org | is cmake message(${CMAKE_SYSTEM_PROCESSOR}) suppose to print x86_64? | 08:04:19 |
@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 |