| 26 Jun 2023 |
Pol | Redacted or Malformed Event | 06:29:03 |
Weijia | nix-repl> lib.versionOlder "1.78.2" "1.79.1"
true
| 06:30:27 |
Pol | Oops, mal reveille le pol. | 06:34:50 |
Pol | sorry pour le bruit. Damn. | 06:34:54 |
Gaël Reyrol | In reply to @Zevran:matrix.org Quelqu'un pour jeter un oeil à cette PR ? https://github.com/NixOS/nixpkgs/pull/238462 Si il y a des motivés pour faire une deuxième passe :) | 17:38:03 |
Gaël Reyrol | thx Pol | 17:41:53 |
| 27 Jun 2023 |
| @sinavir:matrix.org joined the room. | 12:19:51 |
@victor_mignot:matrix.org | Salut !
Si je veux cross-compiler un program qui utilise CMake dans mon système de build, on est d'accord que CMake est censé aller dans les `nativeBuildInputs` n'est ce pas ? | 16:06:02 |
@victor_mignot:matrix.org | * Salut !
Si je veux cross-compiler un program qui utilise CMake dans mon système de build, on est d'accord que CMake est censé aller dans les nativeBuildInputs n'est ce pas ? | 16:06:15 |
Gaël Reyrol | comme ça je dirais oui | 16:08:42 |
Gaël Reyrol | tu as un soucis ? | 16:08:49 |
@victor_mignot:matrix.org | Yep, je fixe bien le crossSystem avec
```
pkgs = import nixpkgs {
inherit system;
crossSystem = nixpkgs.lib.systems.examples.armv7...
}
```
J'utilise ensuite mon pkg.stdenv.mkDerivation en mettant CMake en nativeBuildInputs | 16:12:59 |
@victor_mignot:matrix.org | Je finis avec toute la toolchain qui se met à build, mais ça finit avec une erreur "Exec format error" lors du build de CMake avec une erreur ligne 126 du nix-support/setup-hook | 16:14:35 |
@victor_mignot:matrix.org | Et effectivement, un petit coup de file sur CMake me donne un exécutable format Arch | 16:15:19 |
@victor_mignot:matrix.org | * Et effectivement, un petit coup de file sur CMake me donne un exécutable format Arm | 16:15:27 |
@victor_mignot:matrix.org | (Je viens de quitter le taffs, donc je peux pas vous filer les logs a la mano là tout de suite, je le fais des que j'arrive chez moi) | 16:16:28 |
@victor_mignot:matrix.org | * Yep, je fixe bien le crossSystem avec
```Nix
pkgs = import nixpkgs {
inherit system;
crossSystem = nixpkgs.lib.systems.examples.armv7...
}
```
J'utilise ensuite mon pkg.stdenv.mkDerivation en mettant CMake en nativeBuildInputs | 16:17:14 |
Gaël Reyrol | okep | 16:17:36 |
@victor_mignot:matrix.org | Sorry, mon Element a envoyer le message initial haha, j'ai remarqué ça qu'en partant | 16:21:42 |
Gaël Reyrol | Un oeil avisé pourrait review cette PR ? https://github.com/NixOS/nixpkgs/pull/239803 :D | 17:24:32 |
@victor_mignot:matrix.org | Du coup, voici mon flake | 17:40:57 |
@victor_mignot:matrix.org | {
description = "Flake utils demo";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
crossSystem = nixpkgs.lib.systems.examples.armv7l-hf-multiplatform;
};
in {
packages.default = pkgs.stdenv.mkDerivation {
name = "test";
src = self;
nativeBuildInputs = with pkgs; [
cmake
];
};
}
);
}
| 17:41:27 |
@victor_mignot:matrix.org | (J'ai reproduit ça avec un Hello World tout bête | 17:41:56 |
@victor_mignot:matrix.org | * J'ai reproduit ça avec un Hello World tout bête | 17:42:00 |
@victor_mignot:matrix.org | Et l'erreur lors du nix build:
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/share/doc/hello_world -DCMAKE_INSTALL_INFODIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/include -DCMAKE_INSTALL_SBINDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/p8wcbhdp97k1qqmvrwyjfgfdjnv1rays-armv7l-unknown-linux-gnueabihf-stage-final-gcc-wrapper-12.3.0/bin/armv7l-unknown-linux-gnueabihf-strip -DCMAKE_RANLIB=/nix/store/p8wcbhdp97k1qqmvrwyjfgfdjnv1rays-armv7l-unknown-linux-gnueabihf-stage-final-gcc-wrapper-12.3.0/bin/armv7l-unknown-linux-gnueabihf-ranlib -DCMAKE_AR=/nix/store/p8wcbhdp97k1qqmvrwyjfgfdjnv1rays-armv7l-unknown-linux-gnueabihf-stage-final-gcc-wrapper-12.3.0/bin/armv7l-unknown-linux-gnueabihf-ar -DCMAKE_C_COMPILER=armv7l-unknown-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=armv7l-unknown-linux-gnueabihf-g++ -DCMAKE_INSTALL_PREFIX=/nix/store/mlinpzzxpp82lgza8zd4w16ycp436pnn-test-armv7l-unknown-linux-gnueabihf -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=armv7l -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64
> /nix/store/ws4rbcpm5zn4zbp8l0iykkddh8r84vvq-cmake-armv7l-unknown-linux-gnueabihf-3.26.4/nix-support/setup-hook: line 126: /nix/store/ws4rbcpm5zn4zbp8l0iykkddh8r84vvq-cmake-armv7l-unknown-linux-gnueabihf-3.26.4/bin/cmake: cannot execute binary file: Exec format error
| 17:44:56 |
@victor_mignot:matrix.org | Et le coup de file sur le fameux fichier bin/cmake: | 17:46:57 |
@victor_mignot:matrix.org | * Et le coup de file sur le fameux fichier bin/cmake:
/nix/store/ws4rbcpm5zn4zbp8l0iykkddh8r84vvq-cmake-armv7l-unknown-linux-gnueabihf-3.26.4/bin/cmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /nix/store/13ykb60xn38c57pvksyrbc8fw8mfkhcs-glibc-armv7l-unknown-linux-gnueabihf-2.37-8/lib/ld-linux-armhf.so.3, for GNU/Linux 3.10.0, not stripped
| 17:47:16 |
@victor_mignot:matrix.org | Sachant que je build sous x86_64 | 17:47:37 |
Gaël Reyrol | pourquoi tu as mis src = self; ? | 17:56:30 |
Gaël Reyrol | tu peux envoyer les logs du build ? | 17:57:51 |