| 6 Aug 2021 |
| ash (it/its) 🏳️⚧️ changed their display name from ash (it/its) to ash (it/its) 🏳️⚧️. | 21:05:12 |
| 7 Aug 2021 |
sterni (he/him) | https://github.com/NixOS/nixpkgs/pull/133016 if anyone wants to look at my uniformed try to get mpdecimal to cross compile to windows | 13:10:58 |
| 9 Aug 2021 |
sterni (he/him) | John Ericson: do you know if it's theoretically possible to statically link gcc itself? (i. e. build pkgsStatic.gcc) | 11:28:27 |
sterni (he/him) | hmm probably not with musl | 11:41:10 |
John Ericson | sterni (he/him): more than theoretically | 15:49:35 |
John Ericson | there is some sort of host-static flag | 15:49:50 |
John Ericson | GCC has | 15:50:01 |
| 10 Aug 2021 |
sterni (he/him) | I guess we should try to get pkgsStatic.gccNgPackages_11.gcc to work as well then at some point | 11:32:50 |
sterni (he/him) | current gcc doesn't compile as part of pkgsStatic | 11:33:02 |
sterni (he/him) | ECL has these cross_config files: https://gitlab.com/embeddable-common-lisp/ecl/-/blob/develop/src/util/android-arm64.cross_config | 21:02:15 |
sterni (he/him) | I'm wondering whether I can guess all these values from our platform set or alternatively determine them programatically somehow? | 21:02:42 |
sterni (he/him) | I'm not sure if it's easy to find out how big long is on a given platform? | 21:03:15 |
sterni (he/him) | although I could try just setting int64_t there or int32_t depending on platform.bits | 21:03:31 |
sterni (he/him) | okay I'd need to find out how big long long is in any case | 21:07:31 |
sterni (he/him) | also stuff like ECL_STACK_DIR seems ominous | 21:07:38 |
| 15 Aug 2021 |
| @jbg:matrix.org joined the room. | 04:41:03 |
@jbg:matrix.org | i'm trying to cross-compile some packages for aarch64-apple-ios. my host system is aarch64-apple-darwin20.6.0 | 04:41:35 |
@jbg:matrix.org | i have this shell.nix:
let pkgs = import <nixpkgs> {
crossSystem = (import <nixpkgs/lib>).systems.examples.iphone64;
};
in
pkgs.callPackage (
{mkShell, pkg-config, glib}:
mkShell {
nativeBuildInputs = [
pkg-config
];
buildInputs = [
# glib
];
}
) {}
| 04:42:05 |
@jbg:matrix.org | this works, and there is a aarch64-apple-ios-clang inside the shell, but it doesn't seem functional (it cannot find stdarg.h or other standard headers) | 04:42:50 |
@jbg:matrix.org | if i uncomment glib (a package that i would like to cross compile), the build fails with
In file included from /nix/store/mkhms56d0nl4mx3553nncqjn9k7l8vqc-libSystem-prebuilt/include/stddef.h:69:
/nix/store/mkhms56d0nl4mx3553nncqjn9k7l8vqc-libSystem-prebuilt/include/sys/_types/_ptrdiff_t.h:32:28: error: 'long type-name' is invalid
| 04:44:28 |
@jbg:matrix.org | other packages fail with different errors, but mostly always related to standard headers | 04:44:48 |
| shantaelihu joined the room. | 06:47:09 |
| shantaelihu removed their display name shantaelihu. | 06:48:07 |
| shantaelihu | 06:48:38 |
| shantaelihu left the room. | 06:51:13 |
symphorien | In reply to @jbg:matrix.org this works, and there is a aarch64-apple-ios-clang inside the shell, but it doesn't seem functional (it cannot find stdarg.h or other standard headers) you should use $CC, this way there is no doubt about what to use | 08:24:10 |
@jbg:matrix.org | yes, i'm using $CC (which is aarch64-apple-ios-clang) — the problem is that the wrapper doesn't seem to be providing all needed args for it to find system headers | 08:43:16 |
@jbg:matrix.org | would be interested whether someone with x86_64-darwin host system can reproduce it (just take the above shell.nix and uncomment glib in buildInputs). if it works on x86_64-darwin then i guess it's an issue with aarch64-darwin host | 08:44:26 |
@jbg:matrix.org | it's not specific to glib, either — put just about anything in buildInputs and it will fail to build, since all the standard headers are missing | 08:45:14 |
symphorien | ah, sorry. There is a bug where clang-7 works but not clang or the other way around, and I thought that was an instance of it | 08:47:54 |