!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

465 Members
Rust111 Servers

Load older messages


SenderMessageTime
9 Sep 2024
@lulu-berlin:matrix.orgLulu joined the room.20:31:33
10 Sep 2024
@adis:blad.is@adis:blad.is left the room.09:42:36
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~A lost their email!" u)) "Artur Manuel" to Artur Manuel (on break).17:32:11
@artur:glasgow.social(artur 'manuel) changed their profile picture.17:34:33
@artur:glasgow.social(artur 'manuel) changed their display name from Artur Manuel (on break) to (lambda (u) (format nil "~A is not using Matrix right now." u)) "Artur Manuel".17:36:12
@creepinson:matrix.orgTheo Paris Am I correct that the only way to patch rustc outside of nixpkgs is to copy pkgs/development/compilers/rust/1_80.nix outside of nixpkgs to override rustcPatches? 20:20:12
@creepinson:matrix.orgTheo Paris * Am I correct that the only way to patch rustc outside of nixpkgs is to copy pkgs/development/compilers/rust/1_80.nix toverride rustcPatches? 20:20:20
@creepinson:matrix.orgTheo Paris * Am I correct that the only way to patch rustc outside of nixpkgs is to copy pkgs/development/compilers/rust/1_80.nix to override rustcPatches? 20:20:29
@qyliss:fairydust.spaceAlyssa RossYou should be able to overrideAttrs the unwrapped Rust compiler20:21:28
@creepinson:matrix.orgTheo ParisHow do I override the unwrapped rust compiler though? rustc-unwrapped doesn't seem to exist 20:22:10
@qyliss:fairydust.spaceAlyssa Ross

wrapRustc (rustc.unwrapped.overrideAttrs ({ patches ? [], ... }: { patches = patches ++ [ ./my.patch ]; }))

20:22:11
@creepinson:matrix.orgTheo ParisOh20:22:19
11 Sep 2024
@kiike:matrix.orgEnric Morales i had problems cross-compiling for thumb8.main on nixpkgs. From the rustc docs, the bootstrap/configure script is effectively just a convenience layer for the true configuration resource: the config.toml. I went ahead and adapted rustc.nix so that, instead of relying on configure, we generate a config.toml from a rustc config attrset. Initially, i did that just to solve my issue, and learn a bit more on the build process, but I think this might be useful, as it would be less finicky, powerful, and overridable 07:58:23
@kiike:matrix.orgEnric Moraleswould that be desirable at all?07:58:34
@kiike:matrix.orgEnric Morales * i had problems cross-compiling for thumb8.main on nixpkgs, as the bootstrap process would always error out. From the rustc docs, the bootstrap/configure script is effectively just a convenience layer for the true configuration resource: the config.toml. I went ahead and adapted rustc.nix so that, instead of relying on configure, we generate a config.toml from a rustc config attrset. Initially, i did that just to solve my issue, and learn a bit more on the build process, but I think this might be useful, as it would be less finicky, powerful, and overridable 07:59:25
@kiike:matrix.orgEnric Morales * i had problems cross-compiling for thumb8.main on nixpkgs, as the bootstrap process would always error out due to the how the configureFlags were being processed in configure. From the rustc docs, the bootstrap/configure script is effectively just a convenience layer for the true configuration resource: the config.toml. I went ahead and adapted rustc.nix so that, instead of relying on configure, we generate a config.toml from a rustc config attrset. Initially, i did that just to solve my issue, and learn a bit more on the build process, but I think this might be useful, as it would be less finicky, powerful, and overridable 08:17:11
@kiike:matrix.orgEnric Morales it would be in line of what gentoo or arch do 08:21:31
@kiike:matrix.orgEnric Morales * it would be in line of what gentoo or arch or debian do (openSUSE uses configure, just like nixpkgs ATM 08:34:57
@kiike:matrix.orgEnric Morales * it would be in line of what gentoo, arch or debian do (openSUSE uses configure, just like nixpkgs ATM 08:35:13
@niko:conduit.rsnyanbinary left the room.15:28:58
12 Sep 2024
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~A is not using Matrix right now." u)) "Artur Manuel" to (lambda (u) (format nil "~a ~a")) "Artur" "Manuel".01:48:30
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~a ~a")) "Artur" "Manuel" to (lambda (f l) (format nil "~a ~a")) "Artur" "Manuel".01:55:37
@qyliss:fairydust.spaceAlyssa RossI think there's probably not much to be gained from changing how it works at this point? AIUI it's possible to set every option in config.toml via configure.08:17:16
@qyliss:fairydust.spaceAlyssa Rossso it shouldn't be any more powerful, and configureFlags should be perfectly overriding08:17:41
@qyliss:fairydust.spaceAlyssa Ross * 08:17:49
@emilazy:matrix.orgemilymight be nice to have a more structured interface? but also might not matter08:57:54
@miangraham:matrix.org@miangraham:matrix.org left the room.12:19:03
@paparodeo:matrix.orgreno joined the room.17:05:56
13 Sep 2024
@paparodeo:matrix.orgreno i'm trying to build a rust program but getting a link error note: /nix/store/f3k0rdhcd2cx57phx755c2xixgifw5m5-binutils-2.42/bin/ld: /nix/store/n06b8gzyhwn9acggacnzl4yypccn77wp-gcc-13.3.0-lib/lib/libgcc_s.so.1: undefined reference to _dl_find_object@GLIBC_2.35' _dl_find_objectis defined in-lcwhich is in the link flags. build works fine on aarch64 darwin and x64 linux but fails on aarch64 linux. Tried to add-lcinNIX_LDFLAGSandNIX_CFLAGS_COMPILEbut am still getting same error. i assume it might have something to do with-lgcc_scoming before-lc` on the command line but not sure how re-order flags to try. 15:06:32
@paparodeo:matrix.orgreno * i'm trying to build a rust program but getting a link error note: /nix/store/f3k0rdhcd2cx57phx755c2xixgifw5m5-binutils-2.42/bin/ld: /nix/store/n06b8gzyhwn9acggacnzl4yypccn77wp-gcc-13.3.0-lib/lib/libgcc_s.so.1: undefined reference to _dl_find_object@GLIBC_2.35' _dl_find_objectis defined in-lc which is in the link flags. build works fine on aarch64 darwin and x64 linux but fails on aarch64 linux. Tried to add-lcinNIX_LDFLAGSandNIX_CFLAGS_COMPILEbut am still getting same error. i assume it might have something to do with-lgcc_scoming before-lc` on the command line but not sure how re-order flags to try. 15:07:02

Show newer messages


Back to Room ListRoom Version: 6