From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ekaitz at ElenQ Technology Subject: GCC and Chicken-Scheme compilation Date: Thu, 30 Jan 2020 14:45:44 +0000 Message-ID: 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]:41370) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixB4w-0004dn-6m for help-guix@gnu.org; Thu, 30 Jan 2020 09:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixB4u-0001DB-B1 for help-guix@gnu.org; Thu, 30 Jan 2020 09:45:57 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:31172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixB4t-00019w-PD for help-guix@gnu.org; Thu, 30 Jan 2020 09:45:56 -0500 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: "help-guix\\@gnu.org" 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.29' 4. If I get the gcc command that csc runs internally and remove the linking= of math (removing -lm) it compiles and runs perfectly. What am I missing here? Does GLIBC 2.29 have any issues with the math? Do I= miss any extra dep? Here's a copy of my bash session: ``` bash ekaitz ~/projects/chicken$ ls hello.scm ekaitz ~/projects/chicken$ csc hello.scm /gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib/libchicken.so= : undefined reference to `exp@GLIBC_2.29' /gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib/libchicken.so= : undefined reference to `log@GLIBC_2.29' /gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib/libchicken.so= : undefined reference to `log2@GLIBC_2.29' /gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib/libchicken.so= : undefined reference to `pow@GLIBC_2.29' collect2: error: ld returned 1 exit status Error: shell command terminated with non-zero exit status 256: 'gcc' 'hello= .o' -o 'hello' -L/gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/= lib -Wl,-R/gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib -lc= hicken -lm -ldl ekaitz ~/projects/chicken$ gcc 'hello.o' -o 'hello' -L/gnu/store/k85zs837x6= pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib -Wl,-R/gnu/store/k85zs837x6pr61l37= gfz92h3nljr8ka7-chicken-5.0.0/lib -lchicken -ldl ekaitz ~/projects/chicken$ ./hello Chicken ``` Thank you, Ekaitz ElenQ Technology Ethical Innovation