chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Chicken 2.3 on Cygwin: trouble compiling an extension


From: John Cowan
Subject: [Chicken-users] Chicken 2.3 on Cygwin: trouble compiling an extension
Date: Wed, 22 Mar 2006 13:01:46 -0500
User-agent: Mutt/1.3.28i

Again, this is a vanilla Chicken 2.3 install on Cygwin, except for the
"(if window-shell" patch that Felix sent me yesterday.

Here's the log:

$ cat mack.scm
(define-extension mack
  (export mack hack))

(define swhack 'swhack)

(define (mack) (list swhack swhack))

(define (hack) (vector swhack swhack))

$ csc -verbose -extension mack.scm
/usr/local/bin/chicken mack.scm -output-file mack.c -quiet -verbose -extension
Loading compiler extensions...
debugging info: stacktrace
pass: source
pass: canonicalized
pass: cps
pass: analysis
pass: optimized-iteration
pass: analysis
pass: optimized-iteration
pass: analysis
pass: optimized-iteration
pass: analysis
pass: optimized-iteration
pass: analysis
pass: optimized-iteration
pass: analysis
pass: optimized-iteration
pass: analysis
pass: optimized
pass: final-analysis
pass: closure-converted
files to be generated: mack.c
compilation finished.
gcc mack.c -o mack.o -c -DHAVE_CHICKEN_CONFIG_H -Os -fomit-frame-pointer 
-fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -DHAVE_ALLOCA_H 
-DC_STACK_GROWS_DOWNWARD=1 -DC_INSTALL_LIB_HOME="/usr/local/lib/chicken" 
-DC_INSTALL_HOME="/usr/local/share/chicken" -DC_USE_C_DEFAULTS -DC_NO_PIC_NO_DLL
rm mack.c
gcc mack.o -lchicken -o mack -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre -lffi 
-lm  -lpcre -lffi -lchicken
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: undefined 
reference to address@hidden'
Info: resolving _C_temporary_stack by linking to __imp__C_temporary_stack 
(auto-import)
Info: resolving _C_stack_limit by linking to __imp__C_stack_limit (auto-import)
Info: resolving _C_fromspace_top by linking to __imp__C_fromspace_top 
(auto-import)
Info: resolving _C_fromspace_limit by linking to __imp__C_fromspace_limit 
(auto-import)
Info: resolving _C_timer_interrupt_counter by linking to 
__imp__C_timer_interrupt_counter (auto-import)
collect2: ld returned 1 exit status
*** Shell command terminated with exit status 1: gcc mack.o -lchicken -o mack 
-L/usr/local/lib -Wl,-R/usr/local/lib -lpcre -lffi -lm  -lpcre -lffi -lchicken


-- 
John Cowan  address@hidden  www.ap.org  www.ccil.org/~cowan
[R]eversing the apostolic precept to be all things to all men, I usually [before
Darwin] defended the tenability of the received doctrines, when I had to do
with the [evolution]ists; and stood up for the possibility of [evolution] among
the orthodox -- thereby, no doubt, increasing an already current, but quite
undeserved, reputation for needless combativeness.  --T. H. Huxley




reply via email to

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