From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SEvmNcZYr2HDMgEAgWs5BA (envelope-from ) for ; Tue, 07 Dec 2021 13:51:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oH2SMcZYr2GeeQAAB5/wlQ (envelope-from ) for ; Tue, 07 Dec 2021 12:51:18 +0000 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 8AF9C8958 for ; Tue, 7 Dec 2021 13:51:18 +0100 (CET) Received: from localhost ([::1]:57086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muZwD-00045H-IZ for larch@yhetil.org; Tue, 07 Dec 2021 07:51:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muZvu-00040O-34 for guix-devel@gnu.org; Tue, 07 Dec 2021 07:50:58 -0500 Received: from mout01.posteo.de ([185.67.36.65]:56483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muZvq-0001ix-19 for guix-devel@gnu.org; Tue, 07 Dec 2021 07:50:57 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 40501240027 for ; Tue, 7 Dec 2021 13:50:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1638881449; bh=qNPT6RvS79hrrVNL1i+9jJyozebmAwaxUiKbMzoHiYI=; h=From:To:Cc:Subject:Date:From; b=KN06t8NSquqzXscMm2feyaods+LwHRYc0uISir76iGy3ygoWtCu5hUxVQ3XOPOklh c0OD99DbDagAdBfBCvSc3cZm7e6dfyGeJGZjS4nMepXe04ex2uRsnHSHMPKEzDw4W5 dA0INcrNgfK77VcTfSnFlI0NkCnItcYmYc7Dx/+qFQhJxesloUfo0zuKHQjZA+rgZP GPgrkBjqxC8PT52SLtKvtHFqc+zCFEtnZ6ulZJrSXkOUUPg38YYz7LAJ21DK1JSSoD /34g+iM0EQMrYnRp6vxk7NAq1vl9iv2Av5aRV0PsjQrowNebk92jzRZGQKCRbmD2iJ DA2Q3aoQ37mZg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J7gBw1y8Tz9rxj; Tue, 7 Dec 2021 13:50:48 +0100 (CET) References: From: Guillaume Le Vaillant To: Foo Chuan Wei Subject: Re: cl-gsll fails to load Date: Tue, 07 Dec 2021 12:27:08 +0000 In-reply-to: Message-ID: <87v900efyw.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, cox.katherine.e@gmail.com Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1638881478; h=from:from:sender:sender: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=u4Wn2W96W7f9oP2BiexGg+Bnl9QO8/ZlVgHUe6LYsKc=; b=et48X8L59nQi/Kw53ych40mLaX865cAIIqyNhWuL6GK3EWeykkGlw3dCfL6IzLem3JuWBD 44sevvjVt7bJSL3xnCSm3aRtSJXPTTzDgMQ3IQMTBEHpUTwdj/ymPY5ADZtQDkeSgOh5dr wZjaeuOT+J56ktPQCOm7Yxulj0wohh+V+mjaYItaFDjDaKnysQNa8l1whe9NEjN9AjlHfp hm/GA8SQMJkUMAR57IULtikVWGucmMVBau+tWSoZ6upsxkLp9GG8koNn4XfNdwmvyp3Ida UU9pvEuT+9+ssw306iv5Tduj2PPefUuBt34QxYfpiVtdb6OqVrrdFy8lVxM1gA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638881478; a=rsa-sha256; cv=none; b=MD8CrosjJNvtrqvhw6DmErzj2X1nHWTdrjMrxJXnIWX6Jkq1C6rS3zbbHKTkrkQkA1VkAA X9lThQqrtzZz02nnrZ17sGx68SIiZL0tA38iURf89R8S4nZ/J+i0h8y7Zsk24RtYGGrzKJ 5TT3l+KFOgaZ/CDXxTbytPZZ5sTHxZdEeVR5w5qc0grHhCEKUtatyGN51b/aknhYyK3R3e nb70svm2dgCmOMIlLioWDqAvh0+XmiKrG+gnVS0niYB643BuNmqpJJD+bMIai0uaHK8dyZ E45u6HJWh2AcfA4UhXmxTmducfPNDk3mJehSEeZ5jEphDpsbSJeUmpn1LpLVSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KN06t8NS; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.94 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KN06t8NS; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8AF9C8958 X-Spam-Score: -5.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: ngUbFdeu5bqo --=-=-= Content-Type: text/plain Foo Chuan Wei skribis: > I am using Guix on Ubuntu 20.04, and SBCL 2.1.9 (installed using `guix > install sbcl`). I have installed cl-gsll (`guix install cl-gsll`), but > `(asdf:load-system :gsll)` fails. Why? > > This is my ASDF configuration > > ;;;; File: ~/.config/common-lisp/source-registry.conf.d/guix-asdf.conf > (:tree "~/.guix-profile/share/common-lisp/") > > > This is the error message when `(asdf:load-system :gsll)` fails: > > ; pkg-config libffi --cflags > ; ERROR: Couldn't execute "pkg-config": No such file or directory > > > ; Attempting to continue anyway. > ; gcc -o /home/fcw/.cache/common-lisp/sbcl-2.1.9-linux-x64/gnu/store/5c2r9qg7krpnsqiia34jf6s8w71vgqsf-cl-cffi-0.24.1/share/common-lisp/source/cl-cffi/libffi/libffi-types__grovel-tmpTASQCYAW.o -c -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -fPIC -I/gnu/store/5c2r9qg7krpnsqiia34jf6s8w71vgqsf-cl-cffi-0.24.1/share/common-lisp/source/cl-cffi/ /home/fcw/.cache/common-lisp/sbcl-2.1.9-linux-x64/gnu/store/5c2r9qg7krpnsqiia34jf6s8w71vgqsf-cl-cffi-0.24.1/share/common-lisp/source/cl-cffi/libffi/libffi-types__grovel.c > While evaluating the form starting at line 21, column 0 > of #P"/gnu/store/q27bpjg4pcm81j9ij66fhdpvlwx3jdcz-cl-gsll-0.0.0-1.1a8ada2/share/common-lisp/source/cl-gsll/gsll.asd": > > debugger invoked on a ASDF/FIND-SYSTEM:LOAD-SYSTEM-DEFINITION-ERROR in thread #: Error while trying to load definition for system gsll from pathname /gnu/store/q27bpjg4pcm81j9ij66fhdpvlwx3jdcz-cl-gsll-0.0.0-1.1a8ada2/share/common-lisp/source/cl-gsll/gsll.asd: Couldn't execute "gcc": No such file or directory > > Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL. > > restarts (invokable by number or by possibly-abbreviated name): > 0: [RETRY ] Retry # on #. > 1: [ACCEPT ] Continue, treating # on # as having been successful. > 2: [RETRY ] Retry EVAL of current toplevel form. > 3: [CONTINUE ] Ignore error and continue loading file "/gnu/store/q27bpjg4pcm81j9ij66fhdpvlwx3jdcz-cl-gsll-0.0.0-1.1a8ada2/share/common-lisp/source/cl-gsll/gsll.asd". > 4: [ABORT ] Abort loading file "/gnu/store/q27bpjg4pcm81j9ij66fhdpvlwx3jdcz-cl-gsll-0.0.0-1.1a8ada2/share/common-lisp/source/cl-gsll/gsll.asd". > 5: Retry # on #. > 6: Continue, treating # on # as having been successful. > 7: Retry ASDF operation. > 8: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration. > 9: Retry ASDF operation. > 10: Retry ASDF operation after resetting the configuration. > 11: Exit debugger, returning to top level. > > ((FLET "H0" :IN ASDF/ACTION:PERFORM) #) > ; File has been modified since compilation: > ; SYS:CONTRIB;ASDF;ASDF.LISP.NEWEST > ; Using form offset instead of character position. > error finding frame source: invalid feature expression: "#.(UIOP/UTILITY:SYMBOL-TEST-TO-FEATURE-EXPRESSION (COMMON-LISP:QUOTE #:COMPILER-ERROR-CONTEXT-%SOURCE) (COMMON-LISP:QUOTE #:SB-C))" > source: NIL > 0] > > The problem does not appear when using sbcl-gsll instead of cl-gsll. > How do I fix the problem when using cl-gsll? It seems to be missing some > kind of input or native-input. I think the problem comes from the fact that the build system for cl-xxx packages doesn't use the custom phases added to some sbcl-xxx packages (like the 'fix-cffi-paths' phase of sbcl-gsll). Instead a fixed set of phases is used (see '%standard-phases/source' from "guix/build/asdf-build-system.scm", used in the 'sbcl-package->cl-source-package' function from "guix/build-system/asdf.scm"). Therefore cl-xxx packages usually contain upstream version of the code, without Guix-specific fixes, and having the dependencies installed in a traditional/FHS way is necessary to compile the code. For example the following seems to work: --8<---------------cut here---------------start------------->8--- guix shell -C sbcl cl-gsll gcc-toolchain libffi gsl -- sbcl --eval '(require :asdf)' --eval '(asdf:load-system "gsll")' --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYa9Ypw8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j9WsgD7BOJMluiI7ypwbobKhBNLts1+mgha5G6l/vpr I7cgPpYA/RLQTJWwd9ezZ7xBEcqEfVH6r4xR1/85IiWaXBliS9wI =L5vf -----END PGP SIGNATURE----- --=-=-=--