Re: How to select a c compiler for chicken-install

2020-08-06 Thread Mario Domenech Goulart
Hi Andrew,

On Thu, 6 Aug 2020 10:34:10 -0500 Andrew Eggenberger 
 wrote:

> I used a gcc from macports to build and install chicken 5.2 from
> source on macosx. I'd like chicken-install to use the same c compiler
> for egg installation but it defaults to the xcode c compiler. I've
> tried numerous environment variables and options to no avail. Is there
> a way to set this manually?

You can specify the C compiler via the CSC_OPTIONS environment
variable.  Example:

$ CSC_OPTIONS="-cc the-c-compiler -ld the-linker -verbose" chicken-install 
-verbose the-egg 

You might also want to set the linker.  For that you can use the -ld
flag for csc.

The -verbose flags are optional, but might be helpful to see what
happens during the egg installation process.

All the best.
Mario
-- 
http://parenteses.org/mario



Re: How to select a c compiler for chicken-install

2020-08-06 Thread alice maz
set C_COMPILER in config.make and rebuild. I use this to do dev builds with 
clang and just checked that it does make chicken-install use the same compiler

if you've already tried this and it didn't work, run `make spotless` and 
`chicken-install -purge` and try again. the eggname.build.sh scripts that 
chicken-install generates define CHICKEN_CC based on whatever's hardcoded in 
chicken-config.h, so if there's old files from a previous build remaining they 
could be getting in the way

-alice


On Thu, Aug 6, 2020, at 10:34, Andrew Eggenberger wrote:
> I used a gcc from macports to build and install chicken 5.2 from source on 
> macosx. I'd like chicken-install to use the same c compiler for egg 
> installation but it defaults to the xcode c compiler. I've tried numerous 
> environment variables and options to no avail. Is there a way to set this 
> manually?
> 
> *Andrew*