chicken-users
[Top][All Lists]
Advanced

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

Re: What is this message trying to tell me? csc: could not find linked e


From: Matt Welland
Subject: Re: What is this message trying to tell me? csc: could not find linked extension: chicken.csi
Date: Thu, 26 May 2022 20:51:01 -0400

Thanks Felix, that was the hint I needed. I was calling (repl). Once I removed that it compiled static just fine.


On Wed, May 25, 2022 at 5:00 PM <felix.winkelmann@bevuta.com> wrote:
> ck5 csm -program kvpub -static
>   '/home/mrwellan/data/buildall/ck5.3/bin/csc' '-c' '-static' '-J'
> '/home/mrwellan/data/kvpub/mtargs.scm' '-I' '/home/mrwellan/data/kvpub'
> '-C' '-I' '-C' '/home/mrwellan/data/kvpub' '-unit' 'mtargs'
> '-emit-link-file' 'mtargs.link' '-o' 'mtargs.o'
>   '/home/mrwellan/data/buildall/ck5.3/bin/csc' '-o' 'kvpub' '-I'
> '/home/mrwellan/data/kvpub' '-C' '-I' '-C' '/home/mrwellan/data/kvpub'
> '-static' 'mtargs.o' '-uses' 'mtargs' '/home/mrwellan/data/kvpub/inval.scm'
> csc: could not find linked extension: chicken.csi
> command failed with non-zero exit status:
> '/home/mrwellan/data/buildall/ck5.3/bin/csc' '-o' 'kvpub' '-I'
> '/home/mrwellan/data/kvpub' '-C' '-I' '-C' '/home/mrwellan/data/kvpub'
> '-static' 'mtargs.o' '-uses' 'mtargs' '/home/mrwellan/data/kvpub/inval.scm'

You are trying to link statically a program that uses the (chicken csi)
module, but there is no such object file for static linking available
(chicken.csi lives in "csi" the interpreter and is not part of libchicken
or the set of statically linkable extensions).

You have to create a shared object and load it into csi to be able to
use exports from the chicken.csi module.


felix



--
--
Complexity is your enemy. Any fool can make something complicated.
It is hard to keep things simple. - Richard Branson.

reply via email to

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