I am trying to build Poly/ML from the 5.9.2 tarball on Mac OS Sequoia 15.3.2 and it is failing as follows on my Mac Mini:
rda]- make /Library/Developer/CommandLineTools/usr/bin/make all-recursive Making all in libpolyml /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DMACOSX -Wall -DMODULEDIR="/usr/local/poly/5.9.2-fixed/lib/polyml/modules" -O3 -MT arb.lo -MD -MP -MF .deps/arb.Tpo -c -o arb.lo arb.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DMACOSX -Wall -DMODULEDIR="/usr/local/poly/5.9.2-fixed/lib/polyml/modules" -O3 -MT arb.lo -MD -MP -MF .deps/arb.Tpo -c arb.cpp -fno-common -DPIC -o .libs/arb.o In file included from arb.cpp:93: ./memmgr.h:27:10: fatal error: 'vector' file not found 27 | #include <vector> | ^~~~~~~~ 1 error generated. make[2]: *** [arb.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
It builds fine on my MacBook which is running the same OS and the same version of the Xcode tools. There are suggested fixes to similar problems (but not with Poly/ML) on the Web but the proposed solutions don’t work for me.
Any suggestions gratefully received.
Regards,
Rob.
Dear All,
I found a fix for this problem that I reported yesterday:
On 23 Mar 2026, at 20:43, Rob Arthan rda@lemma-one.com wrote:
I am trying to build Poly/ML from the 5.9.2 tarball on Mac OS Sequoia 15.3.2 and it is failing as follows on my Mac Mini:
rda]- make /Library/Developer/CommandLineTools/usr/bin/make all-recursive Making all in libpolyml /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DMACOSX -Wall -DMODULEDIR="/usr/local/poly/5.9.2-fixed/lib/polyml/modules" -O3 -MT arb.lo -MD -MP -MF .deps/arb.Tpo -c -o arb.lo arb.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DMACOSX -Wall -DMODULEDIR="/usr/local/poly/5.9.2-fixed/lib/polyml/modules" -O3 -MT arb.lo -MD -MP -MF .deps/arb.Tpo -c arb.cpp -fno-common -DPIC -o .libs/arb.o In file included from arb.cpp:93: ./memmgr.h:27:10: fatal error: 'vector' file not found 27 | #include <vector> | ^~~~~~~~ 1 error generated. make[2]: *** [arb.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Firstly softwareupdate claimed that my installation of Xcode tools needed updating. (I don’t understand why.) So I did:
sudo softwareupdate --install "Command Line Tools for Xcode-16.4”
but that didn’t fix the problem. However, it all worked when I uninstalled and reinstalled the command line tools, which you do like this:
sudo rm -rf /Library/Developer/CommandLineTools xcode-select —install
Regards,
Rob.