[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] link error with PROGRAM_PREFIX and compiling eggs
From: |
Felix |
Subject: |
Re: [Chicken-users] link error with PROGRAM_PREFIX and compiling eggs |
Date: |
Thu, 09 May 2013 22:21:23 +0200 (CEST) |
From: Alan Post <address@hidden>
Subject: [Chicken-users] link error with PROGRAM_PREFIX and compiling eggs
Date: Wed, 8 May 2013 19:03:39 -0601
> I have built chicken using the PROGRAM_PREFIX option:
>
> $ gmake PROGRAM_PREFIX=foo- ...
>
> When I try to install an egg, using foo-chicken-install, I get an error
> from gcc that it cannot locate -lchicken:
>
> installing iset:1.8 ...
> changing current directory to /tmp/temp835e.3607/iset
> /home/a/wa/foo/bin/foo-csi -bnq -setup-mode -e "(require-library
> setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e
> "(extension-name-and-version '(\"iset\" \"1.8\"))"
> /tmp/temp835e.3607/iset/iset.setup
> /home/a/wa/foo/bin/foo-csc -feature compiling-extension -setup-mode -s
> -O3 -inline -d1 iset.scm -j iset
> /usr/bin/ld: cannot find -lchicken
> collect2: ld returned 1 exit status
>
> Error: shell command terminated with non-zero exit status 256: gcc iset.o
> -o iset.so - shared -L/usr/X11R6/lib -L/usr/local/lib -L"/home/a/wa/foo/lib"
> -Wl,-R"/home/a/wa/foo/lib" -lchicken -lm -lpthread
>
> This would be expected, as it should be trying to find -lfoo-chicken.
> Looking at the code, it appears there is some confusion between -host
> and PROGRAM_PREFIX:
>
> $ foo-csc -libs
> -lchicken -lm -lpthread
>
> $ foo-csc -host -libs
> -lfoo-chicken -lm -lpthread
>
> The chicken-install code is apparently expecting the first command here,
> 'foo-csc -libs', to return '-lfoo-chicken'. I'm not sure what the
> command-line should be when -host is specified.
Can you show us the output of "foo-chicken-bug"?
cheers,
felix