chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] link error with PROGRAM_PREFIX and compiling eggs


From: Alan Post
Subject: Re: [Chicken-users] link error with PROGRAM_PREFIX and compiling eggs
Date: Thu, 9 May 2013 15:30:16 -0600

attached.

On Thu, May 09, 2013 at 10:21:23PM +0200, Felix wrote:
> 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

-- 
my personal website: http://c0redump.org/

Attachment: chicken-bug-report.2013-04-09
Description: Text document


reply via email to

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