From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] Fix compilation features of GCL and Maxima Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jul 2017 01:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 27628@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14995627975444 (code B ref -1); Sun, 09 Jul 2017 01:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jul 2017 01:13:17 +0000 Received: from localhost ([127.0.0.1]:58252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0mj-0001Pk-1b for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0mh-0001PR-87 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dU0ma-0003PI-45 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41602) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dU0ma-0003PE-13 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dU0mY-0000wA-RD for guix-patches@gnu.org; Sat, 08 Jul 2017 21:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dU0mV-0003O0-Mu for guix-patches@gnu.org; Sat, 08 Jul 2017 21:13:06 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:56758 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dU0mV-0003NN-EE for guix-patches@gnu.org; Sat, 08 Jul 2017 21:13:03 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id B007F520914; Sun, 9 Jul 2017 03:12:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499562778; bh=QC+9BjKu3H6Mr79A0IhagUDSHWBOWFn13ujIefClFg4=; h=From:To:Subject:Date:From; b=Tv5KyLHv3I4E0huJUCVeMGn6bvDtFuO4lNrmC/b/uSbnFyJJgntsurAZWeJHnIW/F WelL/Se3CXYidq0fXBKbHyUdXniq2+Yz6PsC+/uu7FrFvyLUgREDjx9CPlIPztyNAI 6Xn/70RON/FKtIvr1PN8Cbx1qnQKmrFynt1Aruac= From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499562777; bh=QC+9BjKu3H6Mr79A0IhagUDSHWBOWFn13ujIefClFg4=; h=From:To:Subject:Date:From; b=JwCrCYASCvxVMhZqYOOIFTuUWcJbcX+guO4rXQQY8mN60NHtPHToDj3BuBMls2V5F qJDr1RWM7QKoj/b7Ea3pqWhBV2xnJTH78zyEPbDWAnD9iSyGKNSPRrUyNuFrHECvqX kJ768HxDe3PpK7NCYypYyNw0zi/pVLZcFMHu/XlI= Date: Sat, 08 Jul 2017 21:12:26 -0400 Message-ID: <87lgnyqupx.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain These patches are the best solution I've come upon so far to enable GCL and Maxima to compile functions. The current issue is that GCL (and, by proxy, Maxima) requires GCC to compile functions, but GCC and binutils are not available to GCL at runtime. This issue in GCL causes issues in Maxima (e.g. the graphing package "draw" does not function). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAllhgvsACgkQ5qXuPBlG eg0cHQ//aT5b6dG76g3Xf7SNfzQGu14TLUhbYVezzYiARQrm5ZSD3IdCSJL5ri0w /zTstPW5j8Z7/QmgZW5RA1LBGnpBb4/101GZuUk0gAyjA054aUpYywhw5mLQ+4dt DmPptvAvKMsp6fVjLRpwCXw446XkZzyIobWwOcDujx7FN/1ZYbTkn9nbCdor9hlR qlHVBe7ShZupGTB8Ce8v/eOfiTST6SAA02JYnEwtOzj2PdqBYiqb790SPv2lbRiv yaIYS/a9g7OS9v6rClqN4VOpq7DWHF0ldw7BGyO0vavSQ+8YFnmcy9+OjnWL8hgY a53I8FjBY6HSb0ejSZbIXRnVZMqOKs2spcy4xltolj9m3Ghm69bPV3NWmrviGmqY +xDA3IrkUvtXaBtx4fQEbxiWYFzQgVnfiRHqyqJMfwXnNpMbLScpIO8LfCvs5qrR nic8mvP2J6tVUZyRRkJo5mZ+0+OQKAR5lDS9V8rBKkaPyc0/IQQUhyaM6l5KcUz6 PGy9/pksYh6lEl7Fx4Ig6zbq57OAdEr5jVoPE48BJ3z0GNxZM2wTgiqas3J1pKSZ xjgN0Pz91veq5sM8vAxahyABo7vQF/RwprBqxX2jAR3SAs7MHxnnVnz4fSHeAetA F2iMSa/J0osWSs9G7IFZ6g926jJgqQQ+2vIRcx6HCsSFnQDDaOA= =AdhT -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 1/3] gnu: gcl: Ensure gcc and binutils are available at runtime. References: <87lgnyqupx.fsf@openmailbox.org> In-Reply-To: <87lgnyqupx.fsf@openmailbox.org> Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jul 2017 01:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 27628@debbugs.gnu.org Cc: Kei Kebreau Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.14995630275835 (code B ref 27628); Sun, 09 Jul 2017 01:18:02 +0000 Received: (at 27628) by debbugs.gnu.org; 9 Jul 2017 01:17:07 +0000 Received: from localhost ([127.0.0.1]:58257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0qQ-0001W3-Mu for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:17:06 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:44335 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0qP-0001Vt-Fy for 27628@debbugs.gnu.org; Sat, 08 Jul 2017 21:17:06 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 52168520A81; Sun, 9 Jul 2017 03:17:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499563024; bh=25d9KwE5y8OlXmZxZhraNmUSbxp3DGIEC4ZFQkVTayQ=; h=From:To:Cc:Subject:Date:From; b=Xq4T6fJw8Th4UsPSuTwCe017klURjnCSLd4lRIwk9y4dHwErNBO5WNMMsM/eUXckg oYuEUA7M9Xyo1VX/OLpt+o33j5/CS4gZU2ImNhPJ+hA/RlyUHrxSbUWRumcCdQXPjs A8RDaXe94AhM58WUqeZykKU9tlWYNaEFAYb05/1Q= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499563023; bh=25d9KwE5y8OlXmZxZhraNmUSbxp3DGIEC4ZFQkVTayQ=; h=From:To:Cc:Subject:Date:From; b=KTQz9eLoPS1tIvcLJoQb7p9GxR4RdeutjPOE+44v7SbB50HXILi0xCc9IuJVUsKGU mO1F/PNjCWXAu7DY+057xzDYFUfsEHkwZTIWA09BYAOd79oK7IdlpDK08mOHyE0c2M XNBzEXkW7ELGU7rug8G94gYO1R4twIJwaZM/8pMI= Date: Sat, 8 Jul 2017 21:16:32 -0400 Message-Id: <20170709011634.12832-1-kei@openmailbox.org> X-Mailer: git-send-email 2.13.2 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * gnu/packages/lisp.scm (gcl)[arguments]: Add -fgnu89-inline to CFLAGS. Add GCC path to make-flags. Modify 'pre-conf' phase. Add 'wrap' phase. --- gnu/packages/lisp.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index e92ae2ebf..6bd9e94a7 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -88,6 +88,10 @@ `(#:parallel-build? #f ; The build system seems not to be thread safe. #:tests? #f ; There does not seem to be make check or anything similar. #:configure-flags '("--enable-ansi") ; required for use by the maxima package + #:make-flags (list + "CFLAGS=-fgnu89-inline" ; removes inline function warnings + (string-append "GCC=" (assoc-ref %build-inputs "gcc") + "/bin/gcc")) #:phases (modify-phases %standard-phases (add-before 'configure 'pre-conf (lambda _ @@ -104,6 +108,24 @@ (string-append "SHELL=" (which "bash"))) (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh")))) + (substitute* "h/linux.defs" + (("#CC") "CC") + (("-fwritable-strings") "") + (("-Werror") "")) + #t)) + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((gcl (assoc-ref outputs "out")) + (input-path (lambda (lib path) + (string-append + (assoc-ref inputs lib) path))) + (binaries '("gcc" "ld-wrapper" "binutils"))) + + (wrap-program (string-append gcl "/bin/gcl") + `("PATH" prefix + ,(map (lambda (binary) + (input-path binary "/bin")) + binaries)))) #t)) ;; drop strip phase to make maxima build, see ;; https://www.ma.utexas.edu/pipermail/maxima/2008/009769.html -- 2.13.2 From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 2/3] Revert "gnu: maxima: Ensure gcc is available at runtime." Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jul 2017 01:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 27628@debbugs.gnu.org Cc: Kei Kebreau Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.14995630345856 (code B ref 27628); Sun, 09 Jul 2017 01:18:02 +0000 Received: (at 27628) by debbugs.gnu.org; 9 Jul 2017 01:17:14 +0000 Received: from localhost ([127.0.0.1]:58260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0qX-0001WM-Vi for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:17:14 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:35074 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0qV-0001WD-6j for 27628@debbugs.gnu.org; Sat, 08 Jul 2017 21:17:12 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 80131520A81; Sun, 9 Jul 2017 03:17:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499563030; bh=tiwoKhL+1Y+sUoc4rFknRfZ+oREnrBtVExI23OlZE44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Buxacq9Cdut7ztPHxM9CDfcP/iLxVT8su6VsR+wMpSRkDolhbmJ1Z50FexncalQgr +PE63psbGbme3RK48ThZBLr+Y4euu4O43Al9TDPJY9c214UUCoVeGHxj6f8M79vJeM GikzIMxF5i43hIsLMhQcMGA5az9b4FeiXHsX1aLg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR002 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499563029; bh=tiwoKhL+1Y+sUoc4rFknRfZ+oREnrBtVExI23OlZE44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oBxAterzbCZhWlU49kTMiWCZ2tpiXTWXAEKi2xne18eZCHphCVkBIGrKbtXs171hD zhBxBp8ImZ1nY3LTUQir6iZvZau7/Haegis8etkptJy398P630gaAHTglkTNyZ6sq9 9mkL1ceI8fjq+CV+9ITqJpvi9wFDFeSGpk5cT05M= Date: Sat, 8 Jul 2017 21:16:33 -0400 Message-Id: <20170709011634.12832-2-kei@openmailbox.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170709011634.12832-1-kei@openmailbox.org> References: <20170709011634.12832-1-kei@openmailbox.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This reverts commit f2fa86cc82b5941bde63b666337eea59aa609e55. --- gnu/packages/maths.scm | 71 ++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 40 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1bf049fc4..0b738e6a2 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2075,8 +2075,7 @@ to BMP, JPEG or PNG image formats.") (patches (search-patches "maxima-defsystem-mkdir.patch")))) (build-system gnu-build-system) (inputs - `(("gcc" ,gcc) - ("gcl" ,gcl) + `(("gcl" ,gcl) ("gnuplot" ,gnuplot) ;for plots ("tk" ,tk))) ;Tcl/Tk is used by 'xmaxima' (native-inputs @@ -2098,44 +2097,36 @@ to BMP, JPEG or PNG image formats.") ;; '/tmp/nix-build-maxima-*', which won't exist at run time. ;; Work around that. #:make-flags (list "TMPDIR=/tmp") - #:phases - (modify-phases %standard-phases - (add-before 'configure 'set-gcc-path - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "lisp-utils/defsystem.lisp" - (("\\(defparameter \\*c-compiler\\* \"gcc\"\\)") - (string-append "(defparameter *c-compiler* \"" - (assoc-ref inputs "gcc") "/bin/gcc\")"))) - #t)) - (add-before 'check 'pre-check - (lambda _ - (chmod "src/maxima" #o555) - #t)) - ;; Make sure the doc and emacs files are found in the - ;; standard location. Also configure maxima to find gnuplot - ;; without having it on the PATH. - (add-after 'install 'post-install - (lambda* (#:key outputs inputs #:allow-other-keys) - (let* ((gnuplot (assoc-ref inputs "gnuplot")) - (out (assoc-ref outputs "out")) - (datadir (string-append out "/share/maxima/" ,version))) - (with-directory-excursion out - (mkdir-p "share/emacs") - (mkdir-p "share/doc") - (symlink - (string-append datadir "/emacs/") - (string-append out "/share/emacs/site-lisp")) - (symlink - (string-append datadir "/doc/") - (string-append out "/share/doc/maxima")) - (with-atomic-file-replacement - (string-append datadir "/share/maxima-init.lisp") - (lambda (in out) - (format out "~a ~s~a~%" - "(setf $gnuplot_command " - (string-append gnuplot "/bin/gnuplot") ")") - (dump-port in out))))) - #t))))) + #:phases (alist-cons-before + 'check 'pre-check + (lambda _ + (chmod "src/maxima" #o555)) + ;; Make sure the doc and emacs files are found in the + ;; standard location. Also configure maxima to find gnuplot + ;; without having it on the PATH. + (alist-cons-after + 'install 'post-install + (lambda* (#:key outputs inputs #:allow-other-keys) + (let* ((gnuplot (assoc-ref inputs "gnuplot")) + (out (assoc-ref outputs "out")) + (datadir (string-append out "/share/maxima/" ,version))) + (with-directory-excursion out + (mkdir-p "share/emacs") + (mkdir-p "share/doc") + (symlink + (string-append datadir "/emacs/") + (string-append out "/share/emacs/site-lisp")) + (symlink + (string-append datadir "/doc/") + (string-append out "/share/doc/maxima")) + (with-atomic-file-replacement + (string-append datadir "/share/maxima-init.lisp") + (lambda (in out) + (format out "~a ~s~a~%" + "(setf $gnuplot_command " + (string-append gnuplot "/bin/gnuplot") ")") + (dump-port in out)))))) + %standard-phases)))) (home-page "http://maxima.sourceforge.net") (synopsis "Numeric and symbolic expression manipulation") (description "Maxima is a system for the manipulation of symbolic and -- 2.13.2 From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jul 2017 01:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 27628@debbugs.gnu.org Cc: Kei Kebreau Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.14995630375873 (code B ref 27628); Sun, 09 Jul 2017 01:18:03 +0000 Received: (at 27628) by debbugs.gnu.org; 9 Jul 2017 01:17:17 +0000 Received: from localhost ([127.0.0.1]:58263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0qb-0001We-92 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:17:17 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:37341 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0qZ-0001WV-8B for 27628@debbugs.gnu.org; Sat, 08 Jul 2017 21:17:16 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 8C89B520A83; Sun, 9 Jul 2017 03:17:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499563034; bh=D482fNw1bV3UbzuhUktIGwzQc7ygk/d2GkdcnePMZS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mLkGsqa9/0hidqD7gpp9YYFoD6d/AS7fxVelX7hU4XVFuhBvQeMscMvqlD55LqAJp oDSab538NgfmICgtBj29Ij6keUSRU8MqaKBJu+PwUNKHMpgX7/kvILYDPbUVkxPM7n UPNs5i7j3JG0vCrryG4ni6dD6OEXGiA6/eSPb0YA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499563033; bh=D482fNw1bV3UbzuhUktIGwzQc7ygk/d2GkdcnePMZS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q9hTir3UHTZk2vElzBuAzVEFwcmyruiRUxY3NounmA63j/DMjK6G/BsHIBrHBKAxZ YRpyXYw5+9h5gCl/gRNa0W7tDEj4HLW2Cb3Gwyj4JcwpwrGgpxRnbea/Egte9pwZXb HEdC4+uj5WH2NAeYRVR9pr1LmWqM8Q+g2x8xVMjA= Date: Sat, 8 Jul 2017 21:16:34 -0400 Message-Id: <20170709011634.12832-3-kei@openmailbox.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170709011634.12832-1-kei@openmailbox.org> References: <20170709011634.12832-1-kei@openmailbox.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * gnu/packages/maths.scm (maxima)[arguments]: Use modify-phases syntax. Modify 'post-install' phase. --- gnu/packages/maths.scm | 72 +++++++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 0b738e6a2..cfc4cafd2 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2097,36 +2097,48 @@ to BMP, JPEG or PNG image formats.") ;; '/tmp/nix-build-maxima-*', which won't exist at run time. ;; Work around that. #:make-flags (list "TMPDIR=/tmp") - #:phases (alist-cons-before - 'check 'pre-check - (lambda _ - (chmod "src/maxima" #o555)) - ;; Make sure the doc and emacs files are found in the - ;; standard location. Also configure maxima to find gnuplot - ;; without having it on the PATH. - (alist-cons-after - 'install 'post-install - (lambda* (#:key outputs inputs #:allow-other-keys) - (let* ((gnuplot (assoc-ref inputs "gnuplot")) - (out (assoc-ref outputs "out")) - (datadir (string-append out "/share/maxima/" ,version))) - (with-directory-excursion out - (mkdir-p "share/emacs") - (mkdir-p "share/doc") - (symlink - (string-append datadir "/emacs/") - (string-append out "/share/emacs/site-lisp")) - (symlink - (string-append datadir "/doc/") - (string-append out "/share/doc/maxima")) - (with-atomic-file-replacement - (string-append datadir "/share/maxima-init.lisp") - (lambda (in out) - (format out "~a ~s~a~%" - "(setf $gnuplot_command " - (string-append gnuplot "/bin/gnuplot") ")") - (dump-port in out)))))) - %standard-phases)))) + #:phases + (modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (chmod "src/maxima" #o555) + #t)) + ;; Make sure the doc and emacs files are found in the + ;; standard location. Also configure maxima to find gnuplot + ;; without having it on the PATH. + (add-after 'install 'post-install + (lambda* (#:key outputs inputs #:allow-other-keys) + (let* ((gnuplot (assoc-ref inputs "gnuplot")) + (out (assoc-ref outputs "out")) + (datadir (string-append out "/share/maxima/" ,version)) + (input-path (lambda (lib path) + (string-append + (assoc-ref inputs lib) path))) + (binaries '("gcc" "ld-wrapper" "binutils"))) + (with-directory-excursion out + (mkdir-p "share/emacs") + (mkdir-p "share/doc") + (symlink + (string-append datadir "/emacs/") + (string-append out "/share/emacs/site-lisp")) + (symlink + (string-append datadir "/doc/") + (string-append out "/share/doc/maxima")) + (with-atomic-file-replacement + (string-append datadir "/share/maxima-init.lisp") + (lambda (in out) + (format out "~a ~s~a~%" + "(setf $gnuplot_command " + (string-append gnuplot "/bin/gnuplot") ")") + (dump-port in out)))) + ;; Ensure that Maxima will have access to GCC and its required + ;; components at runtime. + (wrap-program (string-append out "/bin/maxima") + `("PATH" prefix + ,(map (lambda (binary) + (input-path binary "/bin")) + binaries)))) + #t))))) (home-page "http://maxima.sourceforge.net") (synopsis "Numeric and symbolic expression manipulation") (description "Maxima is a system for the manipulation of symbolic and -- 2.13.2 From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 1/3] gnu: gcl: Ensure gcc and binutils are available at runtime. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Jul 2017 12:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.149986108932156 (code B ref 27628); Wed, 12 Jul 2017 12:05:01 +0000 Received: (at 27628) by debbugs.gnu.org; 12 Jul 2017 12:04:49 +0000 Received: from localhost ([127.0.0.1]:34805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGNs-0008MZ-V7 for submit@debbugs.gnu.org; Wed, 12 Jul 2017 08:04:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGNr-0008MM-PH for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:04:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVGNh-0004kj-Od for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:04:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVGNh-0004kc-LC; Wed, 12 Jul 2017 08:04:37 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:56186 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dVGNh-0002sq-3C; Wed, 12 Jul 2017 08:04:37 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87lgnyqupx.fsf@openmailbox.org> <20170709011634.12832-1-kei@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 12 Jul 2017 14:04:35 +0200 In-Reply-To: <20170709011634.12832-1-kei@openmailbox.org> (Kei Kebreau's message of "Sat, 8 Jul 2017 21:16:32 -0400") Message-ID: <87eftlg8to.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Kei Kebreau skribis: > * gnu/packages/lisp.scm (gcl)[arguments]: Add -fgnu89-inline to CFLAGS. > Add GCC path to make-flags. Modify 'pre-conf' phase. Add 'wrap' phase. > --- > gnu/packages/lisp.scm | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm > index e92ae2ebf..6bd9e94a7 100644 > --- a/gnu/packages/lisp.scm > +++ b/gnu/packages/lisp.scm > @@ -88,6 +88,10 @@ > `(#:parallel-build? #f ; The build system seems not to be thread s= afe. > #:tests? #f ; There does not seem to be make check or anything s= imilar. > #:configure-flags '("--enable-ansi") ; required for use by the ma= xima package > + #:make-flags (list > + "CFLAGS=3D-fgnu89-inline" ; removes inline function= warnings > + (string-append "GCC=3D" (assoc-ref %build-inputs "g= cc") > + "/bin/gcc")) > #:phases (modify-phases %standard-phases > (add-before 'configure 'pre-conf > (lambda _ > @@ -104,6 +108,24 @@ > (string-append "SHELL=3D" (which "bash"))) > (("SHELL=3D/bin/sh") > (string-append "SHELL=3D" (which "sh")))) > + (substitute* "h/linux.defs" > + (("#CC") "CC") > + (("-fwritable-strings") "") > + (("-Werror") "")) > + #t)) > + (add-after 'install 'wrap > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let* ((gcl (assoc-ref outputs "out")) > + (input-path (lambda (lib path) > + (string-append > + (assoc-ref inputs lib) path)= )) > + (binaries '("gcc" "ld-wrapper" "binutils")= )) > + > + (wrap-program (string-append gcl "/bin/gcl") > + `("PATH" prefix > + ,(map (lambda (binary) > + (input-path binary "/bin")) > + binaries)))) Please add comments explaining why GCC and Binutils need to be available at run time (and also libc and ld-wrapper?). In the absence of an explanation, my natural reaction would be to think this is a bug. :-) OK with this change, thanks! Ludo=E2=80=99. From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 2/3] Revert "gnu: maxima: Ensure gcc is available at runtime." Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Jul 2017 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.149986112632248 (code B ref 27628); Wed, 12 Jul 2017 12:06:02 +0000 Received: (at 27628) by debbugs.gnu.org; 12 Jul 2017 12:05:26 +0000 Received: from localhost ([127.0.0.1]:34809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGOU-0008O1-8U for submit@debbugs.gnu.org; Wed, 12 Jul 2017 08:05:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGOS-0008Nl-RX for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:05:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVGON-00057B-6J for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:05:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVGON-00056z-3A; Wed, 12 Jul 2017 08:05:19 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:56188 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dVGOM-0004d4-Es; Wed, 12 Jul 2017 08:05:18 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-2-kei@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 12 Jul 2017 14:05:16 +0200 In-Reply-To: <20170709011634.12832-2-kei@openmailbox.org> (Kei Kebreau's message of "Sat, 8 Jul 2017 21:16:33 -0400") Message-ID: <87a849g8sj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Kei Kebreau skribis: > This reverts commit f2fa86cc82b5941bde63b666337eea59aa609e55. Please briefly explain why in the commit log (I assume that=E2=80=99s becau= se this is now done at the gcl level, right?). OK with this change. Ludo=E2=80=99. From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Jul 2017 12:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.149986118832372 (code B ref 27628); Wed, 12 Jul 2017 12:07:01 +0000 Received: (at 27628) by debbugs.gnu.org; 12 Jul 2017 12:06:28 +0000 Received: from localhost ([127.0.0.1]:34814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGPU-0008Q3-IX for submit@debbugs.gnu.org; Wed, 12 Jul 2017 08:06:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGPS-0008Po-Ds for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:06:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVGPM-0005Td-Fm for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:06:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVGPM-0005TZ-C5; Wed, 12 Jul 2017 08:06:20 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:56190 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dVGPL-0007C0-Q0; Wed, 12 Jul 2017 08:06:20 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 12 Jul 2017 14:06:17 +0200 In-Reply-To: <20170709011634.12832-3-kei@openmailbox.org> (Kei Kebreau's message of "Sat, 8 Jul 2017 21:16:34 -0400") Message-ID: <8760exg8qu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Kei Kebreau skribis: > * gnu/packages/maths.scm (maxima)[arguments]: Use modify-phases syntax. > Modify 'post-install' phase. [...] > + ;; Ensure that Maxima will have access to GCC and its req= uired > + ;; components at runtime. Please explain why it=E2=80=99s necessary, and why the fact that gcl does t= he same is insufficient. Otherwise LGTM, thanks! Ludo=E2=80=99. From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Jul 2017 12:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.149986124632484 (code B ref 27628); Wed, 12 Jul 2017 12:08:01 +0000 Received: (at 27628) by debbugs.gnu.org; 12 Jul 2017 12:07:26 +0000 Received: from localhost ([127.0.0.1]:34818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGQP-0008Rs-St for submit@debbugs.gnu.org; Wed, 12 Jul 2017 08:07:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVGQO-0008Rd-Kq for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVGQI-0005tM-AT for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 08:07:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVGQI-0005tI-7G; Wed, 12 Jul 2017 08:07:18 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:56192 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dVGQH-0001By-MR; Wed, 12 Jul 2017 08:07:18 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 12 Jul 2017 14:07:15 +0200 In-Reply-To: <20170709011634.12832-3-kei@openmailbox.org> (Kei Kebreau's message of "Sat, 8 Jul 2017 21:16:34 -0400") Message-ID: <871splg8p8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Kei Kebreau skribis: > + ;; Ensure that Maxima will have access to GCC and its req= uired > + ;; components at runtime. In fact, if it=E2=80=99s an optional feature, it would be better to take GC= C & co. from $PATH, because GCC is a huge dependency. (Same for the gcl change.) Thoughts? Ludo=E2=80=99. From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Jul 2017 01:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.149990770415092 (code B ref 27628); Thu, 13 Jul 2017 01:02:02 +0000 Received: (at 27628) by debbugs.gnu.org; 13 Jul 2017 01:01:44 +0000 Received: from localhost ([127.0.0.1]:35983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVSVk-0003vM-2w for submit@debbugs.gnu.org; Wed, 12 Jul 2017 21:01:44 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:34206 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVSVi-0003vE-AW for 27628@debbugs.gnu.org; Wed, 12 Jul 2017 21:01:42 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 17232507540; Thu, 13 Jul 2017 01:31:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499907701; bh=/3IZ6mhpU0oWW/eUnjBWZELsIivfhIWT1IzTCkrEWvg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V2o0ZgVU5mKA+l4lCKSJOaBPppgVka3QDENsF3HfJi833cgVE/2xXtoKc/a4b7v8B CZCuvUgO22lS22558tz1YSG5Z0Rztz+N2q4mXa3PBswNbJn0p3vwRaAyqhKERgW2U+ mv8D+9iFPg3u9FPnbbXuLnq0A98NbN8wjre/tSl4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499902305; bh=/3IZ6mhpU0oWW/eUnjBWZELsIivfhIWT1IzTCkrEWvg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YJCIQDSvoQbHnb/e2bisie9xDQPId0HP7at1lmI32GXyhvKcasnUOogUgKnz9I+Nk cLs+oRQUcPLXvMs+HrGJG7h4wRkEHfFkF6K6GbnyHuxTegUuoFGSusyhstaJYK3LJN eTYRMr7wiQkdUiG3LT7wOoY/Bbv0a5DESLcOBcE4= In-Reply-To: <871splg8p8.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 12 Jul 2017 14:07:15 +0200") References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Wed, 12 Jul 2017 19:31:31 -0400 Message-ID: <87y3rtnsfg.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Kei Kebreau skribis: > >> + ;; Ensure that Maxima will have access to GCC and its re= quired >> + ;; components at runtime. > > In fact, if it=E2=80=99s an optional feature, it would be better to take = GCC & > co. from $PATH, because GCC is a huge dependency. (Same for the gcl > change.) > > Thoughts? > I started on this patchset because Guix's Maxima cannot graph functions. This feature relies on GCL's 'compile' function. The 'compile' function seems to be a Common Lisp standard since at least the publication of the CLtL2 standard. Maxima assumes (correctly) that this function is present and relies on it for various base functionalities (compiling Maxima math functions to compiled Lisp functions, graphing, etc.). I turns out that fixing the underlying issue with GCL removes the need for GCC's presence at runtime, but binutils is still necessary due to Maxima using the 'compile' function from GCL directly. This stems from the GCC package not finding the binutils at runtime, i.e. guix environment --pure --ad-hoc gcc -- gcc hello-world.c returns gcc: error trying to exec 'as': execvp: No such file or directory but guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c compiles hello-world.c to its assembly language equivalent. Whether or not this is intended is unclear to me. FWIW, if the GCC package itself has access to the binutils at runtime, wrapping GCL and Maxima is unnecessa= ry. > Ludo=E2=80=99. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAllmsVQACgkQ5qXuPBlG eg3hQg//TKkkiVzHdgaMwED/5VxzeRQsxomTBpWvIyG6fvlpZ/ifObxcH6o/nUuU ZGDqiXkR/R/uaBlN9G1HOIEjLYgoekCi7XJo4sYeFiDZrTEhRZAB0UIRiAudJa7Z 8Y4kwOwu3etUfkqnoDIIcPFQL/ufoFXxEu2ATYdvAPjgmkus/i559T3ay3OTbFXj GOjY39cktvLj7wPyof3zxoPJc9pqoEVxbFrGqvfeQ9afomazko9VZewNuZMlBkrg 67WIHQC5BQ2vAiBCrgebgDJffZJCp/JSYczgUdQO9OWW1rxdmmnpLE3kGyC9dcOB wmbQyOMdjjO/i/hhVcXBuVAJf1EWip3yH8HI4qsulp1/B1BthSoe4JPdTzwcsV6P N1/ENsk3wX/GvR7jD/3Q1dTbYF/WVdRaSd1funVnijbJg5GqqYJaj7ORurkFJq9C xVVvIxHu41KtWSfunUv4m1BLEZ2UvFaOpSllTMxLAPmJJO3tFTtZTjowdN+4XpMC E4ZSJ9ZagjohDv+R8A4g62Ral8SRO3gdN3V4SURx8sR+XkYuLpHh3B0tnwcxpxuR NSqHPfsjJMz5PTleXZkjWjGvf2ihl3QX19ai1ih0hhhFZRDTO35Cjw8lGKevZYqd o5uKMmC1x/FsJeQ2gm7nHDPu+7wi+XtDbBiTu8g+SlWwhv0wMfk= =74p7 -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jul 2017 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.150027958713664 (code B ref 27628); Mon, 17 Jul 2017 08:20:02 +0000 Received: (at 27628) by debbugs.gnu.org; 17 Jul 2017 08:19:47 +0000 Received: from localhost ([127.0.0.1]:43168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX1Fr-0003YJ-Ke for submit@debbugs.gnu.org; Mon, 17 Jul 2017 04:19:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX1Fq-0003Y4-3t for 27628@debbugs.gnu.org; Mon, 17 Jul 2017 04:19:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX1Fh-0005Xn-J5 for 27628@debbugs.gnu.org; Mon, 17 Jul 2017 04:19:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX1Fh-0005Xi-FH; Mon, 17 Jul 2017 04:19:37 -0400 Received: from [193.50.110.212] (port=51176 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dX1Fg-0005a4-Vw; Mon, 17 Jul 2017 04:19:37 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Mon, 17 Jul 2017 10:19:34 +0200 In-Reply-To: <87y3rtnsfg.fsf@openmailbox.org> (Kei Kebreau's message of "Wed, 12 Jul 2017 19:31:31 -0400") Message-ID: <87lgnnfpbd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Kei, Kei Kebreau skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Kei Kebreau skribis: >> >>> + ;; Ensure that Maxima will have access to GCC and its r= equired >>> + ;; components at runtime. >> >> In fact, if it=E2=80=99s an optional feature, it would be better to take= GCC & >> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >> change.) >> >> Thoughts? >> > > I started on this patchset because Guix's Maxima cannot graph functions. > This feature relies on GCL's 'compile' function. The 'compile' function > seems to be a Common Lisp standard since at least the publication of the > CLtL2 standard. Maxima assumes (correctly) that this function is present > and relies on it for various base functionalities (compiling Maxima math > functions to compiled Lisp functions, graphing, etc.). Good point, =E2=80=98compile=E2=80=99 is standard CL. So yes, that alone is probably a good reason to keep references to GCC and Binutils (maybe add a comment explaining this.) Sorry for holding it back! > I turns out that fixing the underlying issue with GCL removes the need > for GCC's presence at runtime, but binutils is still necessary due to > Maxima using the 'compile' function from GCL directly. This stems from > the GCC package not finding the binutils at runtime, i.e. > > guix environment --pure --ad-hoc gcc -- gcc hello-world.c > > returns > > gcc: error trying to exec 'as': execvp: No such file or directory > > but > > guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98gcc=E2= =80=99 here. Thank you, Ludo=E2=80=99. From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2017 14:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.150038717220211 (code B ref 27628); Tue, 18 Jul 2017 14:13:01 +0000 Received: (at 27628) by debbugs.gnu.org; 18 Jul 2017 14:12:52 +0000 Received: from localhost ([127.0.0.1]:46679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXTF6-0005Fu-5B for submit@debbugs.gnu.org; Tue, 18 Jul 2017 10:12:52 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:39717 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXTF5-0005Fo-AJ for 27628@debbugs.gnu.org; Tue, 18 Jul 2017 10:12:51 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id BDE894EB031; Tue, 18 Jul 2017 16:11:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500387073; bh=E8GV0mv14l7/Ql6i0e5GVu+Zj1nPWsCwdHRHSuX6aRc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=M8caaVvdjd1GOs89h+wZOfDluQH3QPoXeEA417B99UEljPxmD31AB3EgGiGIegxq5 swozgDu7cZJT/4EKhq8gZSW3GAsiNkFbc73/ZvutxI8H5o61trC5sCg3/tD+tKT09y W8Uw55/e1ZJjydIeN6OrRIyTKTjHV1PXeq0N2dBc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500387073; bh=E8GV0mv14l7/Ql6i0e5GVu+Zj1nPWsCwdHRHSuX6aRc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=M8caaVvdjd1GOs89h+wZOfDluQH3QPoXeEA417B99UEljPxmD31AB3EgGiGIegxq5 swozgDu7cZJT/4EKhq8gZSW3GAsiNkFbc73/ZvutxI8H5o61trC5sCg3/tD+tKT09y W8Uw55/e1ZJjydIeN6OrRIyTKTjHV1PXeq0N2dBc= References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> Date: Tue, 18 Jul 2017 10:11:00 -0400 In-Reply-To: <87lgnnfpbd.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 17 Jul 2017 10:19:34 +0200") Message-ID: <87k235zvgr.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi Kei, > > Kei Kebreau skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Kei Kebreau skribis: >>> >>>> + ;; Ensure that Maxima will have access to GCC and its required >>>> + ;; components at runtime. >>> >>> In fact, if it=E2=80=99s an optional feature, it would be better to tak= e GCC & >>> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >>> change.) >>> >>> Thoughts? >>> >> >> I started on this patchset because Guix's Maxima cannot graph functions. >> This feature relies on GCL's 'compile' function. The 'compile' function >> seems to be a Common Lisp standard since at least the publication of the >> CLtL2 standard. Maxima assumes (correctly) that this function is present >> and relies on it for various base functionalities (compiling Maxima math >> functions to compiled Lisp functions, graphing, etc.). > > Good point, =E2=80=98compile=E2=80=99 is standard CL. > > So yes, that alone is probably a good reason to keep references to GCC > and Binutils (maybe add a comment explaining this.) Sorry for holding > it back! > >> I turns out that fixing the underlying issue with GCL removes the need >> for GCC's presence at runtime, but binutils is still necessary due to >> Maxima using the 'compile' function from GCL directly. This stems from >> the GCC package not finding the binutils at runtime, i.e. >> >> guix environment --pure --ad-hoc gcc -- gcc hello-world.c >> >> returns >> >> gcc: error trying to exec 'as': execvp: No such file or directory >> >> but >> >> guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c > > You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98gcc= =E2=80=99 here. > > Thank you, > Ludo=E2=80=99. Is gcc-toolchain a package one can use as an input? lisp.scm fails to load properly when I use the commencement.scm module. Could this be due to the circular dependency problem mentioned in the "Commentary" section of commencement.scm? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAlluFvUACgkQ5qXuPBlG eg0I4Q/+Kw7nJzLmBMvyhOSrNcBcXGmojIIkxFS/q+qNRKd2jMMSfJoCH3gAE8np DcysNNuggWPH6UtNKNEctAymQj8JkZZ5BbTCgNNsoVRI2XAkyopeGw5BbLHtYd2q mVfMC185fbksQaHO1svgPcya2yahkcXmdFlO+giEzYozrcmsvWkEXfiYVosTpfBU P1h/OqUxfqUWMV0cAc7wS4Wt/qOxbZvbpf3Fwfod5BWZJo1MPFxnGJZiL4+Ro3nK KT/lAxQM10ss5ITHurSFJ5gnBRKkd/evZAA8tQ1ViF2w3A8XoB76/Z6JHvg2YRYz cQtpz7Mvy5qfqsSxh0S+CV43xamkkYQQL1W8Cqs/55W0XEN2njAy3mP3qB0HbCtL XBJclOQq0IpveWW2PL5l9j0H8ZdaJRB5XySng0Ui2Typc2+cHATOzgGCfeWSU8y8 HVp/fNvkn/AeuY+aX0GnpL6FyMZ5hSown4XvZ0147qtyIBVnBRQwQOxLeAODm9J2 JzhaV8PXTzcVNqRX6vOFDDOaVpVoYPLqwWcNwtjDEGVSyEsfEah5jEDrswT/8t2d yNYvb60A6xzJRmQXalRbjbazARaWBP9PUjHaUWKKa0WBok9EepqZl0O/pJm8lNn1 DNtgj22LqUEkQ24CDeqBpEsCo7nFI3p/cScYB/HK4Wuj8FngKkc= =kglz -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2017 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.150038960624073 (code B ref 27628); Tue, 18 Jul 2017 14:54:02 +0000 Received: (at 27628) by debbugs.gnu.org; 18 Jul 2017 14:53:26 +0000 Received: from localhost ([127.0.0.1]:46758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXTsM-0006GD-IO for submit@debbugs.gnu.org; Tue, 18 Jul 2017 10:53:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXTsL-0006G1-5O for 27628@debbugs.gnu.org; Tue, 18 Jul 2017 10:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXTsB-0007Hs-Gu for 27628@debbugs.gnu.org; Tue, 18 Jul 2017 10:53:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXTsB-0007Hn-Dg; Tue, 18 Jul 2017 10:53:15 -0400 Received: from [193.50.110.220] (port=44340 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dXTsA-0006vr-VH; Tue, 18 Jul 2017 10:53:15 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> <87k235zvgr.fsf@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 18 Jul 2017 16:53:11 +0200 In-Reply-To: <87k235zvgr.fsf@openmailbox.org> (Kei Kebreau's message of "Tue, 18 Jul 2017 10:11:00 -0400") Message-ID: <87fudtx0dk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Kei Kebreau skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hi Kei, >> >> Kei Kebreau skribis: >> >>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>>> Kei Kebreau skribis: >>>> >>>>> + ;; Ensure that Maxima will have access to GCC and its required >>>>> + ;; components at runtime. >>>> >>>> In fact, if it=E2=80=99s an optional feature, it would be better to ta= ke GCC & >>>> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >>>> change.) >>>> >>>> Thoughts? >>>> >>> >>> I started on this patchset because Guix's Maxima cannot graph functions. >>> This feature relies on GCL's 'compile' function. The 'compile' function >>> seems to be a Common Lisp standard since at least the publication of the >>> CLtL2 standard. Maxima assumes (correctly) that this function is present >>> and relies on it for various base functionalities (compiling Maxima math >>> functions to compiled Lisp functions, graphing, etc.). >> >> Good point, =E2=80=98compile=E2=80=99 is standard CL. >> >> So yes, that alone is probably a good reason to keep references to GCC >> and Binutils (maybe add a comment explaining this.) Sorry for holding >> it back! >> >>> I turns out that fixing the underlying issue with GCL removes the need >>> for GCC's presence at runtime, but binutils is still necessary due to >>> Maxima using the 'compile' function from GCL directly. This stems from >>> the GCC package not finding the binutils at runtime, i.e. >>> >>> guix environment --pure --ad-hoc gcc -- gcc hello-world.c >>> >>> returns >>> >>> gcc: error trying to exec 'as': execvp: No such file or directory >>> >>> but >>> >>> guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c >> >> You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98gcc= =E2=80=99 here. >> >> Thank you, >> Ludo=E2=80=99. > > Is gcc-toolchain a package one can use as an input? lisp.scm fails to > load properly when I use the commencement.scm module. Could this be due > to the circular dependency problem mentioned in the "Commentary" section > of commencement.scm? Yeah, rather use gcc/ld-wrapper/glibc as inputs to avoid this problem. =E2=80=98gcc-toolchain=E2=80=99 is rather for users. Thanks, LUdo=E2=80=99. From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2017 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.15004159055488 (code B ref 27628); Tue, 18 Jul 2017 22:12:02 +0000 Received: (at 27628) by debbugs.gnu.org; 18 Jul 2017 22:11:45 +0000 Received: from localhost ([127.0.0.1]:46988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXaiX-0001QR-C6 for submit@debbugs.gnu.org; Tue, 18 Jul 2017 18:11:45 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:52349 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXaiU-0001QI-Tb for 27628@debbugs.gnu.org; Tue, 18 Jul 2017 18:11:43 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id E50AC4EC638; Wed, 19 Jul 2017 00:11:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500415869; bh=be/p4WzVC2TIJht69oVr+4eUpwzMSrdu1jzC1OxYXQQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AdRt41X2g5PxmD/PnyBKeLdE/mEO84EK1wqVO5eqA3d5BZ+rKPPdD0fjApOXV1eCU HOh+G7PhOLL+6nV93Q4vdde4MwgnzYl5emM+nGOjax/b6LX0CWyRRdCAPT6fRIIBg8 PI8xxwGF/5+8O9ztj6W6E9aueq6xQjnuOTruP5P8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500415868; bh=be/p4WzVC2TIJht69oVr+4eUpwzMSrdu1jzC1OxYXQQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BvKfK8LLSU352hg/JciVXSsS88md2/Oqekj8P/O3IPR0L68IGkBslQNuPs7nQdLm9 LkW/axA7UXB4iyVxnbiAjuDEG6l7QnhkekaG6bnSG5sLQWdGPMKb9R5I9NFYaUcWT7 mLgWGxK1GgVEJBw3LBDGPrw2fBEt8ZVcqog2Cab4= References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> <87k235zvgr.fsf@openmailbox.org> <87fudtx0dk.fsf@gnu.org> Date: Tue, 18 Jul 2017 18:10:40 -0400 In-Reply-To: <87fudtx0dk.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 18 Jul 2017 16:53:11 +0200") Message-ID: <87fudtz99b.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Kei Kebreau skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Hi Kei, >>> >>> Kei Kebreau skribis: >>> >>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>> >>>>> Kei Kebreau skribis: >>>>> >>>>>> + ;; Ensure that Maxima will have access to GCC and its required >>>>>> + ;; components at runtime. >>>>> >>>>> In fact, if it=E2=80=99s an optional feature, it would be better to t= ake GCC & >>>>> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >>>>> change.) >>>>> >>>>> Thoughts? >>>>> >>>> >>>> I started on this patchset because Guix's Maxima cannot graph function= s. >>>> This feature relies on GCL's 'compile' function. The 'compile' function >>>> seems to be a Common Lisp standard since at least the publication of t= he >>>> CLtL2 standard. Maxima assumes (correctly) that this function is prese= nt >>>> and relies on it for various base functionalities (compiling Maxima ma= th >>>> functions to compiled Lisp functions, graphing, etc.). >>> >>> Good point, =E2=80=98compile=E2=80=99 is standard CL. >>> >>> So yes, that alone is probably a good reason to keep references to GCC >>> and Binutils (maybe add a comment explaining this.) Sorry for holding >>> it back! >>> >>>> I turns out that fixing the underlying issue with GCL removes the need >>>> for GCC's presence at runtime, but binutils is still necessary due to >>>> Maxima using the 'compile' function from GCL directly. This stems from >>>> the GCC package not finding the binutils at runtime, i.e. >>>> >>>> guix environment --pure --ad-hoc gcc -- gcc hello-world.c >>>> >>>> returns >>>> >>>> gcc: error trying to exec 'as': execvp: No such file or directory >>>> >>>> but >>>> >>>> guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c >>> >>> You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98gcc= =E2=80=99 here. >>> >>> Thank you, >>> Ludo=E2=80=99. >> >> Is gcc-toolchain a package one can use as an input? lisp.scm fails to >> load properly when I use the commencement.scm module. Could this be due >> to the circular dependency problem mentioned in the "Commentary" section >> of commencement.scm? > > Yeah, rather use gcc/ld-wrapper/glibc as inputs to avoid this problem. > =E2=80=98gcc-toolchain=E2=80=99 is rather for users. When I do this, GCL still gives me the "gcc: error trying to exec 'as': execvp: No such file or directory" error if I don't wrap the binary with the binutils $PATH. The same has to be done for Maxima. I'm trying to find a way to package GCL in such a way that either (1) wrapping the GCL binary is unnecessary or (2) wrapping the GCL binary and *only* the GCL binary is necessary for the 'compile' function to work. > > Thanks, > LUdo=E2=80=99. P.S. Sorry for dragging this out for so long. I'm just trying to understand how I can minimize the package size of GCL-dependent packages. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAlluh2AACgkQ5qXuPBlG eg2zvA/8DBga5fFk69gUSnfNPIL5UxUYD+bP9c4Y1JQSh2OotsIlMhYvBiGUSVas W8762GJebsj3C+UwNI6Wlbx+Ne78nFCnyPoTpW6Vdgxkhtat+oFFVhBtbbffGOnC TdR21qw8R0OnHNTuGZCNmUgB9wYDFsVGDMQoqqyPdEDqIwbFpNgdn3/1VD2+nE9/ ebnnIDi1XUsvN5Zmbud7bpkU8/cnTLsL/vMfB4n9eFjOk/Feo1UvGQDQjEdYnXvM QK7PiZYlHlh8XnjQoCpq1laECnIF/o0gVjQqmSyp7nM9Pf/CdX4rZdVxN3oIvKU0 +rwAaaeSOAIBSYUvdCItcC88erCfVWIeLCXDm8lcGQgDaw+CAJp49W3f25bOq3V8 1E5F78J4XijnvuOAerQpNluTfFwyVRXwR+X0nRMcGVmiZ7eJ/bw2ZgJUjgYp2Zvk 01ZUMs6I74piuKCCiu/YCc5sk+eXNpBH87dJ4XD8mqRqeT3kN08gTYYJq8xj0SPm N1Q4bpWjlFWGkhxUaY/E4L74CPkByin1Qd+kTxYLxjiuCx6Dd7Hx5HdsOHpIheV5 xrPIJ3LeO65zGp47PvdSIjivYSzYnrY/BotwGZ/FoL+HgyyK88HsORj7AptgrNcd RRKMEodqbTkr8Tv/aVVj4iMnYa3x56yeSevOZnbfZSa9dfkxdQI= =5B8N -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2017 23:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.150042088212587 (code B ref 27628); Tue, 18 Jul 2017 23:35:02 +0000 Received: (at 27628) by debbugs.gnu.org; 18 Jul 2017 23:34:42 +0000 Received: from localhost ([127.0.0.1]:47009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXc0o-0003Gx-A5 for submit@debbugs.gnu.org; Tue, 18 Jul 2017 19:34:42 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXc0m-0003Gp-40 for 27628@debbugs.gnu.org; Tue, 18 Jul 2017 19:34:40 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id ACE27206DB; Tue, 18 Jul 2017 19:34:39 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 18 Jul 2017 19:34:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=Jeeh5bg3/NVD6AVqe8JeEKFKdhWFecSM9SssRWDma Ao=; b=TZuqsVVKFtsIKc3XUWsARIEfZ3WO8aYq3Qu6fulkymip0iZu0/Sp4neBE +SBu77zqtgQKPxbbB9k//F4Z0EDz3n0z2I/o1jeIr1Eukd8hN4+RQR12gYzK5FXW iIV3JGXDxrWySFqf6IV3GYo/xrHMG7o1FeTFa82gX3iMzRRl4wdT3eeXuy5lmsAM HBppr2mPqmbgquqHXr2dj+7GLRAtcfhHBydt2cXfBGI9Reo8nKFw4WIb3gqUrXpL Lq2O+DgPEu2wvNQzg0lmurSUd5rk1vSk7OGZVT26sLPvYRF4pR004dquLkj1xk5H nH1mgQsOOo19BOTd+6e6nRcvS+lxA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=Jeeh5bg3/NVD6AVqe8 JeEKFKdhWFecSM9SssRWDmaAo=; b=cXxEEOKUUKrjPrHR9waaa9sRCSm0jx/MUD M/H/DRuTw47J28Whpd9qmxR31BfPsNCEE+ayfyHkONZz1vwznXR08SI3HSvbvY4n IMrs8LUgC5eowUZ31F5sSlVcL5cKrbRGNSq3dw0wDS1FWpcJmSbnJHg/1Rwyzuo/ ixNEkmNgqbZveUY7U+SuhbgcxvFaoQa4ulk2b7hWyw32OG5lsYlsI5d0B/1vNjKj C1dVpZ7BmocfIhcQo23W5QBnuH1Yy3qRdX5UwWwQmBWjg8aIvzaPffoLMTp3PMOv uv5CXPVxPgXTDID133ABmGYtRRvwVWp/3JP8hXrPU0nsb4rMGUog== X-ME-Sender: X-Sasl-enc: I+MIB71yGc8wJdZ2iDbscqoiL7j/l7OtSUul0oTP7X9F 1500420879 Received: from localhost (unknown [188.113.81.93]) by mail.messagingengine.com (Postfix) with ESMTPA id 381117E31F; Tue, 18 Jul 2017 19:34:39 -0400 (EDT) From: Marius Bakke In-Reply-To: <87fudtz99b.fsf@openmailbox.org> References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> <87k235zvgr.fsf@openmailbox.org> <87fudtx0dk.fsf@gnu.org> <87fudtz99b.fsf@openmailbox.org> User-Agent: Notmuch/0.24.2 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) Date: Wed, 19 Jul 2017 01:34:37 +0200 Message-ID: <87h8y95ng2.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Kei Kebreau writes: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Kei Kebreau skribis: >> >>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>>> Hi Kei, >>>> >>>> Kei Kebreau skribis: >>>> >>>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>>> >>>>>> Kei Kebreau skribis: >>>>>> >>>>>>> + ;; Ensure that Maxima will have access to GCC and its required >>>>>>> + ;; components at runtime. >>>>>> >>>>>> In fact, if it=E2=80=99s an optional feature, it would be better to = take GCC & >>>>>> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >>>>>> change.) >>>>>> >>>>>> Thoughts? >>>>>> >>>>> >>>>> I started on this patchset because Guix's Maxima cannot graph functio= ns. >>>>> This feature relies on GCL's 'compile' function. The 'compile' functi= on >>>>> seems to be a Common Lisp standard since at least the publication of = the >>>>> CLtL2 standard. Maxima assumes (correctly) that this function is pres= ent >>>>> and relies on it for various base functionalities (compiling Maxima m= ath >>>>> functions to compiled Lisp functions, graphing, etc.). >>>> >>>> Good point, =E2=80=98compile=E2=80=99 is standard CL. >>>> >>>> So yes, that alone is probably a good reason to keep references to GCC >>>> and Binutils (maybe add a comment explaining this.) Sorry for holding >>>> it back! >>>> >>>>> I turns out that fixing the underlying issue with GCL removes the need >>>>> for GCC's presence at runtime, but binutils is still necessary due to >>>>> Maxima using the 'compile' function from GCL directly. This stems from >>>>> the GCC package not finding the binutils at runtime, i.e. >>>>> >>>>> guix environment --pure --ad-hoc gcc -- gcc hello-world.c >>>>> >>>>> returns >>>>> >>>>> gcc: error trying to exec 'as': execvp: No such file or directory >>>>> >>>>> but >>>>> >>>>> guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c >>>> >>>> You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98gc= c=E2=80=99 here. >>>> >>>> Thank you, >>>> Ludo=E2=80=99. >>> >>> Is gcc-toolchain a package one can use as an input? lisp.scm fails to >>> load properly when I use the commencement.scm module. Could this be due >>> to the circular dependency problem mentioned in the "Commentary" section >>> of commencement.scm? >> >> Yeah, rather use gcc/ld-wrapper/glibc as inputs to avoid this problem. >> =E2=80=98gcc-toolchain=E2=80=99 is rather for users. > > When I do this, GCL still gives me the > > "gcc: error trying to exec 'as': execvp: No such file or directory" > > error if I don't wrap the binary with the binutils $PATH. The same has to > be done for Maxima. I'm trying to find a way to package GCL in such a > way that either (1) wrapping the GCL binary is unnecessary or (2) > wrapping the GCL binary and *only* the GCL binary is necessary for the > 'compile' function to work. This is because GCC does not retain an absolute reference to binutils' 'as'. I came across this too in: https://lists.gnu.org/archive/html/guix-devel/2016-11/msg01104.html If you have some cycles to spare, it could be interesting to try and use a GCC built with '--with-as=3D'. E.g. (define-public gcc-with-as (package (inherit gcc) (arguments `(,@(substitute-keyword-arguments (package-arguments grub) ((#:configure-flags flags ''()) `(cons (string-append "--with-as=3D" (assoc-ref %build-inputs "binutils") "/bin/as") ,flags))))))) (define-public gcl (package ... (native-inputs `(("gcc" ,gcc-with-as))))) I've been meaning to try this a while, but you know... ;) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAllumw0ACgkQoqBt8qM6 VPpjsAf/VA1DRHpK/FdPEb6AgIdcwmeqeu+DbiNPBt7XKm3uT2KbKtqOphoNY30m /zvNs333JTpBQv7+/TmK2l8p7W2awP1oyvR0y+ICtHTFJWc4eGhodpkW5+ahLD9+ ILODzVg/Fy+bIZNeOOPX0R5S79egJtfBFmyYvOgg7sX7eV5A9XVlt/afQ25i8321 XNSe2vAn25CQwRGwdnMOhXPzFTH5T3rCqhuA4pF1hnC0NKKWimNeUr+F+fOM2Fdx ISp2V1lCTvvN6UOj++eIxob6rqwLdQy1a1mXbdcXZX6vBppi2t2XYKWKd36vImAV mks+6vTNDwarfNURvvN3Ejj/j4g8Iw== =6nsy -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 Jul 2017 08:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Kei Kebreau Cc: 27628@debbugs.gnu.org Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.15004545411566 (code B ref 27628); Wed, 19 Jul 2017 08:56:02 +0000 Received: (at 27628) by debbugs.gnu.org; 19 Jul 2017 08:55:41 +0000 Received: from localhost ([127.0.0.1]:47139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXklg-0000PB-Vg for submit@debbugs.gnu.org; Wed, 19 Jul 2017 04:55:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXklf-0000Ow-DG for 27628@debbugs.gnu.org; Wed, 19 Jul 2017 04:55:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXklW-0005BR-Tu for 27628@debbugs.gnu.org; Wed, 19 Jul 2017 04:55:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXklW-0005BN-QB; Wed, 19 Jul 2017 04:55:30 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:44712 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dXklW-0006RJ-9F; Wed, 19 Jul 2017 04:55:30 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> <87k235zvgr.fsf@openmailbox.org> <87fudtx0dk.fsf@gnu.org> <87fudtz99b.fsf@openmailbox.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Thermidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 19 Jul 2017 10:55:27 +0200 In-Reply-To: <87fudtz99b.fsf@openmailbox.org> (Kei Kebreau's message of "Tue, 18 Jul 2017 18:10:40 -0400") Message-ID: <87h8y8olfk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Kei, Kei Kebreau skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >>> Is gcc-toolchain a package one can use as an input? lisp.scm fails to >>> load properly when I use the commencement.scm module. Could this be due >>> to the circular dependency problem mentioned in the "Commentary" section >>> of commencement.scm? >> >> Yeah, rather use gcc/ld-wrapper/glibc as inputs to avoid this problem. >> =E2=80=98gcc-toolchain=E2=80=99 is rather for users. > > When I do this, GCL still gives me the > > "gcc: error trying to exec 'as': execvp: No such file or directory" > > error if I don't wrap the binary with the binutils $PATH. The same has to > be done for Maxima. Right, sorry for the confusion: you also need Binutils in $PATH. > I'm trying to find a way to package GCL in such a way that either (1) > wrapping the GCL binary is unnecessary or (2) wrapping the GCL binary > and *only* the GCL binary is necessary for the 'compile' function to > work. Wrapping the =E2=80=98gcl=E2=80=99 binary alone is probably not enough, bec= ause a program like Maxima compiled with =E2=80=98gcl=E2=80=99 does not invoke the= =E2=80=98gcl=E2=80=99 binary. Perhaps instead of wrapping we should patch references to =E2=80=9Cgcc=E2= =80=9D in the source with their absolute file name or something along these lines? Ludo=E2=80=99. PS: Apologies for making hand-wavy comments and letting you do the actual work. :-) From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jul 2017 02:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Marius Bakke Cc: 27628@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.150051632927288 (code B ref 27628); Thu, 20 Jul 2017 02:06:01 +0000 Received: (at 27628) by debbugs.gnu.org; 20 Jul 2017 02:05:29 +0000 Received: from localhost ([127.0.0.1]:48374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dY0qF-000762-PS for submit@debbugs.gnu.org; Wed, 19 Jul 2017 22:05:29 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:59282 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dY0qD-00075t-V7 for 27628@debbugs.gnu.org; Wed, 19 Jul 2017 22:05:26 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 0D3914F10F5; Thu, 20 Jul 2017 04:03:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500516213; bh=ToSKd6yeF7cw/W4uq5nM3ko6XgB8iLVMzzxNPsvbv3M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NgKHWE4D1BgBNs7pHVQm30STx5N2cD7HkPTQZ8FfuWy5widGbbrgloBMT1cLnmnRJ etu2rTNwwr6dija16XHCy+PzeOdMr8DoO6Gm2Kr/YVkPk4NOITjF64vwnWAUL7q4sE a6cGJOSlhU/v4fixfWqRfOuBbyjpUTYrMSoj+hlM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR002 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500516211; bh=ToSKd6yeF7cw/W4uq5nM3ko6XgB8iLVMzzxNPsvbv3M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ortCDU35Q3DeDniF7+ofeqzvL+0O3JuIsPDGgEn5DcXKzE9njqeFRYIWSbnIc3wGF 3iisQvqxznrJW93sRh1ZG0B9IMUaKUnYuJWVIEurow+BUnJEyHFMWJm4tC1K7nYMYp O5Y0xezyaNXjOa5V7BvtJUroS11Xlo0hyAXWRCfI= In-Reply-To: <87h8y95ng2.fsf@fastmail.com> (Marius Bakke's message of "Wed, 19 Jul 2017 01:34:37 +0200") References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> <87k235zvgr.fsf@openmailbox.org> <87fudtx0dk.fsf@gnu.org> <87fudtz99b.fsf@openmailbox.org> <87h8y95ng2.fsf@fastmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Wed, 19 Jul 2017 22:03:22 -0400 Message-ID: <87a83zzwyd.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Marius Bakke writes: > Kei Kebreau writes: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Kei Kebreau skribis: >>> >>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>> >>>>> Hi Kei, >>>>> >>>>> Kei Kebreau skribis: >>>>> >>>>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>>>> >>>>>>> Kei Kebreau skribis: >>>>>>> >>>>>>>> + ;; Ensure that Maxima will have access to GCC and its required >>>>>>>> + ;; components at runtime. >>>>>>> >>>>>>> In fact, if it=E2=80=99s an optional feature, it would be better to= take GCC & >>>>>>> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >>>>>>> change.) >>>>>>> >>>>>>> Thoughts? >>>>>>> >>>>>> >>>>>> I started on this patchset because Guix's Maxima cannot graph functi= ons. >>>>>> This feature relies on GCL's 'compile' function. The 'compile' funct= ion >>>>>> seems to be a Common Lisp standard since at least the publication of= the >>>>>> CLtL2 standard. Maxima assumes (correctly) that this function is pre= sent >>>>>> and relies on it for various base functionalities (compiling Maxima = math >>>>>> functions to compiled Lisp functions, graphing, etc.). >>>>> >>>>> Good point, =E2=80=98compile=E2=80=99 is standard CL. >>>>> >>>>> So yes, that alone is probably a good reason to keep references to GCC >>>>> and Binutils (maybe add a comment explaining this.) Sorry for holding >>>>> it back! >>>>> >>>>>> I turns out that fixing the underlying issue with GCL removes the ne= ed >>>>>> for GCC's presence at runtime, but binutils is still necessary due to >>>>>> Maxima using the 'compile' function from GCL directly. This stems fr= om >>>>>> the GCC package not finding the binutils at runtime, i.e. >>>>>> >>>>>> guix environment --pure --ad-hoc gcc -- gcc hello-world.c >>>>>> >>>>>> returns >>>>>> >>>>>> gcc: error trying to exec 'as': execvp: No such file or directory >>>>>> >>>>>> but >>>>>> >>>>>> guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c >>>>> >>>>> You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98g= cc=E2=80=99 here. >>>>> >>>>> Thank you, >>>>> Ludo=E2=80=99. >>>> >>>> Is gcc-toolchain a package one can use as an input? lisp.scm fails to >>>> load properly when I use the commencement.scm module. Could this be due >>>> to the circular dependency problem mentioned in the "Commentary" secti= on >>>> of commencement.scm? >>> >>> Yeah, rather use gcc/ld-wrapper/glibc as inputs to avoid this problem. >>> =E2=80=98gcc-toolchain=E2=80=99 is rather for users. >> >> When I do this, GCL still gives me the >> >> "gcc: error trying to exec 'as': execvp: No such file or directory" >> >> error if I don't wrap the binary with the binutils $PATH. The same has to >> be done for Maxima. I'm trying to find a way to package GCL in such a >> way that either (1) wrapping the GCL binary is unnecessary or (2) >> wrapping the GCL binary and *only* the GCL binary is necessary for the >> 'compile' function to work. > > This is because GCC does not retain an absolute reference to binutils' > 'as'. I came across this too in: > > https://lists.gnu.org/archive/html/guix-devel/2016-11/msg01104.html > > If you have some cycles to spare, it could be interesting to try and > use a GCC built with '--with-as=3D'. E.g. > > (define-public gcc-with-as > (package > (inherit gcc) > (arguments > `(,@(substitute-keyword-arguments (package-arguments grub) > ((#:configure-flags flags ''()) > `(cons (string-append "--with-as=3D" > (assoc-ref %build-inputs "binutils") > "/bin/as") > ,flags))))))) > > (define-public gcl > (package ... > (native-inputs `(("gcc" ,gcc-with-as))))) > > I've been meaning to try this a while, but you know... ;) I had the oppurtunity to try this earlier and gcc finds its assembler, but not the linker! The package size increase is about 25% (255.9 MiB up from 206.6 MiB). I'm going to look into this further. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAllwD2oACgkQ5qXuPBlG eg3IFw//VVGQlHYusL1cyXQQHVoZvGxY6S0Xx1d5jUCTHiAicbNjw2x6JMMizxLY bsjL+3YFrUsfkTzwGGSzs05x3nxOc/+tjwnagwnLKn5KO3+QkV75wMBl6d6XTjgP nltuSGzGs9o2xvTi7Kw6eqICBWdYLzNGA2PmdhI+t7Vl48d+QcUzEyww+nJapYVr /+GEQbCTHC2V9+OUyTeCFfu4lMhXE7VDwQGoJ8FGInCGcg+WbDBt1t1gFhk5zsFH BcVA/989zOkF+bBJdTS5r1P0TY5Si44QuJcE0QqPrv3XQ24EZkDTRAOkIULbjgQf NMxic+uwtoKUe9qBY10YiZlsTexiMeNKf11YU4BiIJtJ818Nrojyj2teP65676qm E9mjytVDNbTyJcLSePgcRIo0H9lXE2GNThWEjsXH8098MGWaCcc9zV+398EMIANl nwamFdziPWIJVt7OOyQCQw8u58Qtr8aV1u2BMyW5uIIXVfe7U8WEmA2LKI83Cvl9 oBQhlJ5UEQ6j9kD/tvHrb74V+8KNO+3Fq/I446oM5OMmxn/YHryh4S3cbRkiBaky 1YxNfhP6CamaPMt+Xj7yMhChCce0YeAB0HqNNe7I5JTPI0SIcq9jba8LTkU9BTt+ aaEHnsNNNLoyq/1MEKwhS7ngpWuKhiqr3CBsdE9WSTHzn0M0/X8= =Bk58 -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Jul 2017 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27628 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Marius Bakke Cc: 27628@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 27628-submit@debbugs.gnu.org id=B27628.150091924614249 (code B ref 27628); Mon, 24 Jul 2017 18:01:02 +0000 Received: (at 27628) by debbugs.gnu.org; 24 Jul 2017 18:00:46 +0000 Received: from localhost ([127.0.0.1]:54583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZhew-0003hj-3Z for submit@debbugs.gnu.org; Mon, 24 Jul 2017 14:00:46 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:48000 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZhet-0003ha-92 for 27628@debbugs.gnu.org; Mon, 24 Jul 2017 14:00:43 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 03B2C4EB065; Mon, 24 Jul 2017 18:12:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500912743; bh=TRq/SoKWM8vzmDePeQOz7VNEbPuCauZmrUjbgrF7uwQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mPs8PwxLJU7fZp8Iq4H2bqrD5NeekiL3JoTKfE+ump8NWOzHiPLZcE0bnRPUzH80N V20G65gVmy+yCnePAXQFMvk2OMx9RpJ+myx2fjklYKiEZEt1Mnad0Ps1NWqcnoHx8g U/ACyLjVQT+qCc/lS5cFbnIXEqN/u2d45mu+a1Oo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500912529; bh=TRq/SoKWM8vzmDePeQOz7VNEbPuCauZmrUjbgrF7uwQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=EUN55frXt62XlfOCrh4n2uSVcuIw8D2zQrLyFJVq4F48zrKz6+XuGgtbQUrVVkBr8 Ulr2RIDxlMxHYvoBkGeZKxIxCz5EW+2mFwMjKDtTgIlrT43AP+T0oROUKTyekxivZ5 vVFF3jPCeRepdacrEAG4FhxNC7cyhHsfHAP9T+XY= References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> <87k235zvgr.fsf@openmailbox.org> <87fudtx0dk.fsf@gnu.org> <87fudtz99b.fsf@openmailbox.org> <87h8y95ng2.fsf@fastmail.com> Date: Mon, 24 Jul 2017 12:08:37 -0400 In-Reply-To: <87h8y95ng2.fsf@fastmail.com> (Marius Bakke's message of "Wed, 19 Jul 2017 01:34:37 +0200") Message-ID: <87bmo9u8ai.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Marius Bakke writes: > Kei Kebreau writes: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Kei Kebreau skribis: >>> >>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>> >>>>> Hi Kei, >>>>> >>>>> Kei Kebreau skribis: >>>>> >>>>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>>>> >>>>>>> Kei Kebreau skribis: >>>>>>> >>>>>>>> + ;; Ensure that Maxima will have access to GCC and its required >>>>>>>> + ;; components at runtime. >>>>>>> >>>>>>> In fact, if it=E2=80=99s an optional feature, it would be better to= take GCC & >>>>>>> co. from $PATH, because GCC is a huge dependency. (Same for the gcl >>>>>>> change.) >>>>>>> >>>>>>> Thoughts? >>>>>>> >>>>>> >>>>>> I started on this patchset because Guix's Maxima cannot graph functi= ons. >>>>>> This feature relies on GCL's 'compile' function. The 'compile' funct= ion >>>>>> seems to be a Common Lisp standard since at least the publication of= the >>>>>> CLtL2 standard. Maxima assumes (correctly) that this function is pre= sent >>>>>> and relies on it for various base functionalities (compiling Maxima = math >>>>>> functions to compiled Lisp functions, graphing, etc.). >>>>> >>>>> Good point, =E2=80=98compile=E2=80=99 is standard CL. >>>>> >>>>> So yes, that alone is probably a good reason to keep references to GCC >>>>> and Binutils (maybe add a comment explaining this.) Sorry for holding >>>>> it back! >>>>> >>>>>> I turns out that fixing the underlying issue with GCL removes the ne= ed >>>>>> for GCC's presence at runtime, but binutils is still necessary due to >>>>>> Maxima using the 'compile' function from GCL directly. This stems fr= om >>>>>> the GCC package not finding the binutils at runtime, i.e. >>>>>> >>>>>> guix environment --pure --ad-hoc gcc -- gcc hello-world.c >>>>>> >>>>>> returns >>>>>> >>>>>> gcc: error trying to exec 'as': execvp: No such file or directory >>>>>> >>>>>> but >>>>>> >>>>>> guix environment --pure --ad-hoc gcc -- gcc -S hello-world.c >>>>> >>>>> You would need =E2=80=98gcc-toolchain=E2=80=99 rather than =E2=80=98g= cc=E2=80=99 here. >>>>> >>>>> Thank you, >>>>> Ludo=E2=80=99. >>>> >>>> Is gcc-toolchain a package one can use as an input? lisp.scm fails to >>>> load properly when I use the commencement.scm module. Could this be due >>>> to the circular dependency problem mentioned in the "Commentary" secti= on >>>> of commencement.scm? >>> >>> Yeah, rather use gcc/ld-wrapper/glibc as inputs to avoid this problem. >>> =E2=80=98gcc-toolchain=E2=80=99 is rather for users. >> >> When I do this, GCL still gives me the >> >> "gcc: error trying to exec 'as': execvp: No such file or directory" >> >> error if I don't wrap the binary with the binutils $PATH. The same has to >> be done for Maxima. I'm trying to find a way to package GCL in such a >> way that either (1) wrapping the GCL binary is unnecessary or (2) >> wrapping the GCL binary and *only* the GCL binary is necessary for the >> 'compile' function to work. > > This is because GCC does not retain an absolute reference to binutils' > 'as'. I came across this too in: > > https://lists.gnu.org/archive/html/guix-devel/2016-11/msg01104.html > > If you have some cycles to spare, it could be interesting to try and > use a GCC built with '--with-as=3D'. E.g. > > (define-public gcc-with-as > (package > (inherit gcc) > (arguments > `(,@(substitute-keyword-arguments (package-arguments grub) > ((#:configure-flags flags ''()) > `(cons (string-append "--with-as=3D" > (assoc-ref %build-inputs "binutils") > "/bin/as") > ,flags))))))) > > (define-public gcl > (package ... > (native-inputs `(("gcc" ,gcc-with-as))))) > > I've been meaning to try this a while, but you know... ;) Based on playing around with this for a while, I'm concluding that the core issue here is that the GCC binary from our GCC package for whatever reason doesn't retain an absolute path to the GNU binutils binaries. I have a hunch that Marius' solution could work, but I haven't been able to get GCC to build with the necessary "--with-as" and "--with-ld" flags yet. If no one has a better idea, I will push the 'binary-wrapping' patches that at least get GCL and Maxima to compile things successfully. Thanks to all involved, Kei --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAll2G4YACgkQ5qXuPBlG eg3E/hAAqOIYLsJd+7Rd8O6S8a6XVfdfIq4xJt4CA+QFFdRzaD5R+hzmuzIHQQ6N TTVcMFw78zkrFp9SMub5zhPa+z4D5XCtz92gpyjdBq2E/rkiJHnqSbySBLEdlOYI rd4lqVbz/iSja7NZBV4QpHyhMLCshmqUVk2DTQekRj7PxyjKFyuN7gL7JJkBqHse bp1AJhjPj8W85P8VLKJIKRyWbT+zr+Wuon0eqvpckQOi6KiSk3kra1GjOdNM8LXk C6QuVecMoF3S0xJ14dGPCwzMkwPS5+ZArrRcoFDcE8QWCNW7pBtiaI+vubFu6If7 /He4hpk8fODyRxAcTfSGTCF+FuS3icBpE0uLXFq1WfzWiS0gWr3v19JVpTXg8JUn +Wg37fK2A2saSYCMLI7dtM3z0VbrsSPca4SNZLLWhFAz1NY/O1uo23eWo2sZ7AA3 GlZ64rw8AoIa7+0Z/2TzbYrIWyzC+HOgSZUOmrZn2Z5QQ/LVVFx9Sk/g5Gn3d+l9 Yt+p9l3Hu5TrFwvygehJsces6suhi2b11p4+FzgLA1psgM+be8hblb9hw+g5oxe3 qFqfCg0aAIyl0pZ/lkwzOrn4wuyC6QyncltCqUaYGoV9uvegwcDOijDQgA/wPgls jGgQAZpsAXwQqlhwV3AbHoGEmV0m5Y+pIYFlcR3Y4TA0g6Nm8Z8= =P+6O -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 21:20:51 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kei Kebreau Subject: bug#27628: closed (Re: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime.) Message-ID: References: <87poco64ms.fsf@openmailbox.org> <87lgnyqupx.fsf@openmailbox.org> X-Gnu-PR-Message: they-closed 27628 X-Gnu-PR-Package: guix-patches Reply-To: 27628@debbugs.gnu.org Date: Tue, 25 Jul 2017 13:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1500988442-8987-1" This is a multi-part message in MIME format... ------------=_1500988442-8987-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #27628: Fix compilation features of GCL and Maxima which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27628@debbugs.gnu.org. --=20 27628: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27628 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1500988442-8987-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 27628-done) by debbugs.gnu.org; 25 Jul 2017 13:13:55 +0000 Received: from localhost ([127.0.0.1]:55195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZzes-0002KW-PU for submit@debbugs.gnu.org; Tue, 25 Jul 2017 09:13:54 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:49820 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZzer-0002KO-Bs for 27628-done@debbugs.gnu.org; Tue, 25 Jul 2017 09:13:53 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 4723A4E81C8; Tue, 25 Jul 2017 15:13:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500988432; bh=oTGGkGSeRmC5QYE1UmmbWLuzcTSscCDlx0Mbny/Fv1o=; h=From:To:Subject:References:Date:In-Reply-To:From; b=ZJYQydmN+iHx+kOOW17jS6RUnUCoaUhjkhbNpzZuqO4vAn/hhJLuBUwKwqyJUGEMd 7KTP1967HKTjsk0rX7Zs349CHABq2Y53QJWZDAwlTt2v4adIijCJKG/HZ/LuXWi8Zb 6Nu5+voYNgMXB2nRlcFlHAMxyBcZZRmmHuSdKz54= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR003 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1500988431; bh=oTGGkGSeRmC5QYE1UmmbWLuzcTSscCDlx0Mbny/Fv1o=; h=From:To:Subject:References:Date:In-Reply-To:From; b=x9LvS8/cbU66Uxs2VX1lkAhy7/Iq5qoHEqoJijrpSVqzrC5NkKTD8Qssu7w1huLFK A5NVegs1NbPHm8CDRA6B7UHmnS2eW7veaJ/iHSTDHprpzwSjxrjZ3uqz3lftphHTRW 1FmKdbqdPSzeYm5fyULB1wBtPbXKHGMgryvi4w6c= To: 27628-done@debbugs.gnu.org Subject: Re: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. References: <20170709011634.12832-1-kei@openmailbox.org> <20170709011634.12832-3-kei@openmailbox.org> <871splg8p8.fsf@gnu.org> <87y3rtnsfg.fsf@openmailbox.org> <87lgnnfpbd.fsf@gnu.org> Date: Tue, 25 Jul 2017 09:13:47 -0400 In-Reply-To: <87lgnnfpbd.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 17 Jul 2017 10:19:34 +0200") Message-ID: <87poco64ms.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 27628-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain Changes pushed. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAll3RAwACgkQ5qXuPBlG eg3P0A//RmJNiF0OYCB7Wvu2Gj2DBOYpGlijYAqDmaVPOCtBzChYOj/9aLvaBzzI fKOr0eult/XSJJM7sLMtJAxgdxIE0HDATZ/0LJ0xXu/202Qy7EF5es+rH8DQSC6o lWW5QkAIveSbxahu3y2pliKuaI1Wykfy9VUSS9KQ7b26TBCtiMI8q/6zk3LAaoce IydTe4UFOfGlVmfd1FeD4/uqaHGE9qRCRdic1ddzKtvcRABiIngVgmThomG54h27 8iBcXjtH0H7KlBh47cZro1KLE4gVgIpcSTJRBz15nkqaL2yEXagy+QACN++Km0DW Mzt6qDo+lzCFtviwOkucASBDaWmmRnkstyXqQHf2tHtDaqFvkxG8YNcN81DIuy7+ 2bpP3MlLwDZCg7NhqPIjzpCA0aC03wywYO46FXdL5EOfWD8qlOSkW0uBE4K+za69 8bE/4k183xT/hWgzUcQudH//XgmyPfalKUZgrSeUeGtrpHyWHJPFODLPA81+bAv9 zOe3U4UMz87n+XlKbbXNOYQPkAlJaw5BKOVsaYTPNQsoVZ4b9h0/vMq1nap0R12x kuyhRQ+mIFYHfsU/FLO+hs22frue2lACuoX6YpibuqNGKJHrSAg56QqF1QHXGuNs FuYRcDGx0HbJ1qvuNHKYMQTZV+cG0qSn7bOrl62YI4zxHe9k0EM= =TH4v -----END PGP SIGNATURE----- --=-=-=-- ------------=_1500988442-8987-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Jul 2017 01:13:17 +0000 Received: from localhost ([127.0.0.1]:58252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0mj-0001Pk-1b for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dU0mh-0001PR-87 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dU0ma-0003PI-45 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41602) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dU0ma-0003PE-13 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 21:13:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dU0mY-0000wA-RD for guix-patches@gnu.org; Sat, 08 Jul 2017 21:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dU0mV-0003O0-Mu for guix-patches@gnu.org; Sat, 08 Jul 2017 21:13:06 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:56758 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dU0mV-0003NN-EE for guix-patches@gnu.org; Sat, 08 Jul 2017 21:13:03 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id B007F520914; Sun, 9 Jul 2017 03:12:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499562778; bh=QC+9BjKu3H6Mr79A0IhagUDSHWBOWFn13ujIefClFg4=; h=From:To:Subject:Date:From; b=Tv5KyLHv3I4E0huJUCVeMGn6bvDtFuO4lNrmC/b/uSbnFyJJgntsurAZWeJHnIW/F WelL/Se3CXYidq0fXBKbHyUdXniq2+Yz6PsC+/uu7FrFvyLUgREDjx9CPlIPztyNAI 6Xn/70RON/FKtIvr1PN8Cbx1qnQKmrFynt1Aruac= From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1499562777; bh=QC+9BjKu3H6Mr79A0IhagUDSHWBOWFn13ujIefClFg4=; h=From:To:Subject:Date:From; b=JwCrCYASCvxVMhZqYOOIFTuUWcJbcX+guO4rXQQY8mN60NHtPHToDj3BuBMls2V5F qJDr1RWM7QKoj/b7Ea3pqWhBV2xnJTH78zyEPbDWAnD9iSyGKNSPRrUyNuFrHECvqX kJ768HxDe3PpK7NCYypYyNw0zi/pVLZcFMHu/XlI= To: guix-patches@gnu.org Subject: Fix compilation features of GCL and Maxima Date: Sat, 08 Jul 2017 21:12:26 -0400 Message-ID: <87lgnyqupx.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain These patches are the best solution I've come upon so far to enable GCL and Maxima to compile functions. The current issue is that GCL (and, by proxy, Maxima) requires GCC to compile functions, but GCC and binutils are not available to GCL at runtime. This issue in GCL causes issues in Maxima (e.g. the graphing package "draw" does not function). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAllhgvsACgkQ5qXuPBlG eg0cHQ//aT5b6dG76g3Xf7SNfzQGu14TLUhbYVezzYiARQrm5ZSD3IdCSJL5ri0w /zTstPW5j8Z7/QmgZW5RA1LBGnpBb4/101GZuUk0gAyjA054aUpYywhw5mLQ+4dt DmPptvAvKMsp6fVjLRpwCXw446XkZzyIobWwOcDujx7FN/1ZYbTkn9nbCdor9hlR qlHVBe7ShZupGTB8Ce8v/eOfiTST6SAA02JYnEwtOzj2PdqBYiqb790SPv2lbRiv yaIYS/a9g7OS9v6rClqN4VOpq7DWHF0ldw7BGyO0vavSQ+8YFnmcy9+OjnWL8hgY a53I8FjBY6HSb0ejSZbIXRnVZMqOKs2spcy4xltolj9m3Ghm69bPV3NWmrviGmqY +xDA3IrkUvtXaBtx4fQEbxiWYFzQgVnfiRHqyqJMfwXnNpMbLScpIO8LfCvs5qrR nic8mvP2J6tVUZyRRkJo5mZ+0+OQKAR5lDS9V8rBKkaPyc0/IQQUhyaM6l5KcUz6 PGy9/pksYh6lEl7Fx4Ig6zbq57OAdEr5jVoPE48BJ3z0GNxZM2wTgiqas3J1pKSZ xjgN0Pz91veq5sM8vAxahyABo7vQF/RwprBqxX2jAR3SAs7MHxnnVnz4fSHeAetA F2iMSa/J0osWSs9G7IFZ6g926jJgqQQ+2vIRcx6HCsSFnQDDaOA= =AdhT -----END PGP SIGNATURE----- --=-=-=-- ------------=_1500988442-8987-1--