help-guix
[Top][All Lists]
Advanced

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

Re: GCC and Chicken-Scheme compilation


From: Ekaitz at ElenQ Technology
Subject: Re: GCC and Chicken-Scheme compilation
Date: Thu, 30 Jan 2020 16:34:01 +0000

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

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, January 30, 2020 4:33 PM, pelzflorian (Florian Pelz) 
<address@hidden> wrote:

> On Thu, Jan 30, 2020 at 02:45:44PM +0000, Ekaitz at ElenQ Technology wrote:
>
> > 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.
>
> 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’t know.
>
> Regards,
> Florian





reply via email to

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