!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

577 Members
129 Servers

Load older messages


SenderMessageTime
3 Jan 2025
@artturin:matrix.orgArtturin 1 buildPackages instead of 2 for python3 because it's used directly and not in nativeBuildInputs
and __splicedPackages in case it's used in a dependency attribute in the future.
16:54:25
@sananatheskenana:matrix.orglzcuntah testing it rn16:54:48
@artturin:matrix.orgArtturin
C compiler for the build machine: gcc (gcc 14.2.1 "gcc (GCC) 14.2.1 20241116")
C linker for the build machine: gcc ld.bfd 2.43.1
C++ compiler for the build machine: g++ (gcc 14.2.1 "g++ (GCC) 14.2.1 20241116")
C++ linker for the build machine: g++ ld.bfd 2.43.1
C compiler for the host machine: x86_64-unknown-linux-mlibc-gcc (gcc 14.2.1 "x86_64-unknown-linux-mlibc-gcc (GCC) 14.2.1 20241116")
C linker for the host machine: x86_64-unknown-linux-mlibc-gcc ld.bfd 2.43.1

meson.build:69:1: ERROR: Unknown compiler(s): [['x86_64-unknown-linux-mlibc-g++']]
The following exception(s) were encountered:
Running `x86_64-unknown-linux-mlibc-g++ --version` gave "[Errno 2] No such file or directory: 'x86_64-unknown-linux-mlibc-g++'"

16:55:26
@sananatheskenana:matrix.orglzcunt yep that happened to me too when I tried buildPackages.buildPackages.meson 16:55:53
@sananatheskenana:matrix.orglzcuntno wait this is different to the error that I saw when this happened16:56:46
@sananatheskenana:matrix.orglzcunt* no wait this is different to the error that I saw when that happened16:57:15
@sananatheskenana:matrix.orglzcunt* no wait this is different to the error that I saw when I tried that16:57:21
@artturin:matrix.orgArtturin
$ nix build ".#pkgsCross.x86_64-linux-mlibc.mlibc.stdenv.cc"
$ ls result/bin
 x86_64-unknown-linux-mlibc-addr2line@   x86_64-unknown-linux-mlibc-cc@        x86_64-unknown-linux-mlibc-gcc*      x86_64-unknown-linux-mlibc-ld.gold@   x86_64-unknown-linux-mlibc-ranlib@    x86_64-unknown-linux-mlibc-strip@
 x86_64-unknown-linux-mlibc-ar@          x86_64-unknown-linux-mlibc-cpp*       x86_64-unknown-linux-mlibc-gprof@    x86_64-unknown-linux-mlibc-nm@        x86_64-unknown-linux-mlibc-readelf@
 x86_64-unknown-linux-mlibc-as@          x86_64-unknown-linux-mlibc-dwp@       x86_64-unknown-linux-mlibc-ld@       x86_64-unknown-linux-mlibc-objcopy@   x86_64-unknown-linux-mlibc-size@
 x86_64-unknown-linux-mlibc-c++filt@     x86_64-unknown-linux-mlibc-elfedit@   x86_64-unknown-linux-mlibc-ld.bfd@   x86_64-unknown-linux-mlibc-objdump@   x86_64-unknown-linux-mlibc-strings@
16:58:13
@artturin:matrix.orgArtturinNo g++ there or bintools16:58:30
@artturin:matrix.orgArtturin * No g++ there or cc.bintools16:58:35
@artturin:matrix.orgArtturin * No g++ there or .cc.bintools16:58:40
@artturin:matrix.orgArtturin the underlying cc .cc.cc` doesn't have g++ and some other tools that native .cc.cc has 16:59:55
@artturin:matrix.orgArtturin * the unwrapped cc .cc.cc` doesn't have g++ and some other tools that native .cc.cc has 17:00:03
@sananatheskenana:matrix.orglzcuntthen gcc is not built with --enable-languages=c++?17:02:51
@sananatheskenana:matrix.orglzcunttbh I didn't expect it to go this far, there's gcc patches needed17:03:21
@artturin:matrix.orgArtturin

Should be but

nix-repl> pkgsCross.x86_64-linux-mlibc.stdenv.cc.cc.langCC
true

--enable-languages=c

17:04:31
@artturin:matrix.orgArtturin *
nix-repl> pkgsCross.x86_64-linux-mlibc.stdenv.cc.cc.langCC
true

Should be but

--enable-languages=c

17:04:42
@artturin:matrix.orgArtturin --enable-languages=c\,c++ nix log ".#stdenv.cc.cc" 17:05:03
@artturin:matrix.orgArtturin * --enable-languages=c\,c++ in nix log ".#stdenv.cc.cc" 17:05:08
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/8adbfd92518a59f18a8216c4b13a11cedc16abf0/pkgs/development/compilers/gcc/common/configure-flags.nix#L16717:05:48
@artturin:matrix.orgArtturin The configure flags: in the log is printed by configurePhase and not gcc's buildSystem 17:06:29
@artturin:matrix.orgArtturin * The configure flags: in the log is printed by configurePhase and not gcc's build system 17:06:34
@artturin:matrix.orgArtturin * The configure flags: in the log is printed by our configurePhase and not gcc's build system 17:06:40
@sananatheskenana:matrix.orglzcuntI just ran this and it didn't have c++17:07:05
@sananatheskenana:matrix.orglzcunthmm just maybe, the stdenvNoLibc gcc does not have c++ (I haven't looked into this yet because my internet is slow lol)17:07:27
@sananatheskenana:matrix.orglzcuntno it would have c++ because mlibc does compile when not cross compiling17:07:52
@sananatheskenana:matrix.orglzcunt
nix-repl> pkgs.pkgsCross.x86_64-linux-mlibc.mlibc.stdenv.cc.cc.langCC
false
17:11:14
@sananatheskenana:matrix.orglzcunthuh17:11:15
@sananatheskenana:matrix.orglzcuntyep stdenvNoLibc has c++ when not cross compiling and doesn't have c++ when cross compiling17:12:01
@sananatheskenana:matrix.orglzcuntI have a theory17:12:04

Show newer messages


Back to Room ListRoom Version: 6