bugGNU Octave - Bugs: bug #66478, Control toolbox installation fails...

 
 

bug #66478: Control toolbox installation fails at Homebew

Submitter:  None
Submitted:  Fri 22 Nov 2024 11:07:05 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  None Assigned to:  None
Originator Name:  oscar Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.2.0
Release:  Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 16 Mar 2025 07:05:48 AM UTC, comment #6: 

Thank you for the reply, Dmitri.
Will try compiling from source

Anonymous
Wed 12 Mar 2025 09:51:43 PM UTC, comment #5: 

This is a problem with homebrew's way of life so yo say.
See e.g.
https://github.com/Homebrew/homebrew-core/issues/201376#issuecomment-2692291045

You need to have octave compiled with exactly the same fortrn compiler you are going to use to compile packages.

So, one workaround is to re-install your octave from source
brew reinstall --build-from-source octave

I do not use homebrew's octave, i build from scratch and I do not have this problem.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 12 Mar 2025 08:42:21 PM UTC, comment #4: 

Hi, I'm having the same issue on intel mac with Octave 9.4.0 (installed with Brew):

GNU Octave, version 9.4.0
Copyright (C) 1993-2024 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-apple-darwin23.6.0".

Home page:            https://octave.org
Support resources:    https://octave.org/support
Improve Octave:       https://octave.org/get-involved

For changes from previous versions, type 'news'.

>> setenv("CXX", "clang++ -std=gnu++17")
>> pkg install -forge control

In file included from _control_helper_functions_.cc:1:
In file included from ./is_real_scalar.cc:28:
In file included from /usr/local/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:29:
In file included from /usr/local/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/octave-config.h:99:
/usr/local/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>
      |            ^~~~~~~~~~~
1 error generated.
make: * [__control_helper_functions__.oct] Error 1
make: * Waiting for unfinished jobs....
d slicot/src && \
          /usr/local/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -w -c MA02ID.f; mv MA02ID.f x && \
                /usr/local/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -c .f ../../TG04BX.f ../../src_aux/.f && \
                mv x MA02ID.f
/usr/local/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -Wall  _control_helper_functions_.cc
ar -rc slicotlibrary.a slicot/src/*.o

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

Tried with couple of older versions of control all the way down to 3.5.1 - same result and errors

Anonymous
Tue 26 Nov 2024 07:18:38 AM UTC, comment #3: 

Please include all the output.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 26 Nov 2024 05:41:02 AM UTC, comment #2: 

Doesn't work for me. No idea why.

Trying gnu++17...


octave:1> setenv("CXX", "clang++ -std=gnu++17")
octave:2> pkg install -forge -verbose control
...
blablabla
...
/opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>
      |            ^~~~~~~~~~~
...

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
octave:3>

==========================================================

Same for gnu++14, I think...


octave:1> setenv("CXX", "clang++ -std=gnu++14")
octave:2> pkg install -forge -verbose control

...

/opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>

...

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
octave:3>


Anonymous
Fri 22 Nov 2024 11:39:40 PM UTC, comment #1: 

I think <cinttypes> require C++14 standard as a minimum.

Try setting "CXX=clang++ -std=gnu++14" (or 17).
E.g.:

octave:2> setenv("CXX", "clang++ -std=gnu++17")
octave:3> pkg install -forge -verbose control
downloading tarball(s) from:
- https://packages.octave.org/download/control-4.0.1.tar.gz
...


That works for me.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 22 Nov 2024 11:07:05 PM UTC, original submission:  

Attempting to install control on Homebrew Octave.
M1 PowerBook Pro,
Sonoma macOS 14.7.1.
HOMEBREW_VERSION: 4.4.6,
Command Line Tools 16.1.0.0.1.1729049160

octave:1> pkg install -forge control
In file included from _control_helper_functions_.cc:1:
In file included from ./is_real_scalar.cc:28:
In file included from /opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct.h:29:
In file included from /opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/octave-config.h:99:
/opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>
      |            ^~~~~~~~~~~
1 error generated.
make: * [__control_helper_functions__.oct] Error 1
make: * Waiting for unfinished jobs....
cd slicot/src && /opt/homebrew/Cellar/octave/9.2.0_2/bin/mkoctfile-9.2.0 -w -c MA02ID.f; mv MA02ID.f x && /opt/homebrew/Cellar/octave/9.2.0_2/bin/mkoctfile-9.2.0 -c *.f && mv x MA02ID.f
/opt/homebrew/Cellar/octave/9.2.0_2/bin/mkoctfile-9.2.0 -Wall -Wno-deprecated-declarations  _control_helper_functions_.cc
ar -rc slicotlibrary.a slicot/src/*.o

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
octave:2>

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-e31b.
    Corresponding source code