[pg-cvs] wrong dylib architecture
Marko Tapio Manninen
mmstud at gmail.com
Sat Jun 7 16:46:07 UTC 2008
I deleted wrapper files and tried to recompile. slighty different
result:
CL-USER> (asdf:oos 'asdf:load-op :iolib)
; gcc -m64 -fPIC -o /Users/mmstud/lisp/libs/osicat/posix/
wrappers.dylib /Users/mmstud/lisp/libs/osicat/posix/wrappers.c -bundle
;Compiling "/Users/mmstud/lisp/libs/osicat/posix/wrappers\\.grovel-
tmp.lisp"...
;Compiling "/Users/mmstud/lisp/libs/osicat/posix/basic-unix.lisp"...CL-
USER> (asdf:oos 'asdf:load-op :iolib)
; gcc -m64 -fPIC -o /Users/mmstud/lisp/libs/osicat/posix/
wrappers.dylib /Users/mmstud/lisp/libs/osicat/posix/wrappers.c -bundle
;Compiling "/Users/mmstud/lisp/libs/osicat/posix/wrappers\\.grovel-
tmp.lisp"...
;Compiling "/Users/mmstud/lisp/libs/osicat/posix/basic-unix.lisp"...
Undefined function CFFI::SYMBOLICATE called with arguments (#:%VAR-
ACCESSOR-
OSICAT-
POSIX:*ENVIRON*) .
[Condition of type CCL::UNDEFINED-FUNCTION-CALL]
Restarts:
0: [CONTINUE] Retry applying CFFI::SYMBOLICATE to (#:%VAR-ACCESSOR-
OSICAT-POSIX:*ENVIRON*).
1: [USE-VALUE] Apply specified function to (#:%VAR-ACCESSOR- OSICAT-
POSIX:*ENVIRON*) this time.
2: [STORE-VALUE] Specify a function to use as the definition of
CFFI::SYMBOLICATE.
3: [RETRY-COMPILE-FILE] Retry compiling #P"/Users/mmstud/lisp/libs/
osicat/posix/basic-unix.lisp"
4: [SKIP-COMPILE-FILE] Skip compiling #P"/Users/mmstud/lisp/libs/
osicat/posix/basic-unix.lisp"
5: [RETRY] Retry performing #<COMPILE-OP NIL #x3000413AEB3D> on #<CL-
SOURCE-FILE "basic-unix" #x3000411AB61D>.
6: [ACCEPT] Continue, treating #<COMPILE-OP NIL #x3000413AEB3D> on
#<CL-SOURCE-FILE "basic-unix" #x3000411AB61D> as having been successful.
7: [ABORT] Return to SLIME's top level.
8: [ABORT-BREAK] Reset this process
9: [ABORT] Kill this process
Backtrace:
0: (CFFI:DEFCVAR '(CFFI:DEFCVAR ("environ" :READ-ONLY T)
(:POINTER :STRING)) #<LEXICAL-ENVIRONMENT #x3000413D5ADD>)
1: (FUNCALL #<Compiled-function CFFI:DEFCVAR Macroexpander
#x30004114E79F> '(CFFI:DEFCVAR ("environ" :READ-ONLY T)
(:POINTER :STRING)) #<LEXICAL-ENVIRONMENT #x3000413D5ADD>)
2: (MACROEXPAND-1 'OSICAT-POSIX:*ENVIRON* #<DESTRUCTURE-STATE
#x229B1CD>)
3: (CCL::FCOMP-FORM-1 "environ" '(:POINTER :STRING) ':NOT-COMPILE-
TIME)
4: (CCL::FCOMP-FORM '(CFFI:DEFCVAR ("environ" :READ-ONLY T)
(:POINTER :STRING)) #<LEXICAL-ENVIRONMENT #x3000413D5ADD> ':NOT-
COMPILE-TIME)
5: (CCL::FCOMP-READ-LOOP "/Users/mmstud/lisp/libs/osicat/posix/
basic-unix.lisp" #P"home:lisp;libs;osicat;posix;basic-
unix.lisp.newest" #<LEXICAL-ENVIRONMENT #x3000413D5ADD> ':NOT-COMPILE-
TIME)
6: (CCL::FCOMP-FILE "/Users/mmstud/lisp/libs/osicat/posix/basic-
unix.lisp" #P"home:lisp;libs;osicat;posix;basic-unix.lisp.newest"
#<LEXICAL-ENVIRONMENT #x3000413D5ADD>)
7: (CCL::%COMPILE-FILE "/Users/mmstud/lisp/libs/osicat/posix/basic-
unix.lisp" "/Users/mmstud/lisp/libs/osicat/posix/basic-unix.dx64fsl"
'T 'NIL 'NIL 'NIL 'T 'T 'NIL 'NIL #<BACKEND DARWINX8664
#x300040716D9D> ':DEFAULT)
8: (COMPILE-FILE #P"/Users/mmstud/lisp/libs/osicat/posix/basic-
unix.lisp" ':OUTPUT-FILE #P"/Users/mmstud/lisp/libs/osicat/posix/basic-
unix.dx64fsl" ':VERBOSE 'T ':PRINT 'NIL ':LOAD 'NIL ':FEATURES 'NIL
':TARGET ':DARWINX8664 ':SAVE-LOCAL-SYMBOLS 'NIL ':SAVE-DOC-STRINGS 'T
':SAVE-DEFINITIONS 'T ':EXTERNAL-FORMAT 'NIL ':FORCE ':DEFAULT)
9: (#<STANDARD-METHOD ASDF:PERFORM (ASDF:COMPILE-OP
ASDF:CL-SOURCE-FILE)> #<COMPILE-
OP NIL #x3000413AEB3D> #<CL-SOURCE-FILE "basic-unix" #x3000411AB61D>)
10: (CCL::%%BEFORE-AND-AFTER-COMBINED-METHOD-DCODE '(NIL
#<STANDARD-METHOD ASDF:PERFORM (ASDF:COMPILE-OP
ASDF:CL-SOURCE-FILE)>
. 4265217))
11: (CCL::%%STANDARD-COMBINED-METHOD-DCODE '((#<STANDARD-METHOD
ASDF:PERFORM :BEFORE (ASDF:COMPILE-OP
ASDF:SOURCE-FILE)>)
(#<STANDARD-METHOD ASDF:PERFORM :AFTER (ASDF:OPERATION
ASDF:COMPONENT)>)
#<STANDARD-METHOD ASDF:PERFORM (ASDF:COMPILE-OP
ASDF:CL-SOURCE-FILE)>) 4265217)
12: (ASDF:OPERATE 'ASDF:LOAD-OP ':IOLIB)
13: (CCL::CALL-CHECK-REGS 'ASDF:OOS 'ASDF:LOAD-OP ':IOLIB)
Stelian Ionescu kirjoitti 7.6.2008 kello 18.32:
> On Sat, Jun 07, 2008 at 11:38:30AM +0300, Marko Tapio Manninen wrote:
>> Hi,
>>
>> im trying to compile osicat with macbook openmcl 64 bit and get this
>> error:
>>
>> Unable to load foreign library (NIL).
>> Error opening shared library
>> "/Users/mmstud/lisp/libs/osicat/posix/wrappers.dylib":
>> dlopen(/Users/mmstud/lisp/libs/osicat/posix/wrappers.dylib, 10): no
>> suitable image found. Did find:
>> /Users/mmstud/lisp/libs/osicat/posix/wrappers.dylib: mach-o, but
>> wrong architecture
>> [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]
>
> Could you please post the gcc commands issued by cffi-grovel ?
>
> --
> Stelian Ionescu a.k.a. fe[nl]ix
> Quidquid latine dictum sit, altum videtur.
> _______________________________________________
> pg-cvs site list
> pg-cvs at common-lisp.net
> http://common-lisp.net/mailman/listinfo/pg-cvs
More information about the osicat-devel
mailing list