!ZUiNnfpRqQMDrPLChM:nixos.org

Nix ♥ la francophonie

208 Members
Salon francographe de NixOS69 Servers

Load older messages


SenderMessageTime
27 Jun 2023
@victor_mignot:matrix.org@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 nativeBuildInputs16:17:14
@Zevran:matrix.orgGaël Reyrolokep16:17:36
@victor_mignot:matrix.org@victor_mignot:matrix.orgSorry, mon Element a envoyer le message initial haha, j'ai remarqué ça qu'en partant16:21:42
@Zevran:matrix.orgGaël ReyrolUn oeil avisé pourrait review cette PR ? https://github.com/NixOS/nixpkgs/pull/239803 :D17:24:32
@victor_mignot:matrix.org@victor_mignot:matrix.orgDu coup, voici mon flake17:40:57
@victor_mignot:matrix.org@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@victor_mignot:matrix.org(J'ai reproduit ça avec un Hello World tout bête17:41:56
@victor_mignot:matrix.org@victor_mignot:matrix.org * J'ai reproduit ça avec un Hello World tout bête 17:42:00
@victor_mignot:matrix.org@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@victor_mignot:matrix.org Et le coup de file sur le fameux fichier bin/cmake: 17:46:57
@victor_mignot:matrix.org@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@victor_mignot:matrix.orgSachant que je build sous x86_6417:47:37
@Zevran:matrix.orgGaël Reyrol pourquoi tu as mis src = self; ? 17:56:30
@Zevran:matrix.orgGaël Reyroltu peux envoyer les logs du build ?17:57:51
@Zevran:matrix.orgGaë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@victor_mignot:matrix.org Il me semble que ça change rien (et j'obtiens le même résultat avec ./. haha 17:58:52
@Zevran:matrix.orgGaël Reyrolokep18:00:44
@Zevran:matrix.orgGaël Reyrol Pour les logs il faut passer le flag -L 18:01:01
@Zevran:matrix.orgGaël Reyrol et si ça sort rien --rebuild en plus :P 18:01:16
@victor_mignot:matrix.org@victor_mignot:matrix.orgBah, il me remet la même étape, après je vais peut-etre t'épargner les logs du build de toute la toolchain18:01:52
@Zevran:matrix.orgGaël Reyrolenvoie dans un gist ;)18:02:56
@victor_mignot:matrix.org@victor_mignot:matrix.orgYep18:03:05
@victor_mignot:matrix.org@victor_mignot:matrix.orgça va prendre un peu de temps à rebuild, t'étonnes pas18:03:22
@Zevran:matrix.orgGaël Reyrolpas de soucis !18:03:49
@victor_mignot:matrix.org@victor_mignot:matrix.orgJe 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@victor_mignot:matrix.orgVoilà le résultat en attendant, si t'as un autre méthode à proposer:18:21:27
@victor_mignot:matrix.org@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
@Zevran:matrix.orgGaël Reyrol Alors pour moi le premier point d'entrée c'est cette phase updateAutotoolsGnuConfigScriptsPhase 18:25:20
@Zevran:matrix.orgGaël Reyrolpendant les tests18:25:31
@putch4r:matrix.orgputchar
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

Show newer messages


Back to Room ListRoom Version: 6