chicken-users
[Top][All Lists]
Advanced

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

Re: csm static build fails on yaml egg


From: Matt Welland
Subject: Re: csm static build fails on yaml egg
Date: Sat, 11 Jun 2022 19:17:37 -0400

Ok. csm is helpful but not a magic bullet. I assumed that because "csm -program yamltest" worked without additional switches etc I could merely add -static to get a static build. Adding all.options and yamltest.options with the needed info works:

cat all.options
-program yamltest -C -I/usr/include
cat yamltest.options 
L -L/usr/lib/x86_64-linux-gnu -L -lyaml -static -L -static -L -lm -L -ldl
> ldd yamltest
$ file yamltest
yamltest: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=642844535ad617a9378ce2ff7a7616e74dcdd940, not stripped

Thanks Felix.

On Sat, Jun 11, 2022 at 4:32 PM <felix.winkelmann@bevuta.com> wrote:
> This is on ubuntu, chicken 5.3:
>
> Test code:
> (module yamltest *
> (import scheme
>         chicken.string
>         yaml)
> (write (yaml-load "test.yaml")))
>
> > csm -static -program yamltest
>   '/home/ubuntu/data/buildall/w23-0-ck5.3/bin/csc' '-o' 'yamltest' '-I'
> '/home/ubuntu/data/opensrc/testsnips/yaml_static' '-C' '-I' '-C'
> '/home/ubuntu/data/opensrc/testsnips/yaml_static' '-static'
> '/home/ubuntu/data/opensrc/testsnips/yaml_static/yamltest.scm'
> /home/ubuntu/data/buildall/w23-0-ck5.3/lib/chicken/11/yaml.o: In function
> `f_3911':
> yaml.static.c:(.text+0xae1c): undefined reference to `yaml_parser_delete'
> yaml.static.c:(.text+0xae48): undefined reference to `yaml_parser_delete'

Does this egg require an external library to be linked? It looks like it
does. You need to add that.


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]