help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC and Chicken-Scheme compilation


From: Ekaitz at ElenQ Technology
Subject: GCC and Chicken-Scheme compilation
Date: Thu, 30 Jan 2020 14:45:44 +0000

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 -lchicken 
-lm -ldl

ekaitz ~/projects/chicken$ gcc 'hello.o' -o 'hello' 
-L/gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib 
-Wl,-R/gnu/store/k85zs837x6pr61l37gfz92h3nljr8ka7-chicken-5.0.0/lib -lchicken 
-ldl

ekaitz ~/projects/chicken$ ./hello
Chicken
```


Thank you,

Ekaitz


ElenQ Technology
Ethical Innovation





reply via email to

[Prev in Thread] Current Thread [Next in Thread]