!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

901 Members
184 Servers

Load older messages


SenderMessageTime
7 Oct 2024
@memegames99:matrix.org@memegames99:matrix.org removed their profile picture.00:05:44
@memegames99:matrix.org@memegames99:matrix.org removed their display name memegames99.00:05:53
@memegames99:matrix.org@memegames99:matrix.org left the room.00:06:13
@lehmanator:tchncs.deSam Lehman changed their profile picture.14:24:10
@kurogeek:matrix.orgkurogeek set a profile picture.15:08:55
@kurogeek:matrix.orgkurogeek changed their profile picture.15:11:00
10 Oct 2024
@p4cmanus3r:matrix.orgp4cmanus3r joined the room.13:24:15
12 Oct 2024
@illegitimate-egg:matrix.org@illegitimate-egg:matrix.org changed their profile picture.14:10:21
@steeringwheelrules:tchncs.de@steeringwheelrules:tchncs.de joined the room.22:45:58
13 Oct 2024
@rfvizarra:matrix.orgrfvizarra joined the room.18:36:59
15 Oct 2024
@pyrox:pyrox.devPyrox [Fox/It/She] changed their display name from Pyrox [ It/She/They/Xem ] to Pyrox [Fox/It/She].02:32:50
@pyrox:pyrox.devPyrox [Fox/It/She] left the room.02:33:59
16 Oct 2024
@akshaykarle:matrix.orgakshaykarle joined the room.09:57:45
@hive:the-apothecary.club👉@crystallinefire:chat.solarpunk.moe changed their profile picture.20:04:47
17 Oct 2024
@phaitonican:matrix.org@phaitonican:matrix.org joined the room.09:24:25
@phaitonican:matrix.org@phaitonican:matrix.orghelloo09:25:03
@phaitonican:matrix.org@phaitonican:matrix.orgi have this flake: https://github.com/phaitonican/orangepi5b-flake09:25:12
@phaitonican:matrix.org@phaitonican:matrix.org

to cross compile nixos. it give me this error:

error: builder for '/nix/store/z10jarpf9vnq5fx8d55zzr18xf0c4zbk-orangepi5-sd-image.drv' failed with exit code 1;       
last 1 log lines:
       > error: executing '/nix/store/wkxn0skvsxqgx73k09aw1nsya8s6gc3f-bash-aarch64-unknown-linux-gnu-5.2p32/bin/sh': Exec format error
       For full logs, run 'nix log /nix/store/z10jarpf9vnq5fx8d55zzr18xf0c4zbk-orangepi5-sd-image.drv'.

somebody help why ?

09:27:05
@elikoga:matrix.orgelikoga

It seems to me like the build process is trying to execute an arm binary on the x86 build system, which doesn't work.

You could activate binfmt emulation for arm, and try again, without or with the cross compilation depending on how you want to proceed.

09:28:47
@phaitonican:matrix.org@phaitonican:matrix.orghm yea09:29:09
@phaitonican:matrix.org@phaitonican:matrix.orgthing is i compiled the whole thing09:29:21
@elikoga:matrix.orgelikogahttps://search.nixos.org/options?channel=24.05&show=boot.binfmt.emulatedSystems&from=0&size=50&sort=relevance&type=packages&query=Binfmt09:29:22
@phaitonican:matrix.org@phaitonican:matrix.orgif i use binfmt all goes away?09:29:32
@elikoga:matrix.orgelikoga

If you use binfmt you are able to use the native compilation tools

But since your build fails only for the sd card, it could be that only that step is not maintained correctly.

09:30:23
@phaitonican:matrix.org@phaitonican:matrix.orgyes i think so too09:31:19
@phaitonican:matrix.org@phaitonican:matrix.org it tries to run "${nixpkgs}/nixos/lib/make-disk-image.nix" as aarch64 09:34:11
@phaitonican:matrix.org@phaitonican:matrix.org because of the top level nixpkgs.crossSystem.config = "aarch64-unknown-linux-gnu"; 09:34:43
@phaitonican:matrix.org@phaitonican:matrix.orgoh nevermind now i got it09:38:41
@phaitonican:matrix.org@phaitonican:matrix.orgthanks09:38:43
@phaitonican:matrix.org@phaitonican:matrix.org(its other way around)09:38:53

Show newer messages


Back to Room ListRoom Version: 6