!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
126 Servers

Load older messages


SenderMessageTime
12 Feb 2026
@opna2608:matrix.orgPuna(same error on nixpkgs master FWIW)12:45:51
@opna2608:matrix.orgPuna i think the issue is that we fix up the target triplet for clang by passing -target powerpc64-unknown-linux-gnu, but don't have a powerpc64-unknown-linux-gnu-ld in clangStdenv.cc.bintools. only a powerpc64-unknown-linux-gnuabielfv1-ldguh 13:29:26
@opna2608:matrix.orgPuna -fuse-ld=<full path to corresponding bintools wrapper>/bin/<original target>-ld works… anything against throwing this into the General clang support section somehow? 13:44:39
@opna2608:matrix.orgPuna * -fuse-ld=<full path to corresponding bintools wrapper>/bin/<original target triplet>-ld works… anything against throwing this into the General clang support section somehow? 13:44:49
@opna2608:matrix.orgPuna"if doing cross cross and <new target triplet>-ld doesn't exist, add the above flag"13:45:26
@opna2608:matrix.orgPunaor it might be time to look deeper into clang and figure out how to make it just accept our full triplets like GCC does, instead of requiring all this song-and-dance. but big scary code base…13:46:24
@grizzlt:matrix.orgGrizzlT joined the room.20:33:44
13 Feb 2026
@hoplophfeil:matrix.orghoplopf joined the room.10:20:07
@opna2608:matrix.orgPuna

so it definitely also links build-grub-mkfont with a freetype for the wrong platform when cross-compiling for other targets, but it only seems to complain when there is a difference in endianness? wack…

gcc -o build-grub-mkfont -I./include -std=gnu99 -fno-common  -DGRUB_FILE=\"util/grub-mkfont.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/  -DGRUB_MKFONT=1 -DGRUB_BUILD=1 -DGRUB_UTIL=1 -DGRUB_BUILD_PROGRAM_NAME=\"build-grub-mkfont\" util/grub-mkfont.c grub-core/unidata.c grub-core/kern/emu/misc.c util/misc.c -I/nix/store/cc1p26vnf53s7rk01hazvi1x6r90rhw8-freetype-aarch64-unknown-linux-gnu-2.13.3-dev/include/freetype2 -L/nix/store/x49s38xdy4h12k0ynrfh5z6xv9qhppjb-freetype-aarch64-unknown-linux-gnu-2.13.3/lib -lfreetype
[...]
./build-grub-mkfont -o unicode.pf2 /nix/store/6d4rjzwgsh8vlr8pmzikxzlm5jrnd4lc-unifont-aarch64-unknown-linux-gnu-16.0.03/share/fonts/unifont.pcf.gz || (rm -f unicode.pf2; exit 1)
14:35:11
@opna2608:matrix.orgPunahttps://github.com/NixOS/nixpkgs/pull/49012814:49:00
@stas:mainframe.lvStasI hope to learn more about nix by osmosis just by being in these channels :)17:46:17
23 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".12:31:03
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".12:31:03
@grahamc:nixos.org@grahamc:nixos.org invited @qyliss:fairydust.spaceAlyssa Ross.12:31:18
@qyliss:fairydust.spaceAlyssa Ross joined the room.13:21:04
@symphorien:xlumurb.eusymphorien joined the room.13:29:22
@joe:monoid.aljoe joined the room.13:29:32
@cleverca22:matrix.orgcleverca22 joined the room.13:29:44
@andi:kack.itandi- joined the room.13:36:08
@sternenseemann:systemli.orgsterni joined the room.13:39:12
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.14:52:21
@milan:petabyte.devMilan (they/them) 🏳️‍⚧️ joined the room.14:52:24
@thefloweringash:matrix.orgthefloweringash joined the room.14:52:43
@milan:petabyte.devMilan (they/them) 🏳️‍⚧️ changed their profile picture.18:30:44
@maljub01:matrix.orgmaljub01 joined the room.20:05:19
@colemickens:matrix.orgcolemickens 🏳️‍🌈 joined the room.21:50:09
24 May 2021
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.03:05:08
@rajivr:matrix.orgrajivr joined the room.03:35:42
@kunrooted:matrix.orgkunrooted joined the room.05:17:10
@aaronjanse:matrix.orgaaronjanse joined the room.07:04:03

Show newer messages


Back to Room ListRoom Version: 6