From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ekaitz at ElenQ Technology Subject: Re: GCC and Chicken-Scheme compilation Date: Thu, 30 Jan 2020 16:34:01 +0000 Message-ID: References: <20200130153305.jyliym2lcrtnbs3t@pelzflorian.localdomain> Reply-To: Ekaitz at ElenQ Technology 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]:51088) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixCli-0000j9-Lz for help-guix@gnu.org; Thu, 30 Jan 2020 11:34:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixClh-0001Yc-ET for help-guix@gnu.org; Thu, 30 Jan 2020 11:34:14 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:44682) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixClg-0001SM-UD for help-guix@gnu.org; Thu, 30 Jan 2020 11:34:13 -0500 In-Reply-To: <20200130153305.jyliym2lcrtnbs3t@pelzflorian.localdomain> 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: "pelzflorian (Florian Pelz)" Cc: "help-guix\\\\@gnu.org" Hi, My program is just a `(print "Chicken")`. I just made a C program that loads math.h and makes a log and it works well= but the Chicken compiler still fails. Can you show me your LIBRARY_PATH? Mine might be wrong... Thank you very much! ElenQ Technology Ethical Innovation =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Thursday, January 30, 2020 4:33 PM, pelzflorian (Florian Pelz) wrote: > On Thu, Jan 30, 2020 at 02:45:44PM +0000, Ekaitz at ElenQ Technology wrot= e: > > > Hi, > > I had some issues with the chicken compiler. I attach later the results= of the compilation. But the summary is the following: > > > > 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.2= 9' > > 4. If I get the gcc command that csc runs internally and remove the li= nking of math (removing -lm) it compiles and runs perfectly. > > 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 > (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