!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

568 Members
124 Servers

Load older messages


SenderMessageTime
20 Sep 2021
@qyliss:fairydust.spaceAlyssa RossHas anybody ever come across a better solution than this when dealing with the combination of pkgsStatic, C++, and libtool? https://github.com/NixOS/nixpkgs/pull/103270/files15:41:11
@qyliss:fairydust.spaceAlyssa Rosscc sternenseemann Ericson231415:41:15
@Ericson2314:matrix.orgJohn EricsonI do not know15:45:46
@Ericson2314:matrix.orgJohn Ericsonmaybe after gccNg I will know more about these things :/15:45:59
@qyliss:fairydust.spaceAlyssa RossI've hit this sort of issue twice today15:46:24
@qyliss:fairydust.spaceAlyssa Rossthe first package also offered a CMake build so I just switched it to CMake15:46:33
@Ericson2314:matrix.orgJohn Ericsoni have no yet had to learn just how libtool is so crazy yet15:48:08
@Ericson2314:matrix.orgJohn Ericson * i have no yet had to learn just how libtool is so crazy15:48:13
@qyliss:fairydust.spaceAlyssa Rosstbh I think this might be a problem we introduce in our own libtool modifications15:51:46
@qyliss:fairydust.spaceAlyssa RossHmm, I was sure we modified libtool to make it use absolute paths, but I can't find it now15:55:02
@qyliss:fairydust.spaceAlyssa Rossoh no I'm thinking of gobject-introspection15:55:22
@Ericson2314:matrix.orgJohn Ericsonthe other fun one :)15:58:34
@rick:matrix.ciphernetics.nlRick (Mindavi)Still waiting on upstream to review the patches...16:01:24
@qyliss:fairydust.spaceAlyssa Rosslibtool is my second least favourite thing to debug after cmake16:44:19
@qyliss:fairydust.spaceAlyssa Rossif a cmake-based package doesn't cross-compile i usually just give up 16:44:47
@rick:matrix.ciphernetics.nlRick (Mindavi)CMake doesn't really have a concept for mixed arch compilation16:52:30
@rick:matrix.ciphernetics.nlRick (Mindavi)Which is not great :(16:52:39
@siraben:matrix.orgsiraben
{ nixpkgs ? <nixpkgs>
, pkgs ? (import nixpkgs {}).pkgsCross.arm-embedded
}:

pkgs.callPackage ({ mkShell, gnumake, buildPackages }: mkShell {
  depsBuildBuild = [ buildPackages.gcc ];
  nativeBuildInputs = [ gnumake ];
}) {}
17:11:48
@siraben:matrix.orgsirabenon macOS I don't seem to see the native gcc in the shell, what am I doing wrong?17:12:04
@siraben:matrix.orgsiraben which gcc returns /usr/bin/gcc which is impure 17:12:13
@symphorien:xlumurb.eusymphorienTry $CC17:15:15
@symphorien:xlumurb.eusymphorienThere is no unorefixed gcc in a cross shell 17:15:39
@siraben:matrix.orgsirabenI get the cross-compiler17:15:49
@symphorien:xlumurb.eusymphorien* There is no unprefixed gcc in a cross shell 17:15:56
@symphorien:xlumurb.eusymphorienAh sorry I had not paid attention to buildPackages.gcc17:16:45
@siraben:matrix.orgsiraben
In reply to @symphorien:xlumurb.eu
There is no unprefixed gcc in a cross shell
how can I obtain this? the makefile I'm using implicitly assumes gcc
17:16:59
@siraben:matrix.orgsiraben Hm, calling as uses /Users/siraben/.nix-profile/bin/as which is also impure 17:19:59
@symphorien:xlumurb.eusymphorienWell everything that is not shadowed by the shell is impure. Try --pure17:23:03
@siraben:matrix.orgsiraben symphorien: yeah, then those commands don't work anymore 18:10:12
@rick:matrix.ciphernetics.nlRick (Mindavi)Maybe they're in the env with some variable?18:12:02

There are no newer messages yet.


Back to Room ListRoom Version: 6