!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

332 Members
102 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
21 Aug 2023
@trofi:matrix.orgtrofiYes.06:01:18
@trofi:matrix.orgtrofi There is normally no reason to add -fPIC when one builds an executable. There is -fPIE for the equivalent which is a little bit more efficient. 06:02:12
@rhelmot:matrix.orgrhelmothm. I'm a little confused because while compiling the failing derivation (xz) I'm seeing -fPIC in some units but not others06:09:56
@rhelmot:matrix.orgrhelmotI don't see anything related to hardening or pic or pie in that derivation06:11:07
@trofi:matrix.orgtrofi You will not see -fPIC option added by nixpkgs unless you use NIX_DEBUG=. The ones you see are probably added explicitly by autotools/libtool. THat's how everyone else gets correct -fPIC values. 06:14:09
@rhelmot:matrix.orgrhelmotoooooooh06:14:58
@rhelmot:matrix.orgrhelmothow do I set NIX_DEBUG?06:17:22
@trofi:matrix.orgtrofi you can plug it into your derivation as NIX_DEBUG="1"; as another variable, or do an usual .overrideAttrs. 06:20:11
@rhelmot:matrix.orgrhelmotokay, thank you!06:20:45
@rhelmot:matrix.orgrhelmotah shit I see. it's mad about freebsd's libpthread.a06:29:49
23 Aug 2023
@artemis:arty.chatartemisanyone know how i might cross build an armv6 image? (targeting pi zero)11:37:55
@artemis:arty.chatartemistheres a `pkgs.pkgsCross.armv7l-hf-multiplatform` that works for the pi2 but i dont see an armv611:38:17
@linus:schreibt.jetzt@linus:schreibt.jetzt artemis: pkgsCross.raspberryPi is intended to work on all pis AFAIU 11:40:01
@artemis:arty.chatartemisoh i didnt know that existed11:40:13
@artemis:arty.chatartemisill give it a try11:40:23
@linus:schreibt.jetzt@linus:schreibt.jetzt(but aarch64 is preferable on the newer ones that support it)11:40:28
@linus:schreibt.jetzt@linus:schreibt.jetzt(since it has binary cache coverage on native builds)11:40:41
@artemis:arty.chatartemisnaturally11:41:15
@artemis:arty.chatartemispkgsCross.raspberryPi does indeed seem to be downloading an armv6 compiler. cool11:41:50
@artemis:arty.chatartemiswhy is that named raspberryPi instead of something more generic11:42:18
@linus:schreibt.jetzt@linus:schreibt.jetzthistorical reasons, mostly11:47:43
@linus:schreibt.jetzt@linus:schreibt.jetztthere's a raspberrypi "platform" in nixpkgs which also defines things like a kernel defconfig11:47:53
@linus:schreibt.jetzt@linus:schreibt.jetztthere are plans to make pkgsCross more consistent, afaik11:48:22
@artemis:arty.chatartemistangentially to this, can i nix-copy-closure (or whatever i actually want if its not this?) to just like, a mounted partition11:53:33
@linus:schreibt.jetzt@linus:schreibt.jetzt nix copy --to /foo will copy things to /foo/nix/store 11:54:00
@artemis:arty.chatartemissweet ok11:54:06
@linus:schreibt.jetzt@linus:schreibt.jetztusing chroot stuff11:54:15

Show newer messages


Back to Room ListRoom Version: 6