From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: GCC and Chicken-Scheme compilation Date: Thu, 30 Jan 2020 16:33:05 +0100 Message-ID: <20200130153305.jyliym2lcrtnbs3t@pelzflorian.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57597) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixBod-0007IZ-47 for help-guix@gnu.org; Thu, 30 Jan 2020 10:33:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixBoc-0007s7-48 for help-guix@gnu.org; Thu, 30 Jan 2020 10:33:10 -0500 Received: from pelzflorian.de ([5.45.111.108]:50714 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixBob-0007r1-Kx for help-guix@gnu.org; Thu, 30 Jan 2020 10:33:10 -0500 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Ekaitz at ElenQ Technology Cc: "help-guix\\@gnu.org" On Thu, Jan 30, 2020 at 02:45:44PM +0000, Ekaitz at ElenQ Technology wrot= e: > Hi, >=20 > I had some issues with the chicken compiler. I attach later the results= of the compilation. But the summary is the following: >=20 > 1. I create a hello world chicken program > 2. Run the compiler: csc hello-world.scm > 3. Errors appear: libchicken.so: undefined reference to `log@GLIBC_2.29= ' > 4. If I get the gcc command that csc runs internally and remove the lin= king of math (removing -lm) it compiles and runs perfectly. >=20 FWIW this works for me (with a slightly outdated Guix System): florian ~$ guix environment --ad-hoc chicken florian ~ [env]$ cd /tmp florian /tmp [env]$ cat a.scm=20 (display (exp 2)) (newline) florian /tmp [env]$ csc a.scm florian /tmp [env]$ ./a 7.38905609893065 Is your program more complicated? I do not really know Chicken, maybe some GCC search path is wrong. Don=E2=80=99t know. Regards, Florian