control 3.2.0 fails to install on octave 6.10 on mac os big sur

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

control 3.2.0 fails to install on octave 6.10 on mac os big sur

sshah
I have installed octave 6.10 on Mac os Bug Sur using Homebrew. It is an intel
machine (MBP 2017).

Octave installed fine.  pkg install -forge control fails.

---------------------

octave:1> pkg install control-3.2.0.tar.gz
warning: LFLAGS is deprecated and will be removed in a future version of
Octave, use LDFLAGS instead
MA02ID.f:188:21:

  184 |          DO 90 J = 1, N+1
      |                                                                      
2
......
  188 |                DWORK(J-1) = DWORK(J-1) + TEMP
      |                     1
Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at
(2)
MA02ID.f:188:34:

  184 |          DO 90 J = 1, N+1
      |                                                                      
2
......
  188 |                DWORK(J-1) = DWORK(J-1) + TEMP
      |                                  1
Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at
(2)
MA02ID.f:230:21:

  226 |          DO 160 J = 1, N+1
      |                                                                      
2
......
  230 |                DWORK(J-1) = DWORK(J-1) + TEMP
      |                     1
Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at
(2)
MA02ID.f:230:34:

  226 |          DO 160 J = 1, N+1
      |                                                                      
2
......
  230 |                DWORK(J-1) = DWORK(J-1) + TEMP
      |                                  1
Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at
(2)
warning: LFLAGS is deprecated and will be removed in a future version of
Octave, use LDFLAGS instead
ld: warning: directory not found for option
'-L/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin20/10.2.0'
ld: warning: directory not found for option
'-L/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin20/10.2.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/6.1.0/bin/mkoctfile-6.1.0 -Wall
-Wno-deprecated-declarations  __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/6.1.0/bin/mkoctfile-6.1.0 -c *.f
ar -rc slicotlibrary.a ./sltmp/*.o
rm -rf sltmp slicot
LFLAGS="-L/usr/local/Cellar/octave/6.1.0/lib/octave/6.1.0
-L/usr/local/Cellar/octave/6.1.0/lib  -L/usr/local/opt/openblas/lib
-lopenblas  -L/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin20/10.2.0
-L/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin20/10.2.0/../../..
-lgfortran -lquadmath -lm" \
    /usr/local/Cellar/octave/6.1.0/bin/mkoctfile-6.1.0 -Wall
-Wno-deprecated-declarations  __control_slicot_functions__.cc common.cc
slicotlibrary.a

error: pkg: error running 'make' for the control package.
error: called from
    configure_make at line 110 column 9
    install at line 196 column 7
    pkg at line 568 column 9

-----------------------------









--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: control 3.2.0 fails to install on octave 6.10 on mac os big sur

sshah
Resolved by

> brew reinstall gcc

It created the missing directory for gcc libraries for Big Sur.

 



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html