Error when installing control-3.2.0 package in Octave 5.2.0

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

Error when installing control-3.2.0 package in Octave 5.2.0

marcasser
Hi,

I’m having some problems when re-installing control-3.2.0 package in Octave 5.2.0. It was already installed but due to some problems with parallel one, I uninstalled all the packages and now I’m not able to re-install the ones were installed previously.

This is the output I’m getting when trying to install control pkg:


octave:5> pkg install -verbose control-3.2.0.tar.gz
Installing control package...
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/9/gcc/x86_64-apple-darwin19/9.2.0'
ld: warning: directory not found for option '-L/usr/local/opt/gcc/lib/gcc/9/gcc/x86_64-apple-darwin19/9.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/5.2.0_4/bin/mkoctfile-5.2.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/5.2.0_4/bin/mkoctfile-5.2.0 -c *.f
ar -rc slicotlibrary.a ./sltmp/*.o
rm -rf sltmp slicot
LFLAGS="-L/usr/local/Cellar/octave/5.2.0_4/lib/octave/5.2.0 -L/usr/local/Cellar/octave/5.2.0_4/lib  -L/usr/local/opt/openblas/lib -lopenblas  -L/usr/local/opt/gcc/lib/gcc/9/gcc/x86_64-apple-darwin19/9.2.0 -L/usr/local/opt/gcc/lib/gcc/9/gcc/x86_64-apple-darwin19/9.2.0/../../.. -lgfortran -lquadmath -lm" \
    /usr/local/Cellar/octave/5.2.0_4/bin/mkoctfile-5.2.0 -Wall -Wno-deprecated-declarations  __control_slicot_functions__.cc common.cc slicotlibrary.a

pkg: error running `make' for the control package.
error: called from
    configure_make at line 99 column 9
    install at line 190 column 7
    pkg at line 441 column 9
    /Users/mariajcasas/.octaverc at line 32 column 9

Any tip would be appreciated. I’m getting frustrated….

Maria J

Reply | Threaded
Open this post in threaded view
|

Re: Error when installing control-3.2.0 package in Octave 5.2.0

nrjank
Administrator
pkg: error running `make' for the control package.
error: called from
    configure_make at line 99 column 9
    install at line 190 column 7
    pkg at line 441 column 9
    /Users/mariajcasas/.octaverc at line 32 column 9



What operating system?  If Windows, we have had issues with certain security settings/software preventing build/execution within the users profile temp folder. We have been able to work around this by setting the temp directory to something else.  E.g., I have created a folder: C:\Octave\temp, and then i run:

setenv('tmpdir','c:\Octave\Temp\')

after which I am able to install packages that require compilation.   (I also added that setenv line to the .octaverc file in my User folder so that it runs on startup)


Reply | Threaded
Open this post in threaded view
|

Re: Error when installing control-3.2.0 package in Octave 5.2.0

marcasser
Mac OS Catalina 10.15.4 Beta (19E250c)

On 17 Apr 2020, at 17:31, Nicholas Jankowski <[hidden email]> wrote:

pkg: error running `make' for the control package.
error: called from
    configure_make at line 99 column 9
    install at line 190 column 7
    pkg at line 441 column 9
    /Users/mariajcasas/.octaverc at line 32 column 9



What operating system?  If Windows, we have had issues with certain security settings/software preventing build/execution within the users profile temp folder. We have been able to work around this by setting the temp directory to something else.  E.g., I have created a folder: C:\Octave\temp, and then i run:

setenv('tmpdir','c:\Octave\Temp\')

after which I am able to install packages that require compilation.   (I also added that setenv line to the .octaverc file in my User folder so that it runs on startup)