all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ekaitz at ElenQ Technology <ekaitz@elenq.tech>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: "help-guix\\\\@gnu.org" <help-guix@gnu.org>
Subject: Re: GCC and Chicken-Scheme compilation
Date: Thu, 30 Jan 2020 16:34:01 +0000	[thread overview]
Message-ID: <TYt3Re-1pE54Obr_Zi434QACTaaNxU-jSgR5fPC5iXxqIbBfinETUH-xr3ped312vLMLs_5a11S8f4BCzIO-7G1xhH0C5oQtZfcZ9j2xNgw=@elenq.tech> (raw)
In-Reply-To: <20200130153305.jyliym2lcrtnbs3t@pelzflorian.localdomain>

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) <pelzflorian@pelzflorian.de> 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	other threads:[~2020-01-30 16:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='TYt3Re-1pE54Obr_Zi434QACTaaNxU-jSgR5fPC5iXxqIbBfinETUH-xr3ped312vLMLs_5a11S8f4BCzIO-7G1xhH0C5oQtZfcZ9j2xNgw=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=help-guix@gnu.org \
    --cc=pelzflorian@pelzflorian.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.