|
From: <os...@ka...> - 2006-04-23 10:20:23
|
Hello!
I'm trying to compile matlisp on Mac OS X, but without too much success...
First question, which is the way to get a bunch of working sources? It
seems there are three approaches
1. get matlisp-1.0b release, and try to configure using config* from
/usr/share/automake-1.6, since the 1.0b release doesn't come with
autoconf support for darwin
2. get the last matlisp2 beta, which is a couple years old
3. get matlisp from CVS
Well, 1. and 2. fails when trying to compile the libmatlisp shared library:
ld: Undefined symbols:
dyld_stub_binding_helper
___fixdfdi
___fixsfdi
restFP
saveFP
___udivdi3
___divdi3
___moddi3
___umoddi3
___ashldi3
___lshrdi3
make[1]: *** [lib/libmatlisp.so] Error 1
make: *** [all] Error 2
3. fails too, it is possible to compile the libmatlisp.so on OSX, see
the longish copy-paste below.
I'm using g95 to compile the shared libraries, with F77 and FCC
environment variables set to g95. Tried with gfortran as well, but ran
into lots of linking problems.
Any help would be appreciated.
pupu:~/installers/sf/matlisp ossi$ make
make -f matlisp.mk
===============================================
Required fortran libraries have been built.
The following statement will sometimes fail.
If it fails, manually start your lisp and
load the file start.lisp.
==============================================
/Applications/acl80/alisp8 -e '(progn (load "start.lisp"))'
; Loading /Users/ossi/installers/sf/matlisp/start.lisp
; Loading /Users/ossi/installers/sf/matlisp/system.dcl
; Loading /Users/ossi/installers/sf/matlisp/defsystem.lisp
; Loading /Users/ossi/installers/sf/matlisp/config.lisp
; - Loading defsystem "matlisp-packages"
; - Loading binary file
"/Users/ossi/installers/sf/matlisp/packages.fasl"
; Fast loading /Users/ossi/installers/sf/matlisp/packages.fasl
; - Providing system matlisp-packages
; - Loading defsystem "lazy-loader"
; - Compiling source file
; "/Users/ossi/installers/sf/matlisp/lib/lazy-loader.lisp"
;;; Compiling file
;;; /Users/ossi/installers/sf/matlisp/lib/lazy-loader.lisp
; Loading matlisp:lib;libmatlisp.so
; (/Users/ossi/installers/sf/matlisp/lib/libmatlisp.so)
; While compiling (:TOP-LEVEL-FORM "lazy-loader.lisp" 4726):
Warning: An error occurred
(Can't have unescaped whitespace in token. [file position =
16])
during the reading or evaluation of -e
"(progn (load \"start.lisp\"))"
Allegro CL Professional Edition
8.0 [Mac OS X] (Dec 30, 2005 9:49)
Copyright (C) 1985-2005, Franz Inc., Oakland, CA, USA. All Rights Reserved.
This development copy of Allegro CL is licensed to:
[TC13706] University of Oulu
;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
CL-USER(1):
- osku
|
|
From: Cyrus H. <ch-...@bo...> - 2006-04-23 20:10:53
|
Hi Ossi, i've used matlisp on OSX for both PPC and Intel. Not sure what the =20 problem is, but I can help you get to the bottom of this. PPC or Intel? I'm guessing ppc and g95, from the looks of things. I use gfortran from Simon Urbanek. Dig around here: http://wiki.urbanek.info/index.cgi?HomePage Good luck, Cyrus On Apr 23, 2006, at 5:15 AM, Ossi V=E4=E4n=E4nen wrote: > Hello! > > I'm trying to compile matlisp on Mac OS X, but without too much =20 > success... > > First question, which is the way to get a bunch of working sources? =20= > It seems there are three approaches > 1. get matlisp-1.0b release, and try to configure using config* =20 > from /usr/share/automake-1.6, since the 1.0b release doesn't come =20 > with autoconf support for darwin > 2. get the last matlisp2 beta, which is a couple years old > 3. get matlisp from CVS > > Well, 1. and 2. fails when trying to compile the libmatlisp shared =20 > library: > ld: Undefined symbols: > dyld_stub_binding_helper > ___fixdfdi > ___fixsfdi > restFP > saveFP > ___udivdi3 > ___divdi3 > ___moddi3 > ___umoddi3 > ___ashldi3 > ___lshrdi3 > make[1]: *** [lib/libmatlisp.so] Error 1 > make: *** [all] Error 2 > > > 3. fails too, it is possible to compile the libmatlisp.so on OSX, =20 > see the longish copy-paste below. > > I'm using g95 to compile the shared libraries, with F77 and FCC =20 > environment variables set to g95. Tried with gfortran as well, but =20 > ran into lots of linking problems. > > Any help would be appreciated. > > pupu:~/installers/sf/matlisp ossi$ make > make -f matlisp.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Required fortran libraries have been built. > The following statement will sometimes fail. > If it fails, manually start your lisp and > load the file start.lisp. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > /Applications/acl80/alisp8 -e '(progn (load "start.lisp"))' > ; Loading /Users/ossi/installers/sf/matlisp/start.lisp > ; Loading /Users/ossi/installers/sf/matlisp/system.dcl > ; Loading /Users/ossi/installers/sf/matlisp/defsystem.lisp > ; Loading /Users/ossi/installers/sf/matlisp/config.lisp > > ; - Loading defsystem "matlisp-packages" > ; - Loading binary file "/Users/ossi/installers/sf/matlisp/=20 > packages.fasl" > ; Fast loading /Users/ossi/installers/sf/matlisp/packages.fasl > ; - Providing system matlisp-packages > > ; - Loading defsystem "lazy-loader" > ; - Compiling source file > ; "/Users/ossi/installers/sf/matlisp/lib/lazy-loader.lisp" > ;;; Compiling file > ;;; /Users/ossi/installers/sf/matlisp/lib/lazy-loader.lisp > ; Loading matlisp:lib;libmatlisp.so > ; (/Users/ossi/installers/sf/matlisp/lib/libmatlisp.so) > ; While compiling (:TOP-LEVEL-FORM "lazy-loader.lisp" 4726): > Warning: An error occurred > (Can't have unescaped whitespace in token. [file position =3D > 16]) > during the reading or evaluation of -e > "(progn (load \"start.lisp\"))" > Allegro CL Professional Edition > 8.0 [Mac OS X] (Dec 30, 2005 9:49) > Copyright (C) 1985-2005, Franz Inc., Oakland, CA, USA. All Rights =20 > Reserved. > > This development copy of Allegro CL is licensed to: > [TC13706] University of Oulu > > ;; Optimization settings: safety 1, space 1, speed 1, debug 2. > ;; For a complete description of all compiler switches given the > ;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS). > CL-USER(1): > > > > > > - osku > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Matlisp-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlisp-users |
|
From: <os...@ka...> - 2006-04-24 19:37:31
|
Hello Cyrus,
and many thanks for helping me out. First of all, I'm using OSX on PPC=20
currently.
In fact, yesterday I managed to get an almost working compilation of=20
matlisp, using the g95 compiler and matlisp leeched from CVS. With=20
'almost working' I mean that at least compiling the shared libraries=20
with fortran compiler didn't fail, but instead, while running 'make' or=20
cmucl -eval '(load "start.lisp")', I got output as at the end of this mai=
l.
I get arbitrarily many errors like the following
Undefined foreign symbol: 96470128
[Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]
And regarding which Fortran compiler to use... I used g95 because it at=20
least seemed to be able to build the lib/libmatlisp.so package. With=20
gfortran, I have to hack matlisp.mk a bit (MATLIB variable points to=20
directory, -lf2c in compiler flags etc), make -f matlisp.mk ends up with
;;; Opening shared library=20
/Users/ossi/installers/sf/matlisp/lib/libmatlisp.so ...
Error in function SYSTEM::LOAD-OBJECT-FILE:
Can't open object=20
#P"/Users/ossi/installers/sf/matlisp/lib/libmatlisp.so":=20
"/Users/ossi/installers/sf/matlisp/lib/libmatlisp.so in Symbol not=20
found: __gfortran_transfer_character
Referenced from: /Users/ossi/installers/sf/matlisp/lib/libmatlisp.so
Expected in: flat namespace
: 4 0"
[Condition of type SIMPLE-ERROR]
Anyway, I'm a bit too n00b to troubleshoot problems related to both=20
fortran compiler/ linker errors and Lisp FFI errors...
Cyrus, which gfortran, matlisp, and cmucl versions are you exactly=20
using? 'configure' script options, compiler / linker flags, etc?
best regards,
Ossi
pupu:~/installers/sf/matlisp ossi$ make
make -f matlisp.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Required fortran libraries have been built.
The following statement will sometimes fail.
If it fails, manually start your lisp and
load the file start.lisp.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
/opt/cmu/bin/lisp -noinit -eval '(progn (load "start.lisp"))'
; Loading #P"/Users/ossi/installers/sf/matlisp/start.lisp".
; Converted SETLOGICALROOT.
; Converted GETLOGICALROOT.
; Converted DEFLOGICALPATH.
;; Loading #P"/Users/ossi/installers/sf/matlisp/system.dcl".
;;; Loading #P"/Users/ossi/installers/sf/matlisp/defsystem.lisp".
Warning: Old-style IN-PACKAGE.
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. OBJECT STREAM):
; Compiling Top-Level Form:
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. X):
; Compiling Top-Level Form:
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. X):
; Compiling Top-Level Form:
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. OBJECT STREAM):
; Compiling Top-Level Form:
; Converted COMPILED-FILE-P.
; In: DEFUN COMPILED-FILE-P
; (DEFUN COMPILED-FILE-P (FILE-NAME)
; "Return T if the FILE-NAME is a filename designator for a valid=20
compiled.
; Signal an error when it is not a filename designator.
; Return NIL when the file does not exist, or is not readable,
; or does not contain valid compiled code." ..)
; Note: Variable FILE-NAME defined but never used.
;; Loading #P"/Users/ossi/installers/sf/matlisp/config.lisp".
; [GC threshold exceeded with 12,838,184 bytes in use. Commencing GC.]
; [GC completed with 4,738,696 bytes retained and 8,099,488 bytes freed.]
; [GC will next occur when at least 16,738,696 bytes are in use.]
; - Loading defsystem "matlisp-packages"
; - Loading binary file=20
"/Users/ossi/installers/sf/matlisp/packages.ppcf"
;; Loading #P"/Users/ossi/installers/sf/matlisp/packages.ppcf".
; - Providing system matlisp-packages
; - Loading defsystem "lazy-loader"
; - Loading binary file
; "/Users/ossi/installers/sf/matlisp/bin/lazy-loader.ppcf"
Error in function LISP::INTERNAL-LOAD:
File has a fasl file type, but no fasl file header:
"/Users/ossi/installers/sf/matlisp/bin/lazy-loader.ppcf"
[Condition of type SIMPLE-ERROR]
Restarts:
0: [CONTINUE] Load it as a source file.
1: Return NIL from load of=20
"/Users/ossi/installers/sf/matlisp/bin/lazy-loader.ppcf".
2: Return NIL from load of "start.lisp".
3: [ABORT ] Skip remaining initializations.
Debug (type H for help)
(LISP::INTERNAL-LOAD=20
#P"/Users/ossi/installers/sf/matlisp/bin/lazy-loader.ppcf"
=20
#P"/Users/ossi/installers/sf/matlisp/bin/lazy-loader.ppcf"
:ERROR NIL)
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer=20
exists:
target:code/load.lisp.
0] 0
;; Loading #P"/Users/ossi/installers/sf/matlisp/bin/lazy-loader.ppcf".
; - Providing system lazy-loader
; - Loading defsystem "matlisp"
; - Loading module "foreign-interface"
; - Loading binary file
; "/Users/ossi/installers/sf/matlisp/bin/f77-mangling.ppcf"
;; Loading #P"/Users/ossi/installers/sf/matlisp/bin/f77-mangling.ppcf".
; - Loading binary file
; "/Users/ossi/installers/sf/matlisp/bin/ffi-cmu.ppcf"
;; Loading #P"/Users/ossi/installers/sf/matlisp/bin/ffi-cmu.ppcf".
; - Loading module "foreign-functions"
; - Loading binary file=20
"/Users/ossi/installers/sf/matlisp/bin/blas.ppcf"
;; Loading #P"/Users/ossi/installers/sf/matlisp/bin/blas.ppcf".
Undefined foreign symbol: 96470128
[Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]
Restarts:
0: [CONTINUE] Return NIL from load of=20
"/Users/ossi/installers/sf/matlisp/bin/blas.ppcf".
1: Return NIL from load of "start.lisp".
2: [ABORT ] Skip remaining initializations.
Debug (type H for help)
("Bogus stack frame")
0]
Cyrus Harmon wrote:
> Hi Ossi,
>=20
> i've used matlisp on OSX for both PPC and Intel. Not sure what the=20
> problem is, but I can help you get to the bottom of this. PPC or Intel?
>=20
> I'm guessing ppc and g95, from the looks of things.
>=20
> I use gfortran from Simon Urbanek. Dig around here:
>=20
> http://wiki.urbanek.info/index.cgi?HomePage
>=20
> Good luck,
>=20
> Cyrus
>=20
> On Apr 23, 2006, at 5:15 AM, Ossi V=E4=E4n=E4nen wrote:
>=20
>> Hello!
>>
>> I'm trying to compile matlisp on Mac OS X, but without too much=20
>> success...
>>
>> First question, which is the way to get a bunch of working sources? It=
=20
>> seems there are three approaches
>> 1. get matlisp-1.0b release, and try to configure using config* from=20
>> /usr/share/automake-1.6, since the 1.0b release doesn't come with=20
>> autoconf support for darwin
>> 2. get the last matlisp2 beta, which is a couple years old
>> 3. get matlisp from CVS
>>
>> Well, 1. and 2. fails when trying to compile the libmatlisp shared=20
>> library:
>> ld: Undefined symbols:
>> dyld_stub_binding_helper
>> ___fixdfdi
>> ___fixsfdi
>> restFP
>> saveFP
>> ___udivdi3
>> ___divdi3
>> ___moddi3
>> ___umoddi3
>> ___ashldi3
>> ___lshrdi3
>> make[1]: *** [lib/libmatlisp.so] Error 1
>> make: *** [all] Error 2
>>
>>
>> 3. fails too, it is possible to compile the libmatlisp.so on OSX, see=20
>> the longish copy-paste below.
>>
>> I'm using g95 to compile the shared libraries, with F77 and FCC=20
>> environment variables set to g95. Tried with gfortran as well, but ran=
=20
>> into lots of linking problems.
>>
>> Any help would be appreciated.
>>
>> pupu:~/installers/sf/matlisp ossi$ make
>> make -f matlisp.mk
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> Required fortran libraries have been built.
>> The following statement will sometimes fail.
>> If it fails, manually start your lisp and
>> load the file start.lisp.
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> /Applications/acl80/alisp8 -e '(progn (load "start.lisp"))'
>> ; Loading /Users/ossi/installers/sf/matlisp/start.lisp
>> ; Loading /Users/ossi/installers/sf/matlisp/system.dcl
>> ; Loading /Users/ossi/installers/sf/matlisp/defsystem.lisp
>> ; Loading /Users/ossi/installers/sf/matlisp/config.lisp
>>
>> ; - Loading defsystem "matlisp-packages"
>> ; - Loading binary file=20
>> "/Users/ossi/installers/sf/matlisp/packages.fasl"
>> ; Fast loading /Users/ossi/installers/sf/matlisp/packages.fasl
>> ; - Providing system matlisp-packages
>>
>> ; - Loading defsystem "lazy-loader"
>> ; - Compiling source file
>> ; "/Users/ossi/installers/sf/matlisp/lib/lazy-loader.lisp"
>> ;;; Compiling file
>> ;;; /Users/ossi/installers/sf/matlisp/lib/lazy-loader.lisp
>> ; Loading matlisp:lib;libmatlisp.so
>> ; (/Users/ossi/installers/sf/matlisp/lib/libmatlisp.so)
>> ; While compiling (:TOP-LEVEL-FORM "lazy-loader.lisp" 4726):
>> Warning: An error occurred
>> (Can't have unescaped whitespace in token. [file position =3D
>> 16])
>> during the reading or evaluation of -e
>> "(progn (load \"start.lisp\"))"
>> Allegro CL Professional Edition
>> 8.0 [Mac OS X] (Dec 30, 2005 9:49)
>> Copyright (C) 1985-2005, Franz Inc., Oakland, CA, USA. All Rights=20
>> Reserved.
>>
>> This development copy of Allegro CL is licensed to:
>> [TC13706] University of Oulu
>>
>> ;; Optimization settings: safety 1, space 1, speed 1, debug 2.
>> ;; For a complete description of all compiler switches given the
>> ;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
>> CL-USER(1):
>>
>>
>>
>>
>>
>> - osku
>>
>>
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, securi=
ty?
>> Get stuff done quickly with pre-integrated technology to make your job=
=20
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&da=
t=3D121642
>> _______________________________________________
>> Matlisp-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matlisp-users
>=20
|