!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

575 Members
127 Servers

Load older messages


SenderMessageTime
9 Jan 2026
@alexfmpe:matrix.orgalexfmpe * where do platform symbols like __loongarch__ come from?
I hit symbol issues in libffi when trying to build cross-compiling GHC on several platforms
For instance, I'm getting https://github.com/libffi/libffi/blob/2263d6037f8ef6b8d5bef14117ad1a17c32a20b9/src/loongarch64/ffitarget.h#L66
which should mean __loongarch64 isn't defined, but __loongarch__ is or the error on line 39 would trigger first
I see both of them in https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html but don't know where they're supposed to come from
12:08:15
@opna2608:matrix.orgPunathe compiler defines them based on the selected/configured target12:12:39
@opna2608:matrix.orgPunahttps://github.com/gcc-mirror/gcc/blob/9a2402ad31db7507cb63905a8d98ce81769d9835/gcc/config/loongarch/loongarch-c.cc#L50-L5612:13:18
@alexfmpe:matrix.orgalexfmpeso in this case GHC? or the c compiler?12:13:19
@opna2608:matrix.orgPunawell, whichever compiler is processing that file ig12:13:45
@alexfmpe:matrix.orgalexfmpehmm the actual failing command seems to be gcc12:15:39
@alexfmpe:matrix.orgalexfmpeoh wait a second it does hit the line 39 error12:37:06
@alexfmpe:matrix.orgalexfmpeboth errors show up actually12:37:19
@alexfmpe:matrix.orgalexfmpeso maybe ghc isn't configuring gcc properly for loongarch?12:37:33
11 Jan 2026
@ivank:matrix.orgivan joined the room.01:44:54
@lukas:matrix.landgraf.freeddns.orglukas joined the room.03:02:23
@9hp71n:matrix.orgghpzin changed their display name from ghpzin (moved to @ghpzin:envs.net) to ghpzin.15:04:40
@ghpzin:envs.net@ghpzin:envs.net left the room.16:21:10
12 Jan 2026
@grand_master_programmer:matrix.orgjimmie joined the room.08:05:53
@grand_master_programmer:matrix.orgjimmie set a profile picture.08:12:16
@grand_master_programmer:matrix.orgjimmie changed their display name from zigzen to jimmie.08:12:34
@jappie:jappie.devjappie joined the room.17:28:20
13 Jan 2026
@jopejoe1:matrix.orgjopejoe1 (4094@epvpn) changed their display name from jopejoe1 (4094@39c3) to jopejoe1 (4094@epvpn).08:24:56
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

Show newer messages


Back to Room ListRoom Version: 6