Octave pkg installer on macOS: fatal error: 'memory_resource' file not found

On may MacBook with Tahoe, I install Dynare via brew brew install dynare, then open octave --gui and in order to run Dynare I also have to install toolboxes as described in the manual (btw the statistics now has datatypes as a dependency).

I used to do this via pkg install, but I am getting now fatal error: 'memory_resource' file not found

>> pkg install -forge statistics
error: the following dependencies were unsatisfied:
   statistics needs datatypes >= 1.1.0
>> pkg install -forge datatypes statistics
In file included from __datetime__.cc:25:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/oct.h:33:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Matrix.h:34:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/mx-base.h:33:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/MatrixType.h:33:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/MSparse.h:31:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Array-util.h:31:
In file included from /opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Array.h:37:
/opt/homebrew/Cellar/octave/10.3.0/include/octave-10.3.0/octave/../octave/Array-fwd.h:32:12: fatal error: 'memory_resource' file not found
   32 | #  include <memory_resource>
      |            ^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [all] Error 1
/opt/homebrew/Cellar/octave/10.3.0/bin/mkoctfile-10.3.0       '-I ./date'  __datetime__.cc tz.cpp

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

I think this is related to Apple's version of clang and might be also related to #1977 (closed) (@cho-m do you have a workaround)?

In essence I cannot use Dynare on Octave at all.

Edited Dec 05, 2025 by Willi Mutschler
Assignee Loading
Time tracking Loading