!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

539 Members
111 Servers

Load older messages


SenderMessageTime
25 Sep 2025
@rosscomputerguy:matrix.orgTristan RossCheck the cmake flags15:48:42
@matthewcroughan:defenestrate.itmatthewcroughan
rg LLD | rg -i cmake
CMakeLists.txt:    set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
CMakeLists.txt:    ${LLD_INCLUDE_DIRS}
CMakeLists.txt:    ${LLD_LIBRARIES}
cmake/Findlld.cmake:# LLD_FOUND
cmake/Findlld.cmake:# LLD_INCLUDE_DIRS
cmake/Findlld.cmake:# LLD_LIBRARIES
cmake/Findlld.cmake:find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h
cmake/Findlld.cmake:find_library(LLD_LIBRARY NAMES lld-19.0 lld190 lld NAMES_PER_DIR
cmake/Findlld.cmake:if(EXISTS ${LLD_LIBRARY})
cmake/Findlld.cmake:    set(LLD_LIBRARIES ${LLD_LIBRARY})
cmake/Findlld.cmake:    macro(FIND_AND_ADD_LLD_LIB _libname_)
cmake/Findlld.cmake:        find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_} NAMES_PER_DIR
cmake/Findlld.cmake:                ${LLD_LIBDIRS}
cmake/Findlld.cmake:        if(LLD_${_prettylibname_}_LIB)
cmake/Findlld.cmake:            set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB})
cmake/Findlld.cmake:    endmacro(FIND_AND_ADD_LLD_LIB)
cmake/Findlld.cmake:    FIND_AND_ADD_LLD_LIB(lldMinGW)
cmake/Findlld.cmake:    FIND_AND_ADD_LLD_LIB(lldELF)
cmake/Findlld.cmake:    FIND_AND_ADD_LLD_LIB(lldCOFF)
cmake/Findlld.cmake:    FIND_AND_ADD_LLD_LIB(lldWasm)
cmake/Findlld.cmake:    FIND_AND_ADD_LLD_LIB(lldMachO)
cmake/Findlld.cmake:    FIND_AND_ADD_LLD_LIB(lldCommon)
cmake/Findlld.cmake:find_package_handle_standard_args(lld DEFAULT_MSG LLD_LIBRARIES LLD_INCLUDE_DIRS)
cmake/Findlld.cmake:mark_as_advanced(LLD_INCLUDE_DIRS LLD_LIBRARIES)
cmake/Findllvm.cmake:    # since on some distros LLD is only available as a static library
15:51:11
@matthewcroughan:defenestrate.itmatthewcroughan
zig-aarch64-linux> -- Found lld: /nix/store/0hmg2vivmwb0fq93qannbbgmg7z4b99f-lld-aarch64-unknown-linux-musl-21.1.1-lib/lib/liblldMinGW.a;/nix/store/0hmg2vivmwb0fq93qannbbgmg7z4b99f-lld-aarch64-unknown-linux-musl-21.1.1-lib/lib/liblldELF.a;/nix/store/0hmg2vivmwb0fq93qannbbgmg7z4b99f-lld-aarch64-unknown-linux-musl-21.1.1-lib/lib/liblldCOFF.a;/nix/store/0hmg2vivmwb0fq93qannbbgmg7z4b99f-lld-aarch64-unknown-linux-musl-21.1.1-lib/lib/liblldWasm.a;/nix/store/0hmg2vivmwb0fq93qannbbgmg7z4b99f-lld-aarch64-unknown-linux-musl-21.1.1-lib/lib/liblldMachO.a;/nix/store/0hmg2vivmwb0fq93qannbbgmg7z4b99f-lld-aarch64-unknown-linux-musl-21.1.1-lib/lib/liblldCommon.a (Required is at least version "21")
15:53:55
@matthewcroughan:defenestrate.itmatthewcroughanit finds lld though15:53:57
26 Sep 2025
@outfoxxed:outfoxxed.meoutfoxxed joined the room.03:53:25
@outfoxxed:outfoxxed.meoutfoxxedI'm trying to fix the Qt6 hook so cross compilation works. Could someone explain how to add an env hook that catches only buildInputs? I've tried various versions of addEnvHooks as well as the env* arrays, and the closest I've gotten is envHostTargetHooks, which contains buildInputs but also nativeBuildInputs, which I wouldn't guess would contain those by the name. (I was assuming I wanted envHostHostHooks which contains nativeBuildInputs instead)06:56:00
@dramforever:matrix.orgdramforeverare you cross compiling some zig stuff06:57:48
@dramforever:matrix.orgdramforeverzig cross is busted06:57:54
@outfoxxed:outfoxxed.meoutfoxxed* I'm trying to fix the Qt6 hook so cross compilation works. Could someone explain how to add an env hook that catches only buildInputs? I've tried various versions of addEnvHooks as well as the env* arrays, and the closest I've gotten is envHostTargetHooks, which contains buildInputs but also nativeBuildInputs, which I wouldn't guess would contain those by the name. (I was assuming I wanted envHostHostHooks which contains nativeBuildInputs instead) My goal here is to add only buildInputs to the qt library search paths, because otherwise it will catch libraries pulled in by the build environment as well and link against the wrong thing06:58:53
@dramforever:matrix.orgdramforevercheck out https://github.com/NixOS/nixpkgs/pull/438621 but honestly idk how to fix it further06:59:18
@outfoxxed:outfoxxed.meoutfoxxed I see its $depHostOffset 07:30:21
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @dramforever:matrix.org
check out https://github.com/NixOS/nixpkgs/pull/438621 but honestly idk how to fix it further
Is pkgsLLVM cross? Then yes
11:43:11
@matthewcroughan:defenestrate.itmatthewcroughanOtherwise no, native11:43:29
@matthewcroughan:defenestrate.itmatthewcroughanI tried your branch it fails in the same way yeah11:43:51
@dramforever:matrix.orgdramforeveryes, it is cross in this sense12:33:22
@dramforever:matrix.orgdramforeverwhat are you compiling?12:33:30
@dramforever:matrix.orgdramforeveractually yeah maybe pkgsLLVM is more broken than #438621 could handle...12:34:29
@dramforever:matrix.orgdramforevernope12:43:55
@dramforever:matrix.orgdramforever pkgsLLVM.ncdu works on my branch 12:44:02
@dramforever:matrix.orgdramforeverScreenshot_20250926_204454.png
Download Screenshot_20250926_204454.png
12:45:04
@dramforever:matrix.orgdramforever matthewcroughan: did you do this? i didn't do that to everything on my branch because i didn't feel like fixing everything yet 12:45:20
@matthewcroughan:defenestrate.itmatthewcroughanis ncdu using zig somehow?12:45:22
@dramforever:matrix.orgdramforeveryes, ncdu is zig12:45:32
@matthewcroughan:defenestrate.itmatthewcroughandoes zig itself use its own hooks?12:45:41
@dramforever:matrix.orgdramforeveruses zig_0_1512:45:49
@dramforever:matrix.orgdramforeverit uses zig_0_15.hook, so needs to be either changed to pkgsBuildHost.zig_0_15.hook, or i'd have to splice zig_0_15.hook12:46:21
@matthewcroughan:defenestrate.itmatthewcroughanThere's no way to do that for zig, because zig itself does not use its own hook?12:48:28
@matthewcroughan:defenestrate.itmatthewcroughan dramforever: I asked about it here, so maybe someone inside zig will know https://github.com/ziglang/zig/issues/25357 12:54:30
@matthewcroughan:defenestrate.itmatthewcroughanmm, for some reason audit tests fail on llvm/cross on staging14:23:53
@matthewcroughan:defenestrate.itmatthewcroughan* mm, for some reason audit tests fail on llvm/cross on staging-next14:23:55

Show newer messages


Back to Room ListRoom Version: 6