chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Error compiling on AMD64 linux machine


From: Richard Hollos
Subject: Re: [Chicken-users] Error compiling on AMD64 linux machine
Date: Sun, 26 Sep 2010 16:54:35 -0600
User-agent: Mutt/1.5.9i

>Date: Sat, 25 Sep 2010 00:59:39 +0200 (CEST)
>From: Felix <address@hidden>
>To: address@hidden
>Cc: address@hidden
>Subject: Re: [Chicken-users] Error compiling on AMD64 linux machine
>
>>From: Richard Hollos <address@hidden>
>>Subject: Re: [Chicken-users] Error compiling on AMD64 linux machine
>>Date: Thu, 23 Sep 2010 15:24:16 -0600
>>
>> Problem solved!
>> 
>> We noticed that after doing a "make" the library files that started as .scm 
>> in
>> /usr/local/src/ did not have corresponding .so files and so never appeared
>> after "make...install" in /usr/local/lib/chicken/5/
>> 
>> We concluded that we needed a bootstrap compiler. It wasn't clear from 
>> reading
>> the README that I needed one. I got the impression that it was only needed
>> when compiling a development version.
>> 
>> So we downloaded this old compiler binary, as the README file suggests when
>> needing a bootstrapper:
>> http://code.call-cc.org/bootstrap/chicken-boot-4.3.7-linux-x86.bz2
>> 
>> Ran bunzip2 on it, then in /usr/local/src/chicken-4.6.0/ did the following:
>> make PLATFORM=linux CHICKEN=./chicken-boot-4.3.7-linux-x86 boot-chicken
>> 
>> This made the executable chicken-boot in /usr/local/src
>> then did:
>> make PLATFORM=linux CHICKEN=./chicken-boot
>> 
>> Now installed with the command:
>> make PLATFORM=linux CHICKEN=./chicken-boot install
>> 
>> There were no errors, and
>> LD_DEBUG=libs /usr/local/bin/chicken-install -update-db -:d
>> also showed no errors.
>> 
>> It was the old chicken and egg problem, you can't get the first chicken
>> without an egg or another chicken. I guess this is why the chicken crossed 
>> the
>> road: to get chicken-boot.
>> 
>> Thank you very much Felix for your help.
>
>
>Well, I didn't do much to help you here!
>
>Is the executable passed to `make' ("CHICKEN=...") invoked during the
>build-process? Could you show me the commands that get executed, or
>even better, a build log?  (this will probably need a rebuild to
>reproduce this problem, and if it's a hassle, nevermind, but I really
>would like to find out what's going on here).

Felix,

Attached separately are 2 build logs:
1)Uninstalling and reinstalling the old way (causes install error)
2)installing the new way (bootstrap, no install error)

Notes for build log #1
-----------------------
Uninstalling as root with:
make PLATFORM=linux uninstall
Then went into /usr/local/lib to see if there was any chicken stuff left.
I found libchicken.a, which I removed.
Also removed the entire /usr/local/lib/chicken/5/ directory
and removed the entire /usr/local/src/chicken-4.6.0/ directory

Now to install. As regular user in /usr/local/src/ did:
wget http://code.call-cc.org/releases/4.6.0/chicken-4.6.0.tar.gz
Then in directory /usr/local/src/chicken-4.6.0/ did:
make PLATFORM=linux
Now as root, did:
make PLATFORM=linux install
This produced the same error as before:
"Error: (require) cannot load core library: chicken-ffi-syntax"

Notes for build log #2
----------------------
Now repeating as described on the mailing list, the way we got rid of the
error by using a bootstrap compiler.
Note: at this point, uninstall was not performed.
In /usr/local/src/chicken-4.6.0/ did:
wget http://code.call-cc.org/bootstrap/chicken-boot-4.3.7-linux-x86.bz2
Ran bunzip2 on it, then ran as regular user:
make PLATFORM=linux CHICKEN=./chicken-boot-4.3.7-linux-x86 boot-chicken
make PLATFORM=linux CHICKEN=./chicken-boot
Now, as root, installed with the command:
make PLATFORM=linux CHICKEN=./chicken-boot install

I don't know if there is any connection to the install error in build log #1,
but even after getting rid of the error as demonstrated in build log #2, I am
getting this error after installing hyde (Moritz Heidkamp's static website
generator) and running it with the command "hyde":
--------------------------------------------------
Error: (load-library) unable to load library
posix
"libchicken.so.5: cannot open shared object file: No such file or directory"

        Call history:

        <syntax>          (quote posix)
        <syntax>          (##core#quote posix)
        <syntax>          (##core#begin (##core#begin (##core#undefined))
        (##core#undefined))
        <syntax>          (##core#begin (##core#undefined))
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <eval>    (##sys#require (quote hyde))
        <eval>    (##sys#require (quote hyde-atom))
        <eval>    (##sys#require (quote environments))
        <eval>    (##sys#load-library (quote posix) #f) <--
--------------------------------------------------
Note that this error can be reproduced in the csi REPL with the command:
(load-library 'posix)
Also the library file that it says cannot be found, "libchicken.so.5", actually
does exist in /usr/local/lib/ and I still get the error after doing "ldconfig"
as root.

If there is any information that I have left out, which you would like to see,
please let me know.

Thank you,
Richard



reply via email to

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