!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

515 Members
113 Servers

Load older messages


SenderMessageTime
21 Aug 2021
@sternenseemann:systemli.orgsterni (he/him)it caught me out once that that actually does native complation20:27:45
@Ericson2314:matrix.orgJohn Ericson doing --arg crossSystem by hand 20:27:49
@sternenseemann:systemli.orgsterni (he/him)makes sense20:28:18
@sternenseemann:systemli.orgsterni (he/him)how did you go about making gcc-unwrapped btw?20:32:19
@Ericson2314:matrix.orgJohn Ericson sterni (he/him): how did I write it? 20:47:29
@Ericson2314:matrix.orgJohn Ericsonlooking a bit a exherbo20:47:37
@Ericson2314:matrix.orgJohn Ericsonbut the basic idea is same as gcc20:47:49
@Ericson2314:matrix.orgJohn Ericson*libgcc20:48:01
@Ericson2314:matrix.orgJohn Ericsonhave to run the outer configure but just need some sutff20:48:09
@Ericson2314:matrix.orgJohn Ericsondisable all the target libraries, and then all good20:48:24
@sternenseemann:systemli.orgsterni (he/him)ah, 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.orgsterni (he/him)like 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.orgsterni (he/him)also 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.orgsterni (he/him)I 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.orgsterni (he/him)were 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 (he/him)

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.orgsterni (he/him)you haven't pushed your working gcc-ng derivation yet though?20:57:49
@sternenseemann:systemli.orgsterni (he/him)i. 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

There are no newer messages yet.


Back to Room ListRoom Version: 6