Re: Control package fails to install
Marius Schamschula <[email protected]> Wed, 22 Dec 2021 06:05:31 -0600
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <[email protected]> |
Baba, For some reason, it is looking for paths of a MacPorts installation of octave. However, it seems that you may have upgraded your version of macOS w/o reinstalling your Homebrew packages (aarch64-apple-darwin20 vs. aarch64-apple-darwin21). This caused libgfortran not to be found, and, thus, the fatal error. Marius -- Marius Schamschula > On Dec 21, 2021, at 8:29 PM, baba roum <[email protected]> wrote: > > Hi, > > I am trying to install the control package (need as a dependency for signal package) but i get the following error (see below). > > I am running macOs 12.1 on M1X apple sillicon octave 6.4.0 installed via homebrew. > > The path /opt/homebrew/opt/gcc/lib/gcc/11/gcc/aarch64-apple-darwin20/11 does not exist on my system but /opt/homebrew/opt/gcc/lib/gcc/11/gcc/aarch64-apple-darwin21/11 does exist. > > thanks > > ---------------------------------- > octave> pkg install -forge control > ld: warning: directory not found for option '-L/opt/local/lib' > ld: warning: directory not found for option '-L/opt/local/libexec/qt5/lib' > ld: warning: directory not found for option '-L/opt/homebrew/opt/gcc/lib/gcc/11/gcc/aarch64-apple-darwin20/11' > ld: warning: directory not found for option '-L/opt/homebrew/opt/gcc/lib/gcc/11/gcc/aarch64-apple-darwin20/11/../../..' > ld: library not found for -lgfortran > clang: error: linker command failed with exit code 1 (use -v to see invocation) > make: *** [__control_helper_functions__.oct] Error 1 > make: *** Waiting for unfinished jobs.... > tar -xzf slicot.tar.gz > /opt/homebrew/Cellar/octave/6.4.0_1/bin/mkoctfile-6.4.0 -Wall -Wno-deprecated-declarations __control_helper_functions__.cc > mkdir sltmp > mv slicot/src/*.f ./sltmp > mv slicot/src_aux/*.f ./sltmp > if [ "1" = "1" ]; then \ > echo "copy routines using DGGES"; \ > cp SB04OD.fortran ./sltmp/SB04OD.f; \ > cp SG03AD.fortran ./sltmp/SG03AD.f; \ > cp SG03BD.fortran ./sltmp/SG03BD.f; \ > fi; > copy routines using DGGES > cp AB08NX.fortran ./sltmp/AB08NX.f > cp AG08BY.fortran ./sltmp/AG08BY.f > cp SB01BY.fortran ./sltmp/SB01BY.f > cp SB01FY.fortran ./sltmp/SB01FY.f > cp SB06ND.fortran ./sltmp/SB06ND.f > cp TB01MD.fortran ./sltmp/TB01MD.f > cp TB01ND.fortran ./sltmp/TB01ND.f > cp TB01ZD.fortran ./sltmp/TB01ZD.f > cp TG04BX.fortran ./sltmp/TG04BX.f > cp ODLTZM.fortran ./sltmp/ODLTZM.f > cp makefile.slicot ./sltmp/makefile > cd sltmp; /opt/homebrew/Cellar/octave/6.4.0_1/bin/mkoctfile-6.4.0 -w -c MA02ID.f; rm MA02ID.f; /opt/homebrew/Cellar/octave/6.4.0_1/bin/mkoctfile-6.4.0 -c *.f; > ar -rc slicotlibrary.a ./sltmp/*.o > rm -rf sltmp slicot > > 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 > > > > ---------- > We are transitioning to a web based forum > for community help discussions at > https://octave.discourse.group/c/help ---------- We are transitioning to a web based forum for community help discussions at https://octave.discourse.group/c/help