all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GCC and Chicken-Scheme compilation
@ 2020-01-30 14:45 Ekaitz at ElenQ Technology
  2020-01-30 15:33 ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 7+ messages in thread
From: Ekaitz at ElenQ Technology @ 2020-01-30 14:45 UTC (permalink / raw)
  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 -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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-31 10:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-30 14:45 GCC and Chicken-Scheme compilation Ekaitz at ElenQ Technology
2020-01-30 15:33 ` pelzflorian (Florian Pelz)
2020-01-30 16:34   ` Ekaitz at ElenQ Technology
2020-01-30 18:51     ` pelzflorian (Florian Pelz)
     [not found]       ` <VlJEd8ck9jxEGy2lGsKn84Z6_h7r-M5nY5PIPzvS2iqOhJM_Zvq3J2UqXLVPq7CjkEj6JHsfDxoX3Qx8Ji32_MvYlCXYobpOo4Y647cL9n8=@elenq.tech>
     [not found]         ` <20200130212207.w3tuvoltyg22gkxg@pelzflorian.localdomain>
     [not found]           ` <20200130212716.ed54n4u2oabghlv3@pelzflorian.localdomain>
2020-01-30 21:33             ` Ekaitz at ElenQ Technology
2020-01-31  7:10               ` pelzflorian (Florian Pelz)
2020-01-31 10:35                 ` Ekaitz at ElenQ Technology

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.