From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVSW7-0003QQ-6t for guix-patches@gnu.org; Wed, 12 Jul 2017 21:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVSW3-0007cz-15 for guix-patches@gnu.org; Wed, 12 Jul 2017 21:02:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVSW2-0007cg-Qg for guix-patches@gnu.org; Wed, 12 Jul 2017 21:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVSW2-0003vs-CH for guix-patches@gnu.org; Wed, 12 Jul 2017 21:02:02 -0400 Subject: [bug#27628] [PATCH 3/3] gnu: maxima: Ensure gcc and binutils available at runtime. Resent-Message-ID: From: Kei Kebreau 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> 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" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27628@debbugs.gnu.org --=-=-= 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----- --=-=-=--