!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
128 Servers

Load older messages


SenderMessageTime
30 Sep 2021
@Ericson2314:matrix.orgJohn Ericsonlike yocto does it02:22:04
@Ericson2314:matrix.orgJohn Ericsonthe gnome reputation about not givinga fuck about outsider's patches sadly seems pretty true though02:22:31
@Ericson2314:matrix.orgJohn Ericsonbut yeah could just take the second commit and do a patch02:23:00
@Ericson2314:matrix.orgJohn Ericsonthe whole thing is so shitty though02:23:13
@colemickens:matrix.orgcolemickens 🏳️‍🌈That's too bad, I certainly understanding wanting to do it in the right place, for more than one reason.02:23:19
@Ericson2314:matrix.orgJohn Ericsonit's fundamentally a terrible design02:23:22
@Ericson2314:matrix.orgJohn Ericsonand relying on binfmts as it does can go wrong, though hopefully not too bad02:23:43
@Ericson2314:matrix.orgJohn Ericson colemickens 🏳️‍🌈: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/224/diffs that is the second PR 02:27:19
@Ericson2314:matrix.orgJohn Ericsonit's actually pretty simple semantically02:27:28
@Ericson2314:matrix.orgJohn Ericsonjust moving some things and reindenting some things02:27:33
2 Oct 2021
@cdepillabout:matrix.orgcdepillabout joined the room.04:48:39
4 Oct 2021
@siraben:matrix.orgsiraben What should I change /usr/lib/gcc/arm-none-eabi/6.3.1/libgcc.a to in a Makefile? 03:16:41
@siraben:matrix.orgsirabenLooks like the program needs to link against a static cross-compiled libgcc03:16:54
@siraben:matrix.orgsiraben GCC_LIBR = "${pkgs.libgcc}/lib/libgcc.a"; fixed it 04:11:47
@siraben:matrix.orgsiraben where pkgs ? (import nixpkgs {}).pkgsCross.arm-embedded 04:12:01
@trofi:matrix.orgtrofi $gcc -print-file-name=libgcc.a might also get the path. Or use LDFLAGS += -Bstatic -lgcc -Bdynamic if it's used just for linking. (both untested) 06:34:37
@trofi:matrix.orgtrofiideally -lgcc should be an internal detail of the compiler.06:35:37
@trofi:matrix.orgtrofiAlso, perhaps there is no libgcc.so at all (libgcc_s.so should be an equivalent). Thus for LDFLAGS -lgcc should be enough.06:37:06
@sternenseemann:systemli.orgsterni we don't have ready-made solutions for compiler bootstrapping like lib.makeScopeWithSplicing, right? 14:58:09
@sternenseemann:systemli.orgsterniI think at some point we'll want to make a similar abstraction for staged package sets which contain the compiler and run time libraries14:58:51
@sternenseemann:systemli.orgsterniideally this could also work for the stdenv boostrap / reuse parts of that?14:59:18
6 Oct 2021
@rosariopulella:matrix.orgRosario Pulella changed their display name from rosariopulella to Rosuavio.10:38:41
@rosariopulella:matrix.orgRosario Pulella changed their display name from Rosuavio to Rosario Pulella.10:45:04
@kamadorueda:matrix.orgkamadorueda joined the room.22:33:48
7 Oct 2021
@sternenseemann:systemli.orgsterni John Ericson: seems like we need to bring back the old school clangStdenv which was using lld regardless of hostPlatform.linker 16:32:48
@sternenseemann:systemli.orgsternisince building any C++ just fails hillariously when linking using ld.bfd16:33:06
@sternenseemann:systemli.orgsternithe question just is what to call it16:33:13
@sternenseemann:systemli.orgsterniI suspect libcxxStdenv should always have lld, but we want libstdcxx + lld as well probably16:33:52
@sternenseemann:systemli.orgsterniplain clangStdenv with ld.bfd is fine more or less since it works fine for C16:34:05
8 Oct 2021
@jcie74:matrix.orgpie_(xposting from main)00:48:22

Show newer messages


Back to Room ListRoom Version: 6