!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

871 Members
181 Servers

Load older messages


SenderMessageTime
17 Oct 2024
@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
@phaitonican:matrix.org@phaitonican:matrix.orgidk... maybe somebody can help :b09:42:59
@phaitonican:matrix.org@phaitonican:matrix.orgall good fixed by using pkgsCross.aarch64-multiplatform; instead of "globally" set it10:33:47
@bendlas:matrix.orgbendlas changed their profile picture.17:37:57
18 Oct 2024
@ihar.hrachyshka:matrix.org@ihar.hrachyshka:matrix.org joined the room.21:24:03
19 Oct 2024
@hive:the-apothecary.clubEVA-01 changed their display name from ion to Li-ion.08:12:23
@jwillikers:matrix.orgjwillikers joined the room.12:07:19
@mwoodpatrickmx:matrix.orgmwoodpatrickmx joined the room.16:54:21
@phaitonican:matrix.org@phaitonican:matrix.org

Hello, I am getting a SSL decryption error trying to use "fetchGit"

error: RPC failed; curl 56 OpenSSL SSL_read: OpenSSL/3.3.2: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0
error: 1576 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

is happen on my orange pi 5 with custom sd image

17:18:21
21 Oct 2024
@kjeremy:matrix.orgkjeremyI've seen that on Windows lately (unrelated to nix) and the solution is https://stackoverflow.com/questions/11941175/git-fetch-pull-clone-hangs-on-receiving-objects14:03:37
@phaitonican:matrix.org@phaitonican:matrix.orgthanks. i workaround for now with fetchGit with shallow=true attribute and extend link with ?shallow=true, because this was a big repo with long history (kernel) and like this it dont download history, but at the end it seems i have internet problems15:41:19
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de changed their display name from (lambda (f l) (format nil "~a ~a")) "Artur" "Manuel" to (artur 'manuel).20:03:53
22 Oct 2024
@zarel_it:matrix.org@zarel_it:matrix.org left the room.09:31:38
@oliver.falvai:oliverfalvai.xyz@oliver.falvai:oliverfalvai.xyz left the room.19:40:20
24 Oct 2024
@jopejoe1:matrix.orgjopejoe1 (4094@39c3) set a profile picture.07:35:22
25 Oct 2024
@lholh:matrix.org@lholh:matrix.org joined the room.03:54:16
@jfquesada:matrix.org@jfquesada:matrix.org joined the room.08:30:41

Show newer messages


Back to Room ListRoom Version: 6