I have a Macbook Pro M2 Pro with macOS Sequoia.
I am trying to install the basics on Octave but I keep having the same error:
error: pkg: error running 'make' for the control package
Things I have tried so far:
- download version 3.5.0, save it locally, and install it in Octave with the command
pkg install control-3.5.0.tar.gz
pkg install ".1.1/control-4.1.1.tar.gz"
- Manually Compile the control Package with SLICOT
- Ensure Correct GCC and GFortran Setup & Verify libemutls_w.a Symbolic Link
This is the full error:
In file included from __control_helper_functions__:1:
In file included from ./is_real_scalar:28:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:216:24: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
std::unique_ptr<std::wbuffer_convert<convfacet_u8, char>> m_converter;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
In file included from __control_helper_functions__:1:
In file included from ./is_real_scalar:28:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:135:34: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
= std::unique_ptr<std::wbuffer_convert<convfacet_u8, char>>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
In file included from __control_helper_functions__:1:
In file included from ./is_real_scalar:28:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:136:23: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
(new std::wbuffer_convert<convfacet_u8, char>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
3 warnings generated.
ld: warning: duplicate -bundle_loader option, '/opt/homebrew/Cellar/octave/9.4.0/bin/octave-9.4.0' ignored
In file included from __control_slicot_functions__:1:
In file included from ./sl_ab08nd:30:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:216:24: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
std::unique_ptr<std::wbuffer_convert<convfacet_u8, char>> m_converter;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
In file included from __control_slicot_functions__:1:
In file included from ./sl_ab08nd:30:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:135:34: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
= std::unique_ptr<std::wbuffer_convert<convfacet_u8, char>>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
In file included from __control_slicot_functions__:1:
In file included from ./sl_ab08nd:30:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:136:23: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
(new std::wbuffer_convert<convfacet_u8, char>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
3 warnings generated.
In file included from common:30:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:216:24: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
std::unique_ptr<std::wbuffer_convert<convfacet_u8, char>> m_converter;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
In file included from common:30:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:135:34: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
= std::unique_ptr<std::wbuffer_convert<convfacet_u8, char>>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
In file included from common:30:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/../octave/oct.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-dld.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/defun-int.h:33:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-builtin.h:35:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov-fcn.h:36:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ovl.h:38:
In file included from /opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/ov.h:69:
/opt/homebrew/Cellar/octave/9.4.0/include/octave-9.4.0/octave/oct-stream.h:136:23: warning:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' is deprecated
[-Wdeprecated-declarations]
(new std::wbuffer_convert<convfacet_u8, char>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:3867:28: note:
'wbuffer_convert<octave::string::deletable_facet<octave::string::codecvt_u8>, char>' has been explicitly marked
deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wbuffer_convert
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1037:41: note:
expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note:
expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
^
3 warnings generated.
ld: warning: duplicate -bundle_loader option, '/opt/homebrew/Cellar/octave/9.4.0/bin/octave-9.4.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 'heapt_w' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [__control_slicot_functions__.oct] Error 1
cd slicot/src && \
/opt/homebrew/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -w -c MA02ID.f; mv MA02ID.f x && \
/opt/homebrew/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -c *.f ../../TG04BX.f ../../src_aux/*.f && \
mv x MA02ID.f
/opt/homebrew/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -Wall __control_helper_functions__
ar -rc slicotlibrary.a slicot/src/*.o
LDFLAGS="-L/opt/homebrew/Cellar/octave/9.4.0/lib/octave/9.4.0 -L/opt/homebrew/Cellar/octave/9.4.0/lib -bundle -undefined dynamic_lookup -bind_at_load -bundle_loader /opt/homebrew/Cellar/octave/9.4.0/bin/octave-9.4.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" \
/opt/homebrew/Cellar/octave/9.4.0/bin/mkoctfile-9.4.0 -Wall __control_slicot_functions__ common slicotlibrary.a
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