| 2 Aug 2025 |
@aloisw:julia0815.de | I missed the one usage in the cargo-tauri hook, which I guess is going to be REALLY annoying to fix because it breaks with even weirder errors. | 09:55:37 |
@aloisw:julia0815.de | This is targetPlatform abuse right https://github.com/NixOS/nixpkgs/blob/37a4fc0bb6425e8f0c577604bdcdb8ddb2873fa7/pkgs/development/libraries/gobject-introspection/default.nix#L163 ? | 09:58:36 |
@aloisw:julia0815.de | error: Package ‘gobject-introspection-1.84.0’ in /home/aloisw/Verschiedenes/nixpkgs/pkgs/development/libraries/gobject-introspection/default.nix:181 is not available on the requested hostPlatform hm still errors. | 09:59:49 |
@aloisw:julia0815.de | Ah that's the Python issue. At least not a third one. | 10:16:45 |
emily | In reply to @aloisw:julia0815.de This is targetPlatform abuse right https://github.com/NixOS/nixpkgs/blob/37a4fc0bb6425e8f0c577604bdcdb8ddb2873fa7/pkgs/development/libraries/gobject-introspection/default.nix#L163 ? it may not be. gobject-introspection is a cursed compiler sorta | 12:03:14 |
emily | I know it's very painful for cross | 12:03:23 |
emily | feels beyond my pay grade to say whether it's correct or not | 12:03:37 |
Alyssa Ross | Redacted or Malformed Event | 12:05:22 |
@aloisw:julia0815.de | buildPackages.gobject-introspection in a x86_64-linux -> i686-linux cross build says that it's x86_64, so targetPlatform abuse it is. | 12:33:26 |
@aloisw:julia0815.de | Yuck, that wrapper though… | 12:51:09 |
@aloisw:julia0815.de | I think I'm not touching the tauri thing. | 12:51:35 |
@aloisw:julia0815.de | I think it's correct anyway after all due to being in nativeBuildInputs. | 12:57:10 |
| Olisnot joined the room. | 13:57:22 |
emily | oh I missed that the thing was in the checks. | 13:58:07 |
emily | but those don't run for cross anyway | 13:58:11 |
| Olisnot set a profile picture. | 13:59:41 |
@aloisw:julia0815.de | It will still break eval in things like pkgsStatic.buildPackages. | 13:59:54 |
| 3 Aug 2025 |
| ryo joined the room. | 06:06:26 |
| 4 Aug 2025 |
| @diniamo:matrix.org left the room. | 06:06:51 |
| entro joined the room. | 12:29:05 |
kjeremy | I'm struggling a little with cross-compilation. If I import nixpkgs with { system = "x86_64-linux"; crossSystem = lib.systems.examples.aarch64-multiplatform; }; then my my rust project ends up running rustc under qemu. Is there a way to get it to run natively and do a cross build? | 13:34:39 |
dramforever | we need more information ... do you have a more complete example? | 13:53:28 |
Alyssa Ross | that sounds like you're using rustc somewhere where you should be using buildPackages.rustc | 13:54:11 |
emily | the best way to ensure you're doing cross right is to disable binfmt | 14:37:04 |
emily | (although Nixpkgs will sometimes QEMU on your behalf regardless) | 14:37:13 |
kjeremy | Thank you. I wish I could share this but it's an overlay based on nix-ros-overlay with some giant overrides buried in our repo so it's not easily shareable | 14:39:27 |
kjeremy | and at some point cmake gets invoked which confuses things | 14:40:02 |
kjeremy | Using buildPackages.rustPlatform.cargoSetupHook gets me a little farther and avoids qemu | 15:06:59 |
kjeremy | I'm ending up with something like this:
ros-humble-zenoh-cpp-vendor-aarch64-unknown-linux-gnu> cargo:warning=aarch64-unknown-linux-gnu-gcc: error: unrecognized command line option '-m64' ros-humble-zenoh-cpp-vendor-aarch64-unknown-linux-gnu> ros-humble-zenoh-cpp-vendor-aarch64-unknown-linux-gnu> --- stderr ros-humble-zenoh-cpp-vendor-aarch64-unknown-linux-gnu> ros-humble-zenoh-cpp-vendor-aarch64-unknown-linux-gnu> ros-humble-zenoh-cpp-vendor-aarch64-unknown-linux-gnu> error occurred: Command "aarch64-unknown-linux-gnu-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "include" "-I" "/build/rmw_zenoh-release-release-humble-zenoh_cpp_vendor-0.1.1-1/build/zenoh_c_vendor-prefix/src/zenoh_c_vendor-build/release/target/release/build/ring-224694a13d0c6d7a/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "/build/rmw_zenoh-release-release-humble-zenoh_cpp_vendor-0.1.1-1/build/zenoh_c_vendor-prefix/src/zenoh_c_vendor-build/release/target/release/build/ring-224694a13d0c6d7a/out/fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args aarch64-unknown-linux-gnu-gcc did not execute successfully (status code exit status: 1).
| 16:00:20 |
dramforever | so no -m64 will not possibly work for arm | 16:31:13 |