Hi,
Really looking forward to trying out your ObjC egg & tutorials.
Unfortunately, I'm having a problem trying to install the egg:
$ sudo chicken-setup objc
...
/opt/local/bin/csc -feature compiling-extension -s cocoa.scm -objc
-O2 -d1 -framework Cocoa -X ./objc.scm
Error: during expansion of (define-ns:struct->locative ...) - unbound
variable: string-upcase
...
*** Shell command terminated with exit status 70:
/opt/local/bin/chicken cocoa.scm -output-file cocoa.m -dynamic
-feature chicken-compile-shared -quiet -feature compiling-extension
-ffi-define __OBJC__ -optimize-level 2 -debug-level 1 -extend
./objc.scm
make: Failed to make cocoa.so: shell invocation failed with non-zero
return status
Error: shell invocation failed with non-zero return status
"/opt/local/bin/csc -feature compiling-extension -s cocoa.scm -objc
-O2 -d1 -fr...
70
Please find attached the full build log which contains a call trace
etc. I'm using Mac OS X 10.4.4, gcc 4.0 from Apple's development
tools, and the installed Chicken version is: version 2, build 216 -
macosx-unix-gnu-ppc - [ dload ptables ]
Any clues appreciated :-)
Arto
PS. As I've just switched from Linux to Mac OS X, there's no doubt a
number of subtle
issues that could trip me up, so I apologize if I've overlooked
something obvious here.
--
Arto Bendiken
http://bendiken.net/
$ sudo chicken-setup objc
The extension objc does not exist.
Do you want to download it ? (yes/no/abort) [yes]
downloading catalog ...
downloading catalog from www.call-with-current-continuation.org ...
downloading objc.egg from (www.call-with-current-continuation.org eggs/ 80) ...
creating directory `objc.egg.dir'
gunzip -c ../objc.egg | tar xvf -
objc.setup
objc.scm
objc.html
objc-support.scm
classes.scm
alignment.scm
array.scm
convert.scm
objc-runtime.h
tests/
tests/ffi-structs.scm
tests/Makefile
tests/objc-proxy-test.scm
tests/proxy.scm
tests/proxy2.scm
tests/Temperature Converter.app/
tests/Temperature Converter.app/Contents/
tests/Temperature Converter.app/Contents/Info.plist
tests/Temperature Converter.app/Contents/MacOS/
tests/Temperature Converter.app/Contents/MacOS/Makefile
tests/Temperature Converter.app/Contents/MacOS/temp-converter.scm
tests/Temperature Converter.app/Contents/Resources/
tests/Temperature Converter.app/Contents/Resources/English.lproj/
tests/Temperature
Converter.app/Contents/Resources/English.lproj/InfoPlist.strings
tests/Temperature Converter.app/Contents/Resources/English.lproj/MainMenu.nib/
tests/Temperature
Converter.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib
tests/Temperature
Converter.app/Contents/Resources/English.lproj/MainMenu.nib/info.nib
tests/Temperature
Converter.app/Contents/Resources/English.lproj/MainMenu.nib/objects.nib
tests/type-test.h
tests/type-test.m
tests/typetest.scm
tests/unit-test.scm
debug/
debug/closure.scm
debug/foreign-types.scm
debug/locations.scm
debug/low.scm
debug/notes.txt
doc/
doc/eggdoc-objc.scm
doc/eggdoc-zb.scm
doc/impl-notes.txt
doc/Makefile
doc/objc-04-changes.txt
cocoa.scm
scheme-object.h
scheme-object.m
objc-class-proxies.scm
objc-class-proxies-bin.scm
objc-base.scm
/opt/local/bin/csc -feature compiling-extension objc-support.scm -s -objc -O2
-d1 -lffi -framework Foundation
objc-support.m: In function 'find_superclass_method':
objc-support.m:430: warning: suggest parentheses around assignment used as
truth value
objc-support.m: In function 'stub1459':
objc-support.m:947: warning: suggest parentheses around assignment used as
truth value
/opt/local/bin/csc -feature compiling-extension -s cocoa.scm -objc -O2 -d1
-framework Cocoa -X ./objc.scm
Error: during expansion of (define-ns:struct->locative ...) - unbound variable:
string-upcase
Call history:
<eval> (%objc (quote maybe) target arg args)
<eval> [%objc] (eq? target (quote super))
<eval> [%objc] (null? args)
<eval> [%objc] (##sys#list (quote objc:invoker) (##sys#list
(quote quote) safe?) target (objcify-selector (symbol->string arg)))
<eval> [%objc] (##sys#list (quote quote) safe?)
<eval> [%objc] (objcify-selector (symbol->string arg))
<eval> [%objc] (symbol->string arg)
<eval> [objcify-selector] (string-split sel "-")
<eval> [objcify-selector] (for-each (lambda (s)
(string-upcase! s 0 1)) (cdr pieces))
<eval> [objcify-selector] (cdr pieces)
<eval> [objcify-selector] (apply string-append pieces)
<eval> (##sys#register-macro (quote
define-ns:struct->locative) (lambda (type) (define (symbol-conc . symbols)
(string->symbol...
<eval> (conc "ns:" type)
<eval> (conc "objc:NS" (string-upcase (->string type)))
<eval> (string-upcase (->string type))
<eval> (->string type) <--
*** Shell command terminated with exit status 70: /opt/local/bin/chicken
cocoa.scm -output-file cocoa.m -dynamic -feature chicken-compile-shared -quiet
-feature compiling-extension -ffi-define __OBJC__ -optimize-level 2
-debug-level 1 -extend ./objc.scm
make: Failed to make cocoa.so: shell invocation failed with non-zero return
status
Error: shell invocation failed with non-zero return status
"/opt/local/bin/csc -feature compiling-extension -s cocoa.scm -objc -O2 -d1
-fr...
70
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users