bugGNU Octave - Bugs: bug #66555, Control-4.1.0 Fails to install

 
 

bug #66555: Control-4.1.0 Fails to install

Submitter:  None
Submitted:  Wed 11 Dec 2024 03:52:20 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  None Assigned to:  None
Originator Name:  Tony Chiangq Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.2.0
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 11 Dec 2024 04:48:07 PM UTC, comment #3: 

P.S. Octave 9.3 is about to be released, so homebrew should update to that too.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 11 Dec 2024 04:36:56 PM UTC, comment #2: 

I do have a similar problem with homebrew-provided octave.

clang++ -std=gnu++17 -I/opt/homebrew/Cellar/octave/9.2.0_3/include/octave-9.2.0/octave/.. -I/opt/homebrew/Cellar/octave/9.2.0_3/include/octave-9.2.0/octave -I/opt/homebrew/Cellar/octave/9.2.0_3/include  -pthread -g -O2  -Wall -Wno-deprecated-declarations -o __control_slicot_functions__.oct  /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T//oct-dnxx2M.o /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T//oct-4Sr2aa.o  slicotlibrary.a  -bundle -undefined dynamic_lookup -bind_at_load -bundle_loader /opt/homebrew/Cellar/octave/9.2.0_3/bin/octave-9.2.0 -L/opt/homebrew/Cellar/octave/9.2.0_3/lib/octave/9.2.0 -L/opt/homebrew/Cellar/octave/9.2.0_3/lib -bundle -undefined dynamic_lookup -bind_at_load -bundle_loader /opt/homebrew/Cellar/octave/9.2.0_3/bin/octave-9.2.0  -L/opt/homebrew/opt/openblas/lib -lopenblas  -L/opt/homebrew/opt/gcc/bin/../lib/gcc/current/gcc/aarch64-apple-darwin23/14 -L/opt/homebrew/opt/gcc/bin/../lib/gcc/current/gcc -L/opt/homebrew/opt/gcc/bin/../lib/gcc/current/gcc/aarch64-apple-darwin23/14/../../.. -lemutls_w -lheapt_w -lgfortran -lquadmath   -loctinterp -loctave
ld: warning: duplicate -bundle_loader option, '/opt/homebrew/Cellar/octave/9.2.0_3/bin/octave-9.2.0' ignored
ld: warning: search path '/opt/homebrew/opt/gcc/bin/../lib/gcc/current/gcc/aarch64-apple-darwin23/14' not found
ld: warning: search path '/opt/homebrew/opt/gcc/bin/../lib/gcc/current/gcc/aarch64-apple-darwin23/14/../../..' not found
ld: library 'emutls_w' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [__control_slicot_functions__.oct] Error 1

error: pkg: error running 'make' for the control package
error: called from
    configure_make at line 117 column 9
    install at line 202 column 7
    pkg at line 619 column 9

Compare that with what I get with self-compiled octave-10:

clang++ -std=gnu++17 -I/usr/local/include/octave-10.0.0/octave/.. -I/usr/local/include/octave-10.0.0/octave -I/usr/local/include  -pthread -ggdb3 -O2 -march=native -mcpu=native -flto=thin  -Wall -Wno-deprecated-declarations -o __control_slicot_functions__.oct  /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T//oct-wQ6p9k.o /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T//oct-zBcofN.o  slicotlibrary.a  -bundle -undefined dynamic_lookup -bind_at_load  -L/usr/local/lib -bundle -undefined dynamic_lookup -bind_at_load  -L/opt/homebrew/opt/openblas/lib -lopenblas  -L/opt/homebrew/lib -L/opt/homebrew/Cellar/gcc/14.2.0_1/bin/../lib/gcc/current/gcc/aarch64-apple-darwin24/14 -L/opt/homebrew/Cellar/gcc/14.2.0_1/bin/../lib/gcc/current/gcc -L/opt/homebrew/Cellar/gcc/14.2.0_1/bin/../lib/gcc/current/gcc/aarch64-apple-darwin24/14/../../.. -lemutls_w -lheapt_w -lgfortran -lquadmath  -L/opt/homebrew/lib -bundle_loader /usr/local/bin/octave-10.0.0
copyfile /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T/oct-rC69gC/control-4.1.0/src/__control_helper_functions__.oct /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T/oct-rC69gC/control-4.1.0/src/__control_slicot_functions__.oct /var/folders/ds/5xsh6x4914x78jswflyz20c40000gn/T/oct-rC69gC/control-4.1.0/inst/aarch64-apple-darwin24.1.0-api-v59
The control package was installed into the directory
/Users/dmitri/.local/share/octave/api-v59/packages/control-4.1.0.


GCC path looks wrong. Please file a bug with homebrew people.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 11 Dec 2024 04:10:28 PM UTC, comment #1: 

Works for me:

octave:1> ver
----------------------------------------------------------------------
GNU Octave Version: 10.0.0 (hg id: dcc639b91ba9)
GNU Octave License: GNU General Public License
Operating System: Darwin 24.1.0 Darwin Kernel Version 24.1.0: Thu Nov 14 18:15:21 PST 2024; root:xnu-11215.41.3~13/RELEASE_ARM64_T6041 arm64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control  |   4.1.0 | /Users/dmitri/.local/share/octave/api-v59/packages/control-4.1.0
...


Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 11 Dec 2024 03:52:20 PM UTC, original submission:  

When running the pkg install command from Octave for control, I get the following error:

sh: gfortran: command not found
sh: gfortran: command not found
make: * [slicotlibrary.a] Error 127
make: * Waiting for unfinished jobs....
ld: warning: duplicate -bundle_loader option, '/opt/homebrew/Cellar/octave/9.2.0_3/bin/octave-9.2.0' ignored
cd slicot/src && /opt/homebrew/Cellar/octave/9.2.0_3/bin/mkoctfile-9.2.0 -w -c MA02ID.f; mv MA02ID.f x && /opt/homebrew/Cellar/octave/9.2.0_3/bin/mkoctfile-9.2.0 -c *.f && mv x MA02ID.f
/opt/homebrew/Cellar/octave/9.2.0_3/bin/mkoctfile-9.2.0 -Wall -Wno-deprecated-declarations  _control_helper_functions_.cc

error: pkg: error running 'make' for the control package
error: called from
    configure_make at line 117 column 9
    install at line 202 column 7
    pkg at line 619 column 9


When I run 'which gfortran' in terminal, I have:
/opt/homebrew/bin/gfortran

Seems to be a makefile problem, but not positive.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-708e.
    Corresponding source code