| 20 Sep 2021 |
Alyssa Ross | Has 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/files | 15:41:11 |
Alyssa Ross | cc sternenseemann Ericson2314 | 15:41:15 |
John Ericson | I do not know | 15:45:46 |
John Ericson | maybe after gccNg I will know more about these things :/ | 15:45:59 |
Alyssa Ross | I've hit this sort of issue twice today | 15:46:24 |
Alyssa Ross | the first package also offered a CMake build so I just switched it to CMake | 15:46:33 |
John Ericson | i have no yet had to learn just how libtool is so crazy yet | 15:48:08 |
John Ericson | * i have no yet had to learn just how libtool is so crazy | 15:48:13 |
Alyssa Ross | tbh I think this might be a problem we introduce in our own libtool modifications | 15:51:46 |
Alyssa Ross | Hmm, I was sure we modified libtool to make it use absolute paths, but I can't find it now | 15:55:02 |
Alyssa Ross | oh no I'm thinking of gobject-introspection | 15:55:22 |
John Ericson | the other fun one :) | 15:58:34 |
Rick (Mindavi) | Still waiting on upstream to review the patches... | 16:01:24 |
Alyssa Ross | libtool is my second least favourite thing to debug after cmake | 16:44:19 |
Alyssa Ross | if a cmake-based package doesn't cross-compile i usually just give up | 16:44:47 |
Rick (Mindavi) | CMake doesn't really have a concept for mixed arch compilation | 16:52:30 |
Rick (Mindavi) | Which is not great :( | 16:52:39 |
siraben | { nixpkgs ? <nixpkgs>
, pkgs ? (import nixpkgs {}).pkgsCross.arm-embedded
}:
pkgs.callPackage ({ mkShell, gnumake, buildPackages }: mkShell {
depsBuildBuild = [ buildPackages.gcc ];
nativeBuildInputs = [ gnumake ];
}) {}
| 17:11:48 |
siraben | on macOS I don't seem to see the native gcc in the shell, what am I doing wrong? | 17:12:04 |
siraben | which gcc returns /usr/bin/gcc which is impure | 17:12:13 |
symphorien | Try $CC | 17:15:15 |
symphorien | There is no unorefixed gcc in a cross shell | 17:15:39 |
siraben | I get the cross-compiler | 17:15:49 |
symphorien | * There is no unprefixed gcc in a cross shell | 17:15:56 |
symphorien | Ah sorry I had not paid attention to buildPackages.gcc | 17:16:45 |
siraben | 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 | Hm, calling as uses /Users/siraben/.nix-profile/bin/as which is also impure | 17:19:59 |
symphorien | Well everything that is not shadowed by the shell is impure. Try --pure | 17:23:03 |
siraben | symphorien: yeah, then those commands don't work anymore | 18:10:12 |
Rick (Mindavi) | Maybe they're in the env with some variable? | 18:12:02 |