attached.
On Thu, May 09, 2013 at 10:21:23PM +0200, Felix wrote:
> From: Alan Post <[email protected]>
> 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/
--------------------------------------------------
This is a bug report generated by chicken-bug(1).
Date: Thu May 9 15:28:10 2013
User information: ("a" "*" 1000 1000 "Alan Post" "/home/a" "/bin/ksh")
Host information:
machine type: x86
software type: unix
software version: openbsd
build platform: gnu
CHICKEN version is:
Version 4.8.0.3 (stability/4.8.0) (rev 091c3d9)
openbsd-unix-gnu-x86 [ manyargs dload ptables ]
compiled 2013-03-12 on aeryn.xorinia.dim (Darwin)
Home directory: /home/a/wa/foo/share/foo-chicken
Include path: ("/home/a/wa/foo/share/foo-chicken")
Features:
chicken chicken-4 chicken-4.8 data-structures dload
extras files gnu hygienic-macros irregex
irregex-is-core-unit little-endian manyargs module-environments
openbsd
ports ptables srfi-0 srfi-10 srfi-12
srfi-13 srfi-14 srfi-17 srfi-2 srfi-23
srfi-28 srfi-30 srfi-39 srfi-46 srfi-55
srfi-6 srfi-6 srfi-61 srfi-62 srfi-88
srfi-9 srfi-98 syntax-rules tcp unix
utils x86
chicken-config.h:
/* GENERATED */
#define HAVE_DIRENT_H 1
#define HAVE_DLFCN_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LONG_LONG 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMORY_H 1
#define HAVE_POSIX_POLL 1
#define HAVE_SIGACTION 1
#define HAVE_SIGSETJMP 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRERROR 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRTOLL 1
#define HAVE_STRTOQ 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNSIGNED_LONG_LONG 1
#define STDC_HEADERS 1
#define HAVE_ALLOCA 1
#define HAVE_GRP_H 1
#define HAVE_ERRNO_H 1
#define HAVE_SYSEXITS_H 1
#define C_STACK_GROWS_DOWNWARD 1
#define C_HACKED_APPLY
#define C_CHICKEN_PROGRAM "foo-chicken"
#ifndef C_INSTALL_CC
# define C_INSTALL_CC "gcc"
#endif
#ifndef C_INSTALL_CXX
# define C_INSTALL_CXX "g++"
#endif
#ifndef C_INSTALL_RC_COMPILER
# define C_INSTALL_RC_COMPILER ""
#endif
#ifndef C_INSTALL_CFLAGS
# define C_INSTALL_CFLAGS "-fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -Os -fomit-frame-pointer"
#endif
#ifndef C_INSTALL_LDFLAGS
# define C_INSTALL_LDFLAGS " "
#endif
#ifndef C_INSTALL_PREFIX
# define C_INSTALL_PREFIX "/home/a/wa/foo"
#endif
#ifndef C_INSTALL_SHARE_HOME
# define C_INSTALL_SHARE_HOME "/home/a/wa/foo/share/foo-chicken"
#endif
#ifndef C_INSTALL_BIN_HOME
# define C_INSTALL_BIN_HOME "/home/a/wa/foo/bin"
#endif
#ifndef C_INSTALL_EGG_HOME
# define C_INSTALL_EGG_HOME "/home/a/wa/foo/lib/foo-chicken/6"
#endif
#ifndef C_INSTALL_LIB_HOME
# define C_INSTALL_LIB_HOME "/home/a/wa/foo/lib"
#endif
#ifndef C_INSTALL_LIB_NAME
# define C_INSTALL_LIB_NAME "foo-chicken"
#endif
#ifndef C_INSTALL_STATIC_LIB_HOME
# define C_INSTALL_STATIC_LIB_HOME "/home/a/wa/foo/lib"
#endif
#ifndef C_INSTALL_INCLUDE_HOME
# define C_INSTALL_INCLUDE_HOME "/home/a/wa/foo/include/foo-chicken"
#endif
#ifndef C_INSTALL_MORE_LIBS
# define C_INSTALL_MORE_LIBS "-lm -lpthread"
#endif
#ifndef C_INSTALL_MORE_STATIC_LIBS
# define C_INSTALL_MORE_STATIC_LIBS "-lm -lpthread"
#endif
#ifndef C_DEFAULT_TARGET_HEAP_SIZE
# define C_DEFAULT_TARGET_HEAP_SIZE 0
#endif
#ifndef C_STACK_GROWS_DOWNWARD
# define C_STACK_GROWS_DOWNWARD 1
#endif
#ifndef C_TARGET_MORE_LIBS
# define C_TARGET_MORE_LIBS "-lm -lpthread"
#endif
#ifndef C_TARGET_MORE_STATIC_LIBS
# define C_TARGET_MORE_STATIC_LIBS "-lm -lpthread"
#endif
#ifndef C_TARGET_CC
# define C_TARGET_CC "gcc"
#endif
#ifndef C_TARGET_CXX
# define C_TARGET_CXX "g++"
#endif
#ifndef C_TARGET_RC_COMPILER
# define C_TARGET_RC_COMPILER ""
#endif
#ifndef C_TARGET_CFLAGS
# define C_TARGET_CFLAGS "-fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H
-DC_ENABLE_PTABLES -Os -fomit-frame-pointer"
#endif
#ifndef C_TARGET_LDFLAGS
# define C_TARGET_LDFLAGS " "
#endif
#ifndef C_TARGET_FEATURES
# define C_TARGET_FEATURES ""
#endif
#ifndef C_CROSS_CHICKEN
# define C_CROSS_CHICKEN 0
#endif
#ifndef C_TARGET_PREFIX
# define C_TARGET_PREFIX "/home/a/wa/foo"
#endif
#ifndef C_TARGET_BIN_HOME
# define C_TARGET_BIN_HOME "/home/a/wa/foo/bin"
#endif
#ifndef C_TARGET_LIB_HOME
# define C_TARGET_LIB_HOME "/home/a/wa/foo/lib"
#endif
#ifndef C_TARGET_LIB_NAME
# define C_TARGET_LIB_NAME "chicken"
#endif
#ifndef C_TARGET_RUN_LIB_HOME
# define C_TARGET_RUN_LIB_HOME "/home/a/wa/foo/lib"
#endif
#ifndef C_TARGET_SHARE_HOME
# define C_TARGET_SHARE_HOME "/home/a/wa/foo/share"
#endif
#ifndef C_TARGET_INCLUDE_HOME
# define C_TARGET_INCLUDE_HOME "/home/a/wa/foo/include/foo-chicken"
#endif
#ifndef C_TARGET_STATIC_LIB_HOME
# define C_TARGET_STATIC_LIB_HOME "/home/a/wa/foo/lib"
#endif
#ifndef C_CHICKEN_PROGRAM
# define C_CHICKEN_PROGRAM "foo-chicken"
#endif
#ifndef C_CSC_PROGRAM
# define C_CSC_PROGRAM "foo-csc"
#endif
#ifndef C_CSI_PROGRAM
# define C_CSI_PROGRAM "foo-csi"
#endif
#ifndef C_CHICKEN_BUG_PROGRAM
# define C_CHICKEN_BUG_PROGRAM "foo-chicken-bug"
#endif
#ifndef C_CHICKEN_INSTALL_PROGRAM
# define C_CHICKEN_INSTALL_PROGRAM "foo-chicken-install"
#endif
#ifndef C_CHICKEN_UNINSTALL_PROGRAM
# define C_CHICKEN_UNINSTALL_PROGRAM "foo-chicken-uninstall"
#endif
#ifndef C_CHICKEN_STATUS_PROGRAM
# define C_CHICKEN_STATUS_PROGRAM "foo-chicken-status"
#endif
#ifndef C_WINDOWS_SHELL
# define C_WINDOWS_SHELL 0
#endif
#ifndef C_BINARY_VERSION
# define C_BINARY_VERSION 6
#endif
/* END OF FILE */
CC seems to be gcc, trying to obtain version...
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd5.2/4.2.1/specs
Target: i386-unknown-openbsd5.2
Configured with: OpenBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users