mkoctfile: unrecognized argument vecLib

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

mkoctfile: unrecognized argument vecLib

notMyUsername
Greetings,

I am trying to install (-forge) the odepkg package on OSX (homebrew) and am getting this error:

mkoctfile: unrecognized argument vecLib

I don't know if this is an Octave or Homebrew or other issue but decided to start here.

OS X 10.9.5
Octave 4.0.0
Up to date (as of right now) Homebrew

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: mkoctfile: unrecognized argument vecLib

Sebastian Schöps
notMyUsername wrote
Greetings,

I am trying to install (-forge) the odepkg package on OSX (homebrew) and am getting this error:

mkoctfile: unrecognized argument vecLib

I don't know if this is an Octave or Homebrew or other issue but decided to start here.

OS X 10.9.5
Octave 4.0.0
Up to date (as of right now) Homebrew
I would say it's a homebrew issue. However, can you try

brew install octave --build-from-source

and then try

>> pkg install -forge odepkg

again?

Seb.
Reply | Threaded
Open this post in threaded view
|

Re: mkoctfile: unrecognized argument vecLib

notMyUsername
Thanks.  Sorry that I couldn't get back to this sooner but I haven't had much time to look at this since I first posted.

Anyway... I just tried building from source as you recommend and then installing the ODE package with same results as before (I think).  Here is the whole output (there were also some uninitialized variable warnings before this but I they aren't shown):


mkoctfile: unrecognized argument vecLib
make: *** [dldsolver.oct] Error 1
Unpacking external packages: hairer.tgz
Unpacking external packages: cash.tgz
Unpacking external packages: daskr.tgz
Applying patches from file: hairer.diff
Applying patches from file: cash.diff
(Stripping trailing CRs from patch.)
patching file cash/mebdfdae.f
(Stripping trailing CRs from patch.)
patching file cash/mebdfi.f
Applying patches from file: daskr.diff
(Stripping trailing CRs from patch.)
patching file daskr/ddaskr.f
(Stripping trailing CRs from patch.)
patching file daskr/dlinpk.f
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_mebdfdae.cc -o odepkg_octsolver_mebdfdae.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_mebdfi.cc -o odepkg_octsolver_mebdfi.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_ddaskr.cc -o odepkg_octsolver_ddaskr.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_radau.cc -o odepkg_octsolver_radau.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_radau5.cc -o odepkg_octsolver_radau5.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_rodas.cc -o odepkg_octsolver_rodas.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_octsolver_seulex.cc -o odepkg_octsolver_seulex.o
/usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c odepkg_auxiliary_functions.cc -o odepkg_auxiliary_functions.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c cash/mebdfdae.f -o cash/mebdfdae.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c cash/mebdfi.f -o cash/mebdfi.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c daskr/ddaskr.f -o daskr/ddaskr.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c daskr/dlinpk.f -o daskr/dlinpk.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c hairer/decsol.f -o hairer/decsol.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c hairer/dc_decsol.f -o hairer/dc_decsol.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c hairer/radau.f -o hairer/radau.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c hairer/radau5.f -o hairer/radau5.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c hairer/rodas.f -o hairer/rodas.o
FFLAGS="-ff2c -O" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0 -c hairer/seulex.f -o hairer/seulex.o
LFLAGS="-L/usr/local/Cellar/octave/4.0.0_5/lib/octave/4.0.0 -L/usr/local/Cellar/octave/4.0.0_5/lib -framework vecLib  -L/usr/local/opt/readline/lib -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0 -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../.. -lreadline -lgfortran -lquadmath -lm" /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0  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/usr/local/opt/readline/lib -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0 -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../.. -lreadline -lgfortran -lquadmath -lm

pkg: error running `make' for the odepkg package.
error: called from 'configure_make' in file /usr/local/Cellar/octave/4.0.0_5/share/octave/4.0.0/m/pkg/private/configure_make.m near line 96, column 9
Reply | Threaded
Open this post in threaded view
|

Re: mkoctfile: unrecognized argument vecLib

Carlos Sánchez de La Lama
Hi,

>>> mkoctfile: unrecognized argument vecLib

I reported this problem a while back. mkoctfile was changed some time
ago to pass any argument starting with dash "-" to the compiler, solving
most of similar issued. In GNU compiler, I believe all arguments but
input files start with dash, but this is not true for Apple versions
(i.e., -framework xxx). Logic in mkoctfile does not cover those cases,
but fortunately mkoctflags uses "LFLAGS" environment variable to solve
argument passing to the linker.

ODE makefile tries to pass some flags in both LFLAGS and as mkoctfile
parameters, and this fails in OS X.

See my older post:

http://lists.gnu.org/archive/html/help-octave/2015-12/msg00244.html

BR

Carlos

--
'There are no happy endings. Because there are no endings. There are only ways
to cope.'

Bruce Sterling, "User-Centric" (1999)
Victoria Blake (Editor), "Cyberpunk: Stories of Hardware, Software, Wetware,
Evolution and Revolution" (2013)

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: mkoctfile: unrecognized argument vecLib

Olaf Till-2
In reply to this post by notMyUsername
On Mon, Mar 21, 2016 at 07:04:52PM -0700, notMyUsername wrote:

> ...
>
> mkoctfile: unrecognized argument vecLib
> ...
> LFLAGS="-L/usr/local/Cellar/octave/4.0.0_5/lib/octave/4.0.0
> -L/usr/local/Cellar/octave/4.0.0_5/lib -framework vecLib
> -L/usr/local/opt/readline/lib
> -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0
> -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../..
> -lreadline -lgfortran -lquadmath -lm"
> /usr/local/Cellar/octave/4.0.0_5/bin/mkoctfile-4.0.0
> 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/usr/local/opt/readline/lib
> -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0
> -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../..
> -lreadline -lgfortran -lquadmath -lm
Adding LAPACK_LIBS to LFLAGS is enough. In the above commandline,
LAPACK_LIBS has also been passed to mkoctfile in the commandline,
which should not be done.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: mkoctfile: unrecognized argument vecLib

notMyUsername
This post was updated on .
In reply to this post by Carlos Sánchez de La Lama
Much thanks.  

I haven't had a chance to actually try using the resulting package yet but making the change Carlos linked to allowed me to at least successfully build and install it.