From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yK0oKilSpGWtHQEA62LTzQ:P1 (envelope-from ) for ; Sun, 14 Jan 2024 22:29:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yK0oKilSpGWtHQEA62LTzQ (envelope-from ) for ; Sun, 14 Jan 2024 22:29:13 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=m0mtp6QM; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705267753; 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=Qb2yM8dJnLSsjRAMkvjwRbg9ccAS1cyJAFA9VXgqqyU=; b=H26krVIF4URmf/R27ofmDYBQLL5MIWBOodLvWDP4u50k9mtHLrFIiEL7X5ZTZ2KurDyZ2r g8XQg4Pz3blNKF+zc6ZlrABYRUAr6g83vrDw8wmAdtRKh4Cz7dtTCR0FKYIhQmhEzbqKVs byYMK9ZwlON+CeeQuWxoJhneBoso8TtdVCoazzfMn0drZ/qHEf0m0UzfTSAk2OjC2bexij jeSbH4rBDOX/90jSknTTViClBYa2aWNYpHGiKFQ87bFQVGvJmabiMMreMOiDHhjnnTTn2Z j5v5p2l4QFOfnDwRI4GOLmH1tsgoGuyiVrah5CK6wiZwmRhEbyK5UdS0X8akuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=m0mtp6QM; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705267753; a=rsa-sha256; cv=none; b=EgEahTlzNJNXDIS+9ZU4Ua039ij1P0UZJ7C78vJCN1YwGRLffipsV0qu+VsA1krTXuP+EL /NGy1PFwAmKCuqpGJSCSRI6HEQcNatmxkDFTiOfowVP/Owp+vs2/6A/vlWA9ByGza7dESQ ZyXgcO38caYbZgryiYOloNpJdX72l5q55k4+ne7EJi7iLu4LSM2/LsD/NoAo+gWyiBzin5 uquV+Ll+N/ehUc3P/EFmBAjSe5I0rcqOOO+RoAu/SNwxgqyuMVMx6gUGEMoWk0GmD6+elo ehtd7kFNS6iuEdZoVSoGnIYyTJ9z4qHd7dbFGyR+USno/CSI5RYYeksf9mmgKw== 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 EDD781FF83 for ; Sun, 14 Jan 2024 22:29:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rP829-0003sf-9B; Sun, 14 Jan 2024 16:28:45 -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 1rP827-0003sR-M7 for help-guix@gnu.org; Sun, 14 Jan 2024 16:28:43 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rP825-00076T-OD for help-guix@gnu.org; Sun, 14 Jan 2024 16:28:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=BPIW94V4Bwq3yd4 GJTDnFPKMFAMi5Qwbn26sInqVbgs=; h=date:references:in-reply-to:subject: cc:to:from; d=lease-up.com; b=m0mtp6QMacy0KKKNu9DuvlSKDFS34Wc5usncjvaG EIdKeAeFMs5jjD5TnIQFM00t3+SGShNK7BwOoxjiwktcwOXM4MvGAJl/Zd0+bcm9nu6Lt5 sjKYZx5oitSAabioRiq87E7BJdxedGduRx+bnukoDJv7fpZNmZa8/vVE5HNTw= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 6f552ab0 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 14 Jan 2024 21:28:39 +0000 (UTC) To: Christina O'Donnell , help-guix@gnu.org Cc: Subject: Re: trivial-build-system: ld can't find existing store files In-Reply-To: <0ba16b42-6c3b-5b31-3dc7-038bf8282fbe@mutix.org> References: <0ba16b42-6c3b-5b31-3dc7-038bf8282fbe@mutix.org> Date: Sun, 14 Jan 2024 13:28:38 -0800 Message-ID: <87a5p74nax.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com 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_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: Felix Lechner From: Felix Lechner 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 X-Migadu-Spam-Score: -7.19 X-Spam-Score: -7.19 X-Migadu-Queue-Id: EDD781FF83 X-Migadu-Scanner: mx12.migadu.com X-TUID: lP60LXRQyCQB Hi Christina, On Sun, Jan 14 2024, Christina O'Donnell wrote: > /gnu/store/cv571kkg5hyk98yw48857h1d0zi9azni-binutils-2.38/bin/ld: cannot find crt1.o: No such file or directory > /gnu/store/cv571kkg5hyk98yw48857h1d0zi9azni-binutils-2.38/bin/ld: cannot find crti.o: No such file or directory The code below worked for me (with 'guix build -f evhz.scm') although I'm a novice myself. Thanks for using Guix! Kind regards Felix * * * (define-module (gnu packages evhz) #:use-module (guix gexp) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system trivial) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages commencement) #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages linux) #:use-module (gnu packages xorg)) (define-public evhz (let ((commit "35b7526e0655522bbdf92f6384f4e9dff74f38a0") (revision "1")) (package (name "evhz") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://git.sr.ht/~iank/evhz") (commit commit))) (sha256 (base32 "1m2m60sh12jzc8f38g7g67b3avx2vg8ff0lai891jmjqvxw04bcl")))) (build-system trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let ((source (assoc-ref %build-inputs "source")) (glibc (assoc-ref %build-inputs "glibc")) (gcc (assoc-ref %build-inputs "gcc")) (binutils (assoc-ref %build-inputs "binutils")) (linux-libre-headers (assoc-ref %build-inputs "linux-libre-headers")) (output (assoc-ref %outputs "out"))) (setenv "PATH" (string-join (list (string-append gcc "/bin") (string-append binutils "/bin") (getenv "PATH")) ":")) (setenv "LIBRARY_PATH" (string-join (list (string-append glibc "/lib")) ":")) (mkdir-p (string-append output "/bin")) (invoke (string-append gcc "/bin/gcc") "-o" (string-append output "/bin/evhz") "-I" (string-append linux-libre-headers "/include") (string-append source "/evhz.c")) #t)))) (native-inputs (list binutils gcc gcc-toolchain glibc linux-libre-headers)) (home-page "https://git.sr.ht/~iank/evhz") (synopsis "Show mouse refresh rate under linux + evdev.") (description "A simple diagnostic utility to show mouse refresh rate under linux + evdev.") (license license:apsl2)))) evhz