!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1081 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org164 Servers

Load older messages


SenderMessageTime
4 Jul 2025
@weethet:catgirl.cloudWeetHetIt built fine08:08:02
@weethet:catgirl.cloudWeetHet
nix-repl> lib.version
"25.11pre823951.d31a91c9b3be"
08:08:48
@megmug:matrix.orgmegmugSorry, i think i wasn't precise enough. The nix env works. But building the project results in this linker error08:09:09
@weethet:catgirl.cloudWeetHetCould you share the error as text08:09:44
@weethet:catgirl.cloudWeetHetMy matrix doesn't want to download the file for some reason08:09:56
@weethet:catgirl.cloudWeetHetAn error occurred while downloading this file M_UNKNOWN: MatrixError: [500] Unexpected Error08:10:06
@megmug:matrix.orgmegmugUndefined symbols for architecture arm64: "REPLDriver<CloudClient>::add_action(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char>>, std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char>>, void (CloudClient::)(std::1::basic_string<char, std::1::char_traits<char>, std::__1::allocator<char>>))", referenced from: CloudClient::run(int) in libpir_app_lib.a(cloud.cxx.o) "REPLDriver<CloudClient>::run()", referenced from: CloudClient::run(int) in libpir_app_lib.a(cloud.cxx.o) "REPLDriver<CloudClient>::REPLDriver(CloudClient)", referenced from: CloudClient::run(int) in libpir_app_lib.a(cloud.cxx.o) ld: symbol(s) not found for architecture arm64 clang-16: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [CMakeFiles/pir_cloud.dir/build.make:111: pir_cloud] Fehler 1 make[1]: [CMakeFiles/Makefile2:961: CMakeFiles/pir_cloud.dir/all] Fehler 2 make: *** [Makefile:146: all] Fehler 2 Some of it is german: Fehler = Error08:10:42
@megmug:matrix.orgmegmug(This, only on MacOS - on linux, it works, no linker error)08:11:26
@megmug:matrix.orgmegmugBut, we have only x86 linux machines to test08:12:04
@weethet:catgirl.cloudWeetHet Is REPLDriver<CloudClient> your type? 08:12:07
@weethet:catgirl.cloudWeetHetOr library provided?08:12:13
@megmug:matrix.orgmegmugso ARM + linux, don't know08:12:15
@weethet:catgirl.cloudWeetHetBecause if it's your type it's likely just C++ template linking shenanigans working differently between different compilers and I won't be of much help here08:13:35
@weethet:catgirl.cloudWeetHetWithout seeing the code at least08:13:42
@megmug:matrix.orgmegmugIt's a type from one of the header files that is part of the project08:14:10
@weethet:catgirl.cloudWeetHetWell then it probably has nothing to do with nix and everything to do with C++08:14:36
@megmug:matrix.orgmegmugI can definitely provide that if its of any use08:15:15
@weethet:catgirl.cloudWeetHetI'm not gonna debug C++ linking for you08:15:34
@megmug:matrix.orgmegmugMeaning, it is not possible to "fix" or circumvent using the nix shell?08:15:48
@weethet:catgirl.cloudWeetHetIt's not a nix issue08:15:55
@weethet:catgirl.cloudWeetHetIt's an issue with how your project is built08:16:10
@weethet:catgirl.cloudWeetHetOr written idk08:16:14
@megmug:matrix.orgmegmugunderstandable08:16:23
@weethet:catgirl.cloudWeetHetIt just so happens to work out on linux08:16:25
@weethet:catgirl.cloudWeetHetThat's my best guess08:17:40
@megmug:matrix.orgmegmugOkay, thank you for having a look at it08:18:10
@weethet:catgirl.cloudWeetHet You can go over the .o files using nm and look for the mangled REPLDriver<CloudClient>::add_action 08:18:34
@k900:0upti.meK900My guess would be that it's instantiated in a .cpp file instead of a header08:19:17
@k900:0upti.meK900So it's not linked correctly08:19:22
@weethet:catgirl.cloudWeetHetYep, probably that08:19:34

Show newer messages


Back to Room ListRoom Version: 6