unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: Ekaitz at ElenQ Technology <ekaitz@elenq.tech>
Cc: "help-guix\\@gnu.org" <help-guix@gnu.org>
Subject: Re: GCC and Chicken-Scheme compilation
Date: Thu, 30 Jan 2020 16:33:05 +0100	[thread overview]
Message-ID: <20200130153305.jyliym2lcrtnbs3t@pelzflorian.localdomain> (raw)
In-Reply-To: <qro6SFoeB8ZyjoPmklR9Q3MUONCvE08ZgPiCDs_-IRiPLUowk7OlqbtYCzLXK4cjQXfAbLTKzoVIxWcBVpolyKEcqEnWJL6Tf6A2M5yxEk0=@elenq.tech>

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 15:33 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) [this message]
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

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20200130153305.jyliym2lcrtnbs3t@pelzflorian.localdomain \
    --to=pelzflorian@pelzflorian.de \
    --cc=ekaitz@elenq.tech \
    --cc=help-guix@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).