chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] how to compile files, modules, shared libraries, pro


From: Marco Maggi
Subject: Re: [Chicken-users] how to compile files, modules, shared libraries, programs
Date: Tue, 26 Mar 2019 12:53:53 +0100

Kristian Lein-Mathisen wrote:

> Hi Marco,

> So what is  it that you want?  Your Makefile looks ok to  me, though I
> think all of  it might have been  less complicated to do  with just an
> .egg-file.

I  have written  this Makefile  fully guessing  everything, because  the
available documentation is not enough for me.  Besides, it does not work
as it is:

$ make all
csc -I.  -c -o module-for-expand.o module-for-expand.scm
csc -library -shared -L.  -o library-for-expand.so module-for-expand.o
/usr/bin/ld: module-for-expand.o: relocation R_X86_64_32 against 
`.rodata.str1.1' can not be used when making a shared object; recompile with 
-fPIC
module-for-expand.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Error: shell command terminated with non-zero exit status 256: 'gcc' 
'module-for-expand.o' -o 'library-for-expand.so' -shared -shared -L. 
-L/opt/chicken/5.0.0/lib64 -Wl,-R/opt/chicken/5.0.0/lib64 -lchicken -lm -ldl
Makefile:36: recipe for target 'library-for-expand.so' failed
make: *** [library-for-expand.so] Error 1

-- 
Marco Maggi



reply via email to

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