!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
130 Servers

Load older messages


SenderMessageTime
21 Aug 2021
@Ericson2314:matrix.orgJohn Ericsondisable all the target libraries, and then all good20:48:24
@sternenseemann:systemli.orgsterniah, was asking since I tried that as well (looking at exherbo), but didn't get that far since seems like nixpkgs specifics still cause a lot of trouble20:48:35
@sternenseemann:systemli.orgsternilike the exherbo thing is much simpler in comparison what we'll end up with most likely20:48:56
@Ericson2314:matrix.orgJohn Ericson the problem ended up being that for some reason include-fixed is being skipped 20:50:22
@Ericson2314:matrix.orgJohn Ericsonin GCC20:50:23
@sternenseemann:systemli.orgsternialso I immediately recognized my own bad habits (not annotating package descriptions and workarounds with enough comments) in there20:50:50
@Ericson2314:matrix.orgJohn Ericson libexec/gcc/$config/include-fixed/limits.h is installed both times 20:50:52
@sternenseemann:systemli.orgsterniI was quite confused by the threaded/non-threaded flag they ahve20:51:01
@Ericson2314:matrix.orgJohn Ericson*both ways20:51:01
@Ericson2314:matrix.orgJohn Ericsonbut only on one default path20:51:08
@sternenseemann:systemli.orgsterniwere seemingly they install some libgcc target if that is enabled?!20:51:17
@Ericson2314:matrix.orgJohn Ericsonweird20:51:56
@Ericson2314:matrix.orgJohn Ericsonyeah i am sticking to just compiler itself in the compiler build20:52:08
@sternenseemann:systemli.orgsterni

wait a minute or is it the other way round?

        if ! option threads; then
            gcc_targets="all-gcc all-target-libgcc"
        fi
20:54:47
@Ericson2314:matrix.orgJohn Ericsonoh huh20:55:42
@Ericson2314:matrix.orgJohn Ericsonweird20:55:43
@sternenseemann:systemli.orgsterniyou haven't pushed your working gcc-ng derivation yet though?20:57:49
@sternenseemann:systemli.orgsternii. e. it currently doesn't compile natively for me20:57:59
@Ericson2314:matrix.orgJohn Ericson sterni (he/him): I think i did? 21:51:46
@Ericson2314:matrix.orgJohn Ericson for libc in gnu musl; nix-build ~/src/nixpkgs-7 --arg crossSystem "{ config = \"aarch64-unknown-linux-$libc\"; useGccNg = true; }" -A gccNgPackages.libgcc; end works for glibc 21:53:09
@Ericson2314:matrix.orgJohn Ericson if you go to #oftc#gcc:matrix.org you can see my convo 21:53:24
@Ericson2314:matrix.orgJohn Ericsonjust figured out the musl problem21:53:32
@Ericson2314:matrix.orgJohn Ericson sterni (he/him): ok pushed the musl fix 22:18:59
@Ericson2314:matrix.orgJohn Ericsonboth libgcc build now22:19:05
@sternenseemann:systemli.orgsterni changed their display name from sterni (he/him) to sterni[m].22:21:29
@sternenseemann:systemli.orgsterni changed their display name from sterni[m] to sterni.22:21:47
@sternenseemann:systemli.orgsternihm okay, I never tried compiling with useGccNg and crossSystem before22:25:21
22 Aug 2021
@Ericson2314:matrix.orgJohn Ericson sterni: alexfmpe: OK updated the status on the PR 05:05:08
@Ericson2314:matrix.orgJohn EricsonNow that we are "into the normal libaries" passed libgcc and libc05:05:29
@Ericson2314:matrix.orgJohn Ericson * Now that we are "into the normal libaries" past libgcc and libc05:05:38

Show newer messages


Back to Room ListRoom Version: 6