| 27 Jun 2023 |
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 |
Gaël Reyrol | In reply to @Zevran:matrix.org pourquoi tu as mis src = self; ? ça pose pas de soucis ? Perso je mets src = ./.; mais ça change peut-être rien ^^ | 17:58:22 |
@victor_mignot:matrix.org | Il me semble que ça change rien (et j'obtiens le même résultat avec ./. haha | 17:58:52 |
Gaël Reyrol | okep | 18:00:44 |
Gaël Reyrol | Pour les logs il faut passer le flag -L | 18:01:01 |
Gaël Reyrol | et si ça sort rien --rebuild en plus :P | 18:01:16 |
@victor_mignot:matrix.org | Bah, il me remet la même étape, après je vais peut-etre t'épargner les logs du build de toute la toolchain | 18:01:52 |
Gaël Reyrol | envoie dans un gist ;) | 18:02:56 |
@victor_mignot:matrix.org | Yep | 18:03:05 |
@victor_mignot:matrix.org | ça va prendre un peu de temps à rebuild, t'étonnes pas | 18:03:22 |
Gaël Reyrol | pas de soucis ! | 18:03:49 |
@victor_mignot:matrix.org | Je pense pas pouvoir aller plus loin que la limite de scroll de mon terminal (ce qui est en réalité plus que suffisant je pense).
J'ai essayé de rediriger la sortie standard du build dans un fichier, mais ça a rien donné :/ | 18:20:52 |
@victor_mignot:matrix.org | Voilà le résultat en attendant, si t'as un autre méthode à proposer: | 18:21:27 |
@victor_mignot:matrix.org | * Voilà le résultat en attendant, si t'as un autre méthode à proposer: https://paste.sr.ht/~dala/1962417170cc0061720a1be781936ece30763582 | 18:21:33 |
Gaël Reyrol | Alors pour moi le premier point d'entrée c'est cette phase updateAutotoolsGnuConfigScriptsPhase | 18:25:20 |
Gaël Reyrol | pendant les tests | 18:25:31 |
putchar | In reply to @Zevran:matrix.org Un oeil avisé pourrait review cette PR ? https://github.com/NixOS/nixpkgs/pull/239803 :D hello . je prefere demander avant. mais c'est mandatory le port 8080 et le /metrics ? ou alors on peut les surcharger ? | 18:26:03 |
Gaël Reyrol | Si tu relances avec un doCheck = false; ça donne quoi ? | 18:26:16 |
Gaël Reyrol | In reply to @putch4r:matrix.org hello . je prefere demander avant. mais c'est mandatory le port 8080 et le /metrics ? ou alors on peut les surcharger ? Tu peux surcharger, c'est le port par défaut de scaphandre, j'ai préféré laisser comme ça vu qu'il n'y a pas de stratégie particulière sur le choix du port pour éviter les conflits | 18:27:15 |
putchar | aussi quand je regarde la compatibilité du soft c'est ecrit un kernel linux > 5.11 et pas <5.11 | 18:30:02 |