[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error installing control package 3.0.0 in 4.2.0_2 on mac os sierra
From: |
SunilShah |
Subject: |
Error installing control package 3.0.0 in 4.2.0_2 on mac os sierra |
Date: |
Thu, 2 Feb 2017 13:15:35 -0800 (PST) |
On Mac os sierra, 10.12.3 I have octave 4.2.0_2 installation using Homebrew.
I see the following error in installing control 3.0.0 from forge.
-----------------
pkg install -forge control
In file included from __control_helper_functions__.cc:7:
./lti_input_idx.cc:65:48: warning: 'nelem' is deprecated
[-Wdeprecated-declarations]
octave_idx_type len = args(0).cell_value().nelem();
^
/usr/local/Cellar/octave/4.2.0_2/include/octave-4.2.0/octave/Array.h:360:19:
note: 'nelem' has been explicitly marked
deprecated here
octave_idx_type nelem (void) const { return numel (); }
^
1 warning generated.
clang: warning: argument unused during compilation: '-pthread'
In file included from __control_slicot_functions__.cc:24:
./sl_tg04bx.cc:79:33: warning: 'length' is deprecated
[-Wdeprecated-declarations]
octave_idx_type ip = pr.length (); // ip: number of finite poles
^
/usr/local/Cellar/octave/4.2.0_2/include/octave-4.2.0/octave/Array.h:354:19:
note: 'length' has been explicitly marked
deprecated here
octave_idx_type length (void) const { return numel (); }
^
In file included from __control_slicot_functions__.cc:24:
./sl_tg04bx.cc:80:33: warning: 'length' is deprecated
[-Wdeprecated-declarations]
octave_idx_type iz = zr.length (); // iz: number of zeros
^
/usr/local/Cellar/octave/4.2.0_2/include/octave-4.2.0/octave/Array.h:354:19:
note: 'length' has been explicitly marked
deprecated here
octave_idx_type length (void) const { return numel (); }
^
In file included from __control_slicot_functions__.cc:42:
./sl_ident.cc:184:40: warning: 'nelem' is deprecated
[-Wdeprecated-declarations]
octave_idx_type n_exp = y_cell.nelem (); // number of
experiments
^
/usr/local/Cellar/octave/4.2.0_2/include/octave-4.2.0/octave/Array.h:360:19:
note: 'nelem' has been explicitly marked
deprecated here
octave_idx_type nelem (void) const { return numel (); }
^
In file included from __control_slicot_functions__.cc:43:
./sl_ib01cd.cc:97:40: warning: 'nelem' is deprecated
[-Wdeprecated-declarations]
octave_idx_type n_exp = y_cell.nelem (); // number of
experiments
^
/usr/local/Cellar/octave/4.2.0_2/include/octave-4.2.0/octave/Array.h:360:19:
note: 'nelem' has been explicitly marked
deprecated here
octave_idx_type nelem (void) const { return numel (); }
^
In file included from __control_slicot_functions__.cc:44:
./sl_ib01ad.cc:148:40: warning: 'nelem' is deprecated
[-Wdeprecated-declarations]
octave_idx_type n_exp = y_cell.nelem (); // number of
experiments
^
/usr/local/Cellar/octave/4.2.0_2/include/octave-4.2.0/octave/Array.h:360:19:
note: 'nelem' has been explicitly marked
deprecated here
octave_idx_type nelem (void) const { return numel (); }
^
5 warnings generated.
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option
'-L/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0'
ld: warning: directory not found for option
'-L/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/../../..'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [__control_slicot_functions__.oct] Error 1
tar -xzf slicot.tar.gz
/usr/local/Cellar/octave/4.2.0_2/bin/mkoctfile-4.2.0
__control_helper_functions__.cc
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cd sltmp; /usr/local/Cellar/octave/4.2.0_2/bin/mkoctfile-4.2.0 -c *.f
ar -rc slicotlibrary.a ./sltmp/*.o
rm -rf sltmp slicot
LFLAGS="-L/usr/local/Cellar/octave/4.2.0_2/lib/octave/4.2.0
-L/usr/local/Cellar/octave/4.2.0_2/lib -L/usr/local/opt/veclibfort/lib
-lvecLibFort -L/usr/local/opt/readline/lib
-L/usr/local/opt/suite-sparse/lib -L/usr/local/opt/metis/lib
-L/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0
-L/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6/gcc/x86_64-apple-darwin16.3.0/6.3.0/../../..
-lreadline -lsuitesparseconfig -lmetis -lgfortran -lquadmath -lm" \
/usr/local/Cellar/octave/4.2.0_2/bin/mkoctfile-4.2.0
__control_slicot_functions__.cc common.cc slicotlibrary.a
pkg: error running `make' for the control package.
error: called from
install at line 200 column 5
pkg at line 394 column 9
--------------------
gcc was installed by brew with no user supplied options.
from gcc build log
-----
../configure --build=x86_64-apple-darwin16.4.0
--prefix=/usr/local/Cellar/gcc/6.3.0_1
--libdir=/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6
--enable-languages=c,c++,objc,obj-c++,fortran --program-suff
-----
brew info gcc
gcc: stable 6.3.0 (bottled), HEAD
GNU compiler collection
https://gcc.gnu.org
/usr/local/Cellar/gcc/6.3.0_1 (1,436 files, 273.9M) *
Built from source on 2017-02-02 at 12:31:47
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcc.rb
==> Dependencies
Required: gmp ✔, libmpc ✔, mpfr ✔, isl ✔
==> Options
--with-all-languages
Enable all compilers and languages, except Ada
--with-java
Build the gcj compiler
--with-jit
Build the jit compiler
--with-nls
Build with native language support (localization)
--without-fortran
Build without the gfortran compiler
--without-multilib
Build without multilib support
--HEAD
Install HEAD version
==> Caveats
GCC has been built with multilib support. Notably, OpenMP may not work:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670
If you need OpenMP support you may want to
brew reinstall gcc --without-multilib
Do I need to install gcc with gfortran for control package or is gcc
configuration --enable-languages=fortran
sufficient?
--
View this message in context:
http://octave.1599824.n4.nabble.com/Error-installing-control-package-3-0-0-in-4-2-0-2-on-mac-os-sierra-tp4681732.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Error installing control package 3.0.0 in 4.2.0_2 on mac os sierra,
SunilShah <=