!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

515 Members
114 Servers

Load older messages


SenderMessageTime
30 Sep 2021
@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
@jcie74:matrix.orgpie_does anyone uh know how i can tell libstdc++ to compile with more debug symbols? Id like to figure out if it will be easier to figure out what I want to figure out by looking at stuff with gdb or trying to read the source... doing that by itself might not be that hard (if i could find where in the guts of gcc it is...but i wouldnt know how to do to do the stdenv override either00:48:23
@trofi:matrix.orgtrofi libstdc++ is a part of gcc package. as opposed to glibc it does not have separateDebugInfo = true;. Perhaps it should? 06:34:20
@trofi:matrix.orgtrofinote that libstdc++ contains a small bit of support around header-mostly STL. maybe it will be enough to add debugging symbols into it's user? (library or final executable)06:35:43
@jcie74:matrix.orgpie_ trofi: so i should recompile gcc with debug symbols? (or lower optimization?) 16:47:03
@jcie74:matrix.orgpie_specifically my problem is that i want to inspect the internals of a basic_streambuf object in gdb16:47:33
@jcie74:matrix.orgpie_and gdb says <incomplete type>16:47:38
@siraben:matrix.orgsirabenDoes Nix support Canadian cross-compilation?17:00:32
@qyliss:fairydust.spaceAlyssa Rosshow's that different to the normal case?17:20:04
@trofi:matrix.orgtrofi pie_: don't know yet, sorry. But plan to find out for sure in following weeks :) 17:59:00

Show newer messages


Back to Room ListRoom Version: 6