chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Portable installs broken?


From: Oleg Kolosov
Subject: Re: [Chicken-users] Portable installs broken?
Date: Sun, 06 Apr 2014 23:56:07 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 04/06/14 19:55, Daniel Leslie wrote:
I'm trying to create a 'portable' distribution of chicken and am running into a simple issue. Basically, the built-in library search path isn't always valid, and csc and csi don't appear to pay attention to LD_LIBRARY_PATH.

Thus, the following:

bin $ ./csi -n

CHICKEN

Error: (string-append) bad argument type - not a string: #f

bin $ echo "(display \"Hello world\")" | ./csc - -o foo

Error: (string-append) bad argument type - not a string: #f

    Call history:

    <syntax>      (##core#begin (display "Hello world"))
    <syntax>      (display "Hello world")    <--

Error: shell command terminated with non-zero exit status 17920: bin/chicken - -output-file foo.c

Alright, so with csi and csc we can get around this by explicitly providing a -include-path parameter at the command line. But what of installing eggs? Chicken-install takes no such parameter, and invocations of csc from setup scripts are not mutable to accept the parameter.

It seems to me that the easy fix would be to import a path from some environment variable by default. Does such an environment variable exist already?

-Dan



_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users
csc uses definitions from chicken-config.h which is generated at build time. Some of those can be modified with environment variables. This can be quite inconvenient. I'm currently working on CMake based solution which does not depend on csc. It handles parallel builds, separate build folders, cross compilation, etc. Check https://github.com/bazurbat/cmake-modules/blob/master/cmake/ChickenUse.cmake and example usage in tests/chicken to see how chicken command line is constructed. Maybe this will help you.
-- 
Regards, Oleg

reply via email to

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