!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

333 Members
103 Servers

Load older messages


SenderMessageTime
3 Sep 2023
@kity:kity.wtfash (it/its) 🏳️‍⚧️okay.. got past that. now i'm having different errors!18:22:59
@kity:kity.wtfash (it/its) 🏳️‍⚧️https://gist.github.com/ashkitten/a8f46190ae9c734bc7b0fe1a4581700f18:23:21
@kity:kity.wtfash (it/its) 🏳️‍⚧️ guess it's trying to run the wrong as but i'm not sure where it's getting that from 18:23:41
@kity:kity.wtfash (it/its) 🏳️‍⚧️ interesting... pkgsCross.musl-power.buildPackages.rustc.llvmPackages.bintools doesn't contain as 18:35:38
@kity:kity.wtfash (it/its) 🏳️‍⚧️llvmPackages.bintools doesn't at all, actually18:36:03
@kity:kity.wtfash (it/its) 🏳️‍⚧️i'll try building without lto.. see if that at least gets it to build, then work on lto18:40:11
@kity:kity.wtfash (it/its) 🏳️‍⚧️ the issue is it's passing -fno-integrated-as to clang, but there is no as in the closure if cc is overridden with a bintools that doesn't contain as i think 18:41:36
@kity:kity.wtfash (it/its) 🏳️‍⚧️ayyyyy it built!!19:08:03
@kity:kity.wtfash (it/its) 🏳️‍⚧️ so now i need to make sure the wrapper builds, and see if i can add as back to stdenv without messing everything up 19:10:57
@kity:kity.wtfash (it/its) 🏳️‍⚧️got wrapper building!!21:23:12
@kity:kity.wtfash (it/its) 🏳️‍⚧️and it works! ..now building again to fix sqlite endianness issue21:23:39
@rhelmot:matrix.orgrhelmotis clang known to be problematic as a basic stdenv compiler21:35:45
@p14:matrix.orgp14
In reply to @rhelmot:matrix.org
is clang known to be problematic as a basic stdenv compiler
There are issues for example https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration
They can be worked around with effort but lots of stuff doesn't currently work out of the box with a recent LLVM in nix.
21:37:26
@p14:matrix.orgp14It's slightly unfortunate breakage particularly because it confuses a lot of configure scripts into awkwardly silently (or nonobviously at least) broken states.21:38:21
@kity:kity.wtfash (it/its) 🏳️‍⚧️wheeee21:54:33
@kity:kity.wtfash (it/its) 🏳️‍⚧️ why does llvmPackages.bintools not contain as? 22:08:04
@kity:kity.wtfash (it/its) 🏳️‍⚧️ah.22:11:38
@kity:kity.wtfash (it/its) 🏳️‍⚧️https://github.com/NixOS/nixpkgs/commit/a5e136325868d6439b405dffbe782f5abbd0ee1a22:11:44
@kity:kity.wtfash (it/its) 🏳️‍⚧️ @Alyssa Ross maybe you have a recommendation here, since you wrote this commit. i need as in the firefox build for lto, and not sure where it's supposed to come from. 22:13:45
@kity:kity.wtfash (it/its) 🏳️‍⚧️ i'm going to see if adding llvmPackagesBuildBuild.llvm works here but i don't feel like this is the right solution. 22:15:34
@kity:kity.wtfash (it/its) 🏳️‍⚧️ llvm-as as you say in the commit generates llvm bitcode, but that should be correct for an lto build... but it doesn't address the issue in the first place; maybe bintools shouldn't have been there at all, and it should've been the full llvm package? 22:17:18
@kity:kity.wtfash (it/its) 🏳️‍⚧️(nope)22:27:31
@kity:kity.wtfash (it/its) 🏳️‍⚧️ oh. llvm binutils doesn't even contain as 23:25:04
@kity:kity.wtfash (it/its) 🏳️‍⚧️ i'm going to see if patching out the -fno-integrated-as from the build system works, because the reason it's there in the first place is a four year old bug so maybe it's fixed now? 23:49:44
4 Sep 2023
@artemis:arty.chatartemis
In reply to @raitobezarius:matrix.org
nix-build -A something --argstr crossSystem "a system config"
does this translate to flakes in any way? or otherwise how would i do this inside nix rather than running a command. see https://artemis.sh/2023/06/06/cross-compile-nixos-for-great-good.html#humility for an example where i define a flake for a program that exports both a native build output and a cross-build output
00:10:46
@artemis:arty.chatartemisi then import that flake in another repo (see https://artemis.sh/assets/posts/2023-06-06-cross-compile-nixos-for-great-good/flake-with-humility.nix for how i do that) to include it in the systemPackages for a cross-built disk image00:11:30
@artemis:arty.chatartemis* i then import that flake in another repo (see https://artemis.sh/assets/posts/2023-06-06-cross-compile-nixos-for-great-good/flake-with-humility.nix for how i do that) to include the cross-build variant in the systemPackages for a cross-built disk image00:11:48
@kity:kity.wtfash (it/its) 🏳️‍⚧️
In reply to@kity:kity.wtf
i'm going to see if patching out the -fno-integrated-as from the build system works, because the reason it's there in the first place is a four year old bug so maybe it's fixed now?
it doesn't
00:28:47
@kity:kity.wtfash (it/its) 🏳️‍⚧️ maybe i can add llvmPackagesBuildBuild.binutils-unwrapped for (unprefixed, as expected) as 00:29:19
@kity:kity.wtfash (it/its) 🏳️‍⚧️
In reply to@kity:kity.wtf
maybe i can add llvmPackagesBuildBuild.binutils-unwrapped for (unprefixed, as expected) as
/nix/store/y2bfh2sg9zaw2b6ngbajvjlpnffnj4al-powerpc64le-unknown-linux-musl-clang-wrapper-16.0.6/bin/powerpc64le-unknown-linux-musl-clang -std=gnu99 -o xptcinv>
xpcom/reflect/xptcall/md/unix/xptcstubs_asm_ppc64_linux.o
clang-16: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
clang-16: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
Assembler messages:
Fatal error: invalid listing option `6'
clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)
00:44:21

Show newer messages


Back to Room ListRoom Version: 6