octave-maintainers
[Top][All Lists]
Advanced

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

Re: Building on OS X


From: Jacopo Corno
Subject: Re: Building on OS X
Date: Thu, 17 Dec 2015 09:32:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Dear Sebastian, dear Carlo,

Since you are more involved with what's going on with mac, I'm attaching another report of problems in compiling odepkg-0.8.5 on mac to the one from Carlos.

Best,
Jack


On 16/12/2015 14:57, Sebastian Schoeps wrote:
Dear Carlos,

Jacopo forwarded your mail to me because I am currently maintaining the octave 
configure script for homebrew. I am rather sure that your problem has nothing 
to do with odepkg but with you installation of octave. How you compile octave 
4.0.0? You may want to look at lines 171-177 in

https://github.com/Homebrew/homebrew-science/blob/master/octave.rb

Bye
Sebastian

P.S. I would prefer I you would send your mails in cc the users mailing list. 
Maybe somebody else has the same issue.

-------- Messaggio Inoltrato --------
Oggetto:        Building on OS X
Data:   Mon, 14 Dec 2015 14:13:33 +0100
Mittente:       Carlos Sánchez de La Lama <address@hidden>
A:      Jacopo Corno <address@hidden>
CC:     Thomas Treichl <address@hidden>

Hi Jacopo,

(I write you directly as I did not want to send a bug report for such a
minor building  issue. Feel free to forward this to whenever you find
appropiate).

when building odepkg-0.8.5 in my OS X (powerpc, 10.4) box, I get an
error during final linking:

LFLAGS="-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/lib/octave/4.0.0 
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/lib -framework vecLib  
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/lib 
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/stow/gcc-4.8.4/bin/../lib/gcc/powerpc-apple-darwin8.11.0/4.8.4
 -L/Users/csanchez/local/powerpc-apple-darwin8.11.0/stow/gcc-4.8.4/bin/../lib/gcc 
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/stow/gcc-4.8.4/bin/../lib/gcc/powerpc-apple-darwin8.11.0/4.8.4/../../..
 -lgfortran -lm -lSystemStubs" mkoctfile  odepkg_octsolver_mebdfdae.o  
odepkg_octsolver_mebdfi.o  odepkg_octsolver_ddaskr.o  odepkg_octsolver_radau.o  
odepkg_octsolver_radau5.o  odepkg_octsolver_rodas.o  odepkg_octsolver_seulex.o  
odepkg_auxiliary_functions.o  cash/mebdfdae.o  cash/mebdfi.o  daskr/ddaskr.o  
daskr/dlinpk.o  hairer/decsol.o  hairer/dc_decsol.o  hairer/radau.o  hairer/radau5.o  
hairer/rodas.o  hairer/seulex.o -o dldsolver.oct \
         -framework vecLib  
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/lib 
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/stow/gcc-4.8.4/bin/../lib/gcc/powerpc-apple-darwin8.11.0/4.8.4
 
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/stow/gcc-4.8.4/bin/../lib/gcc
 
-L/Users/csanchez/local/powerpc-apple-darwin8.11.0/stow/gcc-4.8.4/bin/../lib/gcc/powerpc-apple-darwin8.11.0/4.8.4/../../..
 -lgfortran -lm -lSystemStubs
mkoctfile: unrecognized argument vecLib

The problem comes from "-framework vecLib" argument to mkoctfile. Newest
versions of octave (I have 4.0.0) allow any argument starting with dash
for mkoctfile, so "-framework" is not the problem (I have seen in closed
bug reports it *used* to be a problem) but "vecLib" is not recognized as
an argument or a file name and thus the error.

I do not understand why $(LAPACK_LIBS) and $(FLIBS) are passed in the
linking step to mkoctfile, as they are already on LFLAGS. In fact,
removing those flags at the end of the linking commands solves the
problem and odepkg then builds and runs on my machine.

diff -r odepkg-0.8.5.old/src/Makefile odepkg-0.8.5/src/Makefile
55,56c55
<       LFLAGS="$(LFLAGS)" $(MKOCTFILE) $(SOLVEROBJECTS) -o
$(SOLVEROCTFILE) \
<         $(LAPACK_LIBS) $(FLIBS)
---
       LFLAGS="$(LFLAGS)" $(MKOCTFILE) $(SOLVEROBJECTS) -o
       $(SOLVEROCTFILE)
AFAIU this change should not break anything.

BR

Carlos

--
'I sir, to be honest as this world goes, is to bee one man pick'd out of two
thousand.'

William Shakespeare, "Hamlet" (1601)




--

Jacopo Corno M.Sc.
Politecnico di Milano
MOX Modeling and Scientific Computing
Via Bonardi 9, Building 14
20133 Milano / Italy

Email: address@hidden

--- Begin Message --- Subject: odepkg Octave 4.0.0. for OS X Date: Thu, 17 Dec 2015 03:30:19 +0100
Dear,

Is it possible that the 'odepkg' (odepkg-0.8.5) does not work with octave 4.0.0. on OS X? 
I installed octave through homebrew. I get the following error:

pkg: error running `make' for the odepkg package.
error: called from 'configure_make' in file /usr/local/Cellar/octave/4.0.0_3/share/octave/4.0.0/m/pkg/private/configure_make.

My command line tools (Xcode) are updated. 

Kind regards,

Senne Van Baelen


--- End Message ---

reply via email to

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