From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kDtyAx9AamOlNAAAbAwnHQ (envelope-from ) for ; Tue, 08 Nov 2022 12:40:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sFiPAx9AamMtFwAA9RJhRA (envelope-from ) for ; Tue, 08 Nov 2022 12:40:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6FA091416E for ; Tue, 8 Nov 2022 12:40:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osMxK-00031p-EM; Tue, 08 Nov 2022 06:39:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osMxH-00031Z-Tl for help-guix@gnu.org; Tue, 08 Nov 2022 06:39:47 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osMxC-00079q-HE for help-guix@gnu.org; Tue, 08 Nov 2022 06:39:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DqJeGVkFS8bJzB3Hhzudx8Iq6SgJU3ly/q07D2ZQ2bY=; b=LE+sWwlfedry1XcExjU0yhKkUu KG+v755Re5SyRNT9IgMTORjATVF8/p8jzwU32xYPuFAl7UDwbSfxwOsZRIZ8/SEjiB9QsSAv8lpyD ptnt3cNOAKt7ZuRqMPs6Lg3kBFtU9dMG5rhmuzei8hBvEWDW/t1XS2P9pxhy7l9zCFGZGcbWN9zRV 5vuWx6IFiPc/bU1C5v/Ftp5a/S2+LGpLDFUCtEMxGmGC3uo0t3A4g/be8uqIzophqJQOU/K29dJyx pYPjLVYXpN7rwwZi41YH9e8Os96Jc8+XQApJP/v8sMi2KItRe1rtDsMzcqC/i8FokdS3Zbj06/GLt +jgPObDUas0bQAa5FNJT0dG46bq5jmXcu8kl5oUX5yGVDgOrSMKEJ0B8m8joS63BC+jtGeHG/Jche shRSJI8RaiW9sHqaB9GV+O3X4MDffS/GO6Hck2CpjHQdl8MevEoT0PP2JfaxCLYJP3sGLQIrrKkAQ FSJzK8lo5X+NUPS2hpqNew0cIX9ydfUFSTlbqMd6YARFep4W+OihMovrxHaHUvobnVF9G6BHisK0D yUyic32wnvnVSp6X4rK8kgLJ5/ik81HiiORWnXbyVM+setoVU4VOPjFItz5mmCgJKQAlzJao0nbDC c/FzhdCcI2mlK98+mgYoaIDEqmDM+j37SQvjxv8ik=; Received: from 77-252-46-244.static.ip.netia.com.pl ([77.252.46.244] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1osMwy-0000Qx-Qg; Tue, 08 Nov 2022 12:39:28 +0100 Date: Tue, 8 Nov 2022 12:39:26 +0100 To: Emmanuel Medernach Cc: Sergiu Ivanov , help-guix@gnu.org Subject: Re: Error using gcc with trivial-build-system Message-ID: <20221108123926.6fcc8360@koszkonutek-tmp.pl.eu.org> In-Reply-To: <23e9300e-b105-d32e-4fa6-3a6451f5cb35@iphc.cnrs.fr> References: <87o7thd8lt.fsf@colimite.fr> <23e9300e-b105-d32e-4fa6-3a6451f5cb35@iphc.cnrs.fr> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/_0rtwHGdmGhZ5F4nS=pkkpw"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667907614; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DqJeGVkFS8bJzB3Hhzudx8Iq6SgJU3ly/q07D2ZQ2bY=; b=oe8EtqQEtTyktd+xVE8G+YqdrWtqCHMnb5SyMruA1GlpqaILPk7Y137H61MOqarTXluR6n 3nvsSFwfKJrSXgyIVLAKavImTFHBZe9ubdnYv0RrH9ZBqZCiidk3IXoK/tC3C2Yvb4TBRb yNtHczPtLCRzX7EE2v/Eh6i7yMYJGyhvY4Ic2SSIRYKf0LfRqqU99hldw9zUztuRXpqopY fGaU+QVqc/QXcdw504EnhdTydI3hZ0Vc48anB8Y19/z5q+DomB3se2Yxkk67D1PVz1RQ52 MjtNWtfNqi0cQoGgvPqRv7BdoKdsK+54jOENcUP25XY3cDFzpIOHaUspv2Sw4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667907614; a=rsa-sha256; cv=none; b=lnzOs3y7PAsqnqGzn5XabYT+gk3vKJ+XOV20f463HNz6J/peMMZgNv3XomwCq4BgkiV39e WHz8EvhHLHvg0uZv88BhQrZkYG88VY3mE/y7VlGFQXQnYtGUXFdEa6A5rJeqx8HqUoq2GG I7p0yuJkqzvySkab+luuOKsrI32Uy0Pw2yOHqCTLe+iGMGXy3BOZdTmvlzi8Y+VWMlnDKf zSS7u09TrpRd8nJOqwdW39y3n5XyySHFzg44PrPy+JzODv4mUT3Ox6u/2VwRoVFKPVBHPe LRCiQo0ckSojUEkGpZxDSxIe9yvMzZbVxEOQgUv2/x6BhA0xlHFIBUnhJTk2nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=LE+sWwlf; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=LE+sWwlf; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6FA091416E X-Spam-Score: -5.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: zF06z+y3tHsY --Sig_/_0rtwHGdmGhZ5F4nS=pkkpw Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > Hi, > > > > I have little experience with Guix packages, but I ran into a similar > > issue using guix shell --pure recently, and I believe that you need to > > add glibc to your dependencies. > > > > I suppose that guix shell works for you because you already have glibc > > available in the active profile. I'd expect guix shell --pure to fail > > with the same error. =20 >=20 > Thanks for your idea but no luck, still the same error with glibc added := -/ >=20 > Emmanuel Perhaps `find /gnu/store/ -name "crt1.o"` will give further hints? Good luck! Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #10: blessed Hilary Januszewski Poznaj =C5=9Bwi=C4=99tych krakowskich! #10: b=C5=82ogos=C5=82awiony Hilary= Januszewski https://pl.wikipedia.org/wiki/Hilary_Januszewski -- (sig_end) On Tue, 8 Nov 2022 11:58:41 +0100 Emmanuel Medernach wrote: > Le 08/11/2022 =C3=A0 11:45, Sergiu Ivanov a =C3=A9crit=C2=A0: > > Hi, > > > > I have little experience with Guix packages, but I ran into a similar > > issue using guix shell --pure recently, and I believe that you need to > > add glibc to your dependencies. > > > > I suppose that guix shell works for you because you already have glibc > > available in the active profile. I'd expect guix shell --pure to fail > > with the same error. =20 >=20 > Thanks for your idea but no luck, still the same error with glibc added := -/ >=20 > Emmanuel >=20 >=20 > > - > > HTH, > > Sergiu > > > > > > Emmanuel Medernach [2022-11-08T11:23:= 16+0100]: =20 > >> Hello Guix, > >> > >> I have a local package with a compile script that > >> I need to add to our local GUIX packages. > >> > >> I tried to use trivial-build-system with > >> gcc-toolchain input, all works well when I compile > >> it manually in a 'guix shell' but when I try to > >> define a package I ran into this error: > >> > >> ld: cannot find crt1.o: No such file or directory > >> ld: cannot find crti.o: No such file or directory > >> collect2: error: ld returned 1 exit status > >> > >> I cannot produce correct binaries with > >> gcc-toolchain, here is a minimal package > >> definition with the above problem. Could you > >> please tell me how to solve this problem ? > >> > >> (define-public SimpleTest > >> =C2=A0 (package > >> =C2=A0=C2=A0 (name "SimpleTest") > >> =C2=A0=C2=A0 (version "0.0.0") > >> =C2=A0=C2=A0 (source > >> =C2=A0=C2=A0=C2=A0 (origin > >> =C2=A0=C2=A0=C2=A0=C2=A0 (method url-fetch) > >> =C2=A0=C2=A0=C2=A0=C2=A0 (uri ".../simpletest.tgz") > >> =C2=A0=C2=A0=C2=A0=C2=A0 (sha256 > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (base32 "0nx8dgs5n4s1alp8lnp7a96czdll8= bb7ljbg152yk7m0mr07728d")))) > >> =C2=A0=C2=A0 (inputs `(("gcc-toolchain" ,gcc-toolchain-9) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("gzip" ,gzip) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ("tar" ,tar))) > >> =C2=A0=C2=A0 (build-system trivial-build-system) > >> =C2=A0=C2=A0 (arguments > >> =C2=A0=C2=A0=C2=A0 `(#:modules > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((guix build utils)) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:builder > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (begin > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (use-modules (guix build u= tils)) > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let* ((source (assoc-ref = %build-inputs "source")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (out (assoc-ref %outputs "out")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (gzip (assoc-ref %build-inputs "gzip")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (gunzip-bin (string-append gzip "/bin/gunzip")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (tar (assoc-ref %build-inputs "tar")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (tar-bin (string-append tar "/bin/tar")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (gcc-dir (assoc-ref %build-inputs "gcc-toolchain")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (gcc-bin (string-append gcc-dir "/bin/gcc"))) > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let* ((packag= es (alist-delete "source" %build-inputs)) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (packages-path (map cdr packages))) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (s= etenv > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 "PATH" > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (apply > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 string-append > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (getenv "PATH") ":" > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (map (lambda (p) (string-append p "/bin:")) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 packages-path)))) > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; (setenv "GC= C_EXEC_PREFIX" gcc-dir) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; gcc: fatal = error: cannot execute 'cc1': execvp: No such > >> file or directory > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (display (list= "gcc-bin" gcc-bin)) (newline) > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir-p out) = (chdir out) > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (copy-file sou= rce "simpletest.tar.gz") > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (invoke gunzip= -bin "simpletest.tar.gz") > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (invoke tar-bi= n "xvf" "simpletest.tar") > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (delete-file "= simpletest.tar") > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (chdir "simple= test") > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (invoke gcc-bi= n "simpletest.c" "-o" "simpletest") > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #t)))) > >> > >> =C2=A0=C2=A0 (synopsis "Simple Test") > >> =C2=A0=C2=A0 (description "Simple Test") > >> =C2=A0=C2=A0 (home-page "None") > >> =C2=A0=C2=A0 (license license:gpl3+))) > >> > >> Best regards, > >> > >> Emmanuel Medernach =20 >=20 --Sig_/_0rtwHGdmGhZ5F4nS=pkkpw Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY2o/7gAKCRBLxSIcWnn9 GhImAP9VvtmdOE9UrraF1ts/NCHOgF8MHv73Kbw5/WhRHoobSAEA5pgCEGQpTmqw 65jlLWGLIG40pQw5LOV9+i9OGSeF3wA= =+LFz -----END PGP SIGNATURE----- --Sig_/_0rtwHGdmGhZ5F4nS=pkkpw--