GalacticDynamics-Oxford / Agama

Action-based galaxy modeling framework
Other
72 stars 35 forks source link

Issue with Mac OS installation #45

Open keflavich opened 1 month ago

keflavich commented 1 month ago

As far as I can tell, this is different from https://github.com/GalacticDynamics-Oxford/Agama/issues/21 and https://github.com/GalacticDynamics-Oxford/Agama/issues/23, though of course related.

I'm trying to install on Mac OS 13.6 on an M1 Max. Anaconda should be reasonably recent:

$ conda --version
conda 23.3.1

and python is arm64:

$ which python
/Users/adam/mambaforge/envs/py312/bin/python
$ file `which python`
/Users/adam/mambaforge/envs/py312/bin/python: Mach-O 64-bit executable arm64

The end of my python setup.py install attempt looks like this:

c++ -arch arm64 -arch x86_64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
ld: warning: ignoring file /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[55414]: symbol not found in flat namespace '_PyCapsule_GetPointer'
From py:  sys.prefix=/Users/adam/mambaforge/envs/py312
    **** Trying the options provided by python3.12-config --ldflags ****
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -arch x86_64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC -L/Users/adam/mambaforge/envs/py312/lib/python3.12/config-3.12-darwin -ldl -framework CoreFoundation
Undefined symbols for architecture arm64:
  "_PyCapsule_GetPointer", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyCapsule_Type", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyErr_Clear", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyErr_ExceptionMatches", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyErr_Format", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyErr_Print", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyErr_SetString", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyExc_ImportError", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyExc_ModuleNotFoundError", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyExc_RuntimeError", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyImport_ImportModule", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyModule_Create2", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyObject_GetAttrString", referenced from:
      _PyInit_agamatest in test-arm64.o
  "_PyRun_SimpleStringFlags", referenced from:
      bla() in test-arm64.o
      run() in test-arm64.o
      _PyInit_agamatest in test-arm64.o
  "_Py_Finalize", referenced from:
      run() in test-arm64.o
  "_Py_Initialize", referenced from:
      run() in test-arm64.o
  "__Py_Dealloc", referenced from:
      _PyInit_agamatest in test-arm64.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: If you see an error 'ld: symbol(s) not found for architecture arm64', it may be because you are running a x86_64 version of Python on an ARM (Apple Silicon/M1) machine, and the Python extension module compiled for the ARM architecture is incompatible with the Python interpreter. The solution is to install a native ARM Python version (e.g., Anaconda 2022.05 or newer)

The latter error message doesn't seem to be appropriate here: I'm running arm64 and compiling extensions for arm64.

Disabling x86_64 results in different errors related to gsl:

$ python setup.py install
If you are scared by a deprecation warning about running "setup.py install", try "pip install ." instead
/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
warning: build_py: byte-compiling is disabled, skipping.

    ==== Checking supported compiler options and available libraries ====

c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -fopenmp -Werror -Wno-unknown-pragmas
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
test.cpp:1:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -I/Users/adam/mambaforge/envs/py312/include
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include test.cpp -o test.out /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Xpreprocessor -fopenmp -Werror -Wno-unknown-pragmas
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -std=c++11
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -arch arm64
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -qno-opt-dynamic-align
clang: error: unknown argument: '-qno-opt-dynamic-align'
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -Werror -Wno-missing-field-initializers
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -Werror -Wno-cast-function-type
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[57988]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /Users/adam/repos/Agama/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying rpath
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[58002]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /Users/adam/repos/Agama/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying the last resort solution
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC -undefined dynamic_lookup -ldl -framework CoreFoundation
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
    **** Successfully linked using these options ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -fPIC -shared
test.cpp:1:10: fatal error: 'gsl/gsl_version.h' file not found
#include <gsl/gsl_version.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
GSL library (required) is not found
Should we try to download and compile it now? [Y/N] Y
Downloading GSL
Unpacking GSL
Compiling GSL (may take a few minutes)
configure: error: in '/Users/adam/repos/Agama/extras/gsl-2.8':
configure: error: C compiler cannot create executables
See 'config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
error: GSL compilation failed (check extras/gsl-install.log)

I do not have homebrew or macports; I'm trying to do this with conda + native mac software only.

Any idea what I can do to move this forward?

eugvas commented 1 month ago

yeah, both errors are kinda strange.. In the first case, I am puzzled why both -arch x86_64 and -arch arm64 appear in the command line. Perhaps this version of anaconda is a universal binary and supports both architectures? I haven't tried compiling it in this regime, though it might be possible. Can you run the attached file (without any arguments), which shows the values of some Python config variables and compiles a minimalistic extension module (unusable), and report the output? you may then delete the folder build/*. test.py.txt I suspect that CFLAGS and/or LDFLAGS contain flags for both architectures, to which the Agama setup script adds another one (probably it needs to be modified to ignore the -arch flags reported by python).

For the second case, how did you get rid of the duplicate -arch flags? The inability to compile GSL is baffling; can you try to do it manually? (download/unpack https://ftp.gnu.org/gnu/gsl/gsl-2.8.tar.gz , then run ./configure followed by make). If that works, you may copy the files libgsl.a and libgslcblas.a to the folder extras/lib/, and all gsl_*.h files into extras/include/gsl, then run agama setup again.. though this is exactly the procedure that the setup script itself uses). You may also try to find a hint of what's going wrong in the log file extras/gsl-install.log.

keflavich commented 1 month ago
$ python test.py.txt
LIBRARY = libpython3.12.a
LDLIBRARY = libpython3.12.a
INSTSONAME = libpython3.12.a
LIBDIR = /Users/adam/mambaforge/envs/py312/lib
LIBPL = /Users/adam/mambaforge/envs/py312/lib/python3.12/config-3.12-darwin
LDSHARED = clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib -L/Users/adam/mambaforge/envs/py312/lib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib -L/Users/adam/mambaforge/envs/py312/lib
LDFLAGS = -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib -L/Users/adam/mambaforge/envs/py312/lib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib -L/Users/adam/mambaforge/envs/py312/lib
LINKFORSHARED = -Wl,-stack_size,1000000  -framework CoreFoundation
PYTHONFRAMEWORK =
LIBS = -ldl  -framework CoreFoundation
SYSLIBS =
Py_ENABLE_SHARED = 0
prefix = /Users/adam/mambaforge/envs/py312
CFLAGS = -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -Wall -fPIC  -O2  -isystem /Users/adam/mambaforge/envs/py312/include -arch arm64  -fPIC  -O2  -isystem /Users/adam/mambaforge/envs/py312/include -arch arm64

I modified some environmental variables: export CFLAGS="-arch arm64"; export CCFLAGS="-arch arm64"; export CXXFLAGS="-arch arm64"; FFLAGS="-arch arm64"; LDFLAGS="-arch arm64"

gsl... huh, ok:

$ less extras/gsl-install.log
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a sed that does not truncate output... /usr/bin/sed
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-apple-darwin22.6.0
checking host system type... x86_64-apple-darwin22.6.0
checking for gcc... gcc
checking whether the C compiler works... no
make: Nothing to be done for `install'.

That certainly points in a direction. I definitely have used gcc previously, so I'm not sure what's going on yet. A little googling suggests that maybe I got blocked by Apple's security and need to do some xcode-install related stuff (e.g., xcode-select --install), but this is really weird - this is far from the first C package I've compiled on this machine.

Thanks for the help; I'll update once I get gcc to respond (xcode install is taking a while)

eugvas commented 1 month ago

the python config is essentially the same as on my machine, so I thought it should compile for the arm64 architecture only.. If you also set CFLAGS and LDFLAGS as environment variables, the Agama setup script adds them to the mixture, but it doesn't check if they make sense or conflict with other flags. This is primarily intended for adding include / lib paths, not for setting the architecture - the latter is done explicitly inside the setup script by "asking" the Python interpreter itself.

The second problem indeed may be related to the xcode command-line tools not being installed (or "security cleared"), although it is indeed strange that you have not hit it before. I personally did not install the full Xcode, only the command-line tools (i.e. clang, which confusingly is presenting itself as gcc). I forgot to mention that I also tested the agama compilation on a clean system before installing homebrew, and it should work fine (i.e. use the clang compiler from xcode, though it would not be able to use OpenMP parallelization unless libomp is installed either via conda or homebrew / macports, in that order of precedence).

keflavich commented 1 month ago

Installation completed with CC=clang, but import fails:

$ python -c "import agama"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/agama-1.0-py3.12-macosx-11.0-arm64.egg/agama/__init__.py", line 1, in <module>
    from .agama import *               # import everything from the C++ library
    ^^^^^^^^^^^^^^^^^^^^
ImportError: dlopen(/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/agama-1.0-py3.12-macosx-11.0-arm64.egg/agama/agama.so, 0x0002): symbol not found in flat namespace '_gsl_blas_ddot'
eugvas commented 1 month ago

This is likely because agama.so was linked against the dynamical library libgslcblas.so, not the static one libgslcblas.a. Did you build the GSL yourself or let the setup script do it for you? in the latter case, it should be compiling only the static version, because otherwise the dynamic one is preferred during linking (which is what likely happened in your case). You can check which the shared libraries are used by running otool -L agama.so

keflavich commented 1 month ago

I let the script do it.

$ otool -L agama.so
agama.so:
    @executable_path/agama.so (compatibility version 0.0.0, current version 0.0.0)
    @rpath/libomp.dylib (compatibility version 5.0.0, current version 5.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1858.112.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.23.0)

That doesn't look like it linked at all, which is odd.

I think I know what happened. I tried to circumvent all the 'ask' steps, but I shouldn't have done that for openmp. This error was in my log above:

c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -fopenmp -Werror -Wno-unknown-pragmas
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
test.cpp:1:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.
eugvas commented 1 month ago

hmm, I don't think this is relevant: first, GSL and OpenMP have nothing to do with each other, and second, it seems that the compilation of Agama eventually was configured with OpenMP support. The log may contain some error messages, because the script tries several options before it finds the one that worked. Then my suspicion is that the shared library libgslcblas.so exists somewhere else in your system (perhaps in Anaconda), and got prioritized over the static one during linking. I think you should be able to circumvent this by manually editing Makefile.local, replacing -lgsl -lgslcblas with extras/lib/libgsl.a extras/lib/libgslcblas.a. If this works, I will make the setup script do this by default; as of now, it first tries to use a system-wide installation of GSL, but perhaps it's safer if it always compiles its own private one and links to it statically.

keflavich commented 1 month ago

I'm trying a fresh install after a git clean -fxd to make sure I didn't end up with multiple versions of gsl built. If that doesn't solve it, I'll try editing Makefile.local

keflavich commented 1 month ago

Makefile.local was already using the extras/ ones:

$ cat Makefile.local
# set the default compiler if no value is found in the environment variables or among command-line arguments
ifeq ($(origin CXX),default)
CXX = c++
endif
ifeq ($(origin FC), default)
FC  = gfortran
endif
LINK = $(CXX)
# compilation/linking flags for both the shared library and any programs that use it
CXXFLAGS      = -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type
# compilation flags for the shared library only (files in src/)
COMPILE_FLAGS = -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT
# linking flags for the shared library only
LINK_FLAGS    = /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a
# linking flags for the example/test programs
EXE_FLAGS     = /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib

Here's the full text of the install:

$ python setup.py install
If you are scared by a deprecation warning about running "setup.py install", try "pip install ." instead
/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
warning: build_py: byte-compiling is disabled, skipping.

    ==== Checking supported compiler options and available libraries ====

c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -fopenmp -Werror -Wno-unknown-pragmas
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
test.cpp:1:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -I/Users/adam/mambaforge/envs/py312/include
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include test.cpp -o test.out /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Xpreprocessor -fopenmp -Werror -Wno-unknown-pragmas
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -std=c++11
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -arch arm64
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -qno-opt-dynamic-align
clang: error: unknown argument: '-qno-opt-dynamic-align'
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -Werror -Wno-missing-field-initializers
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -Werror -Wno-cast-function-type
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[85391]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /Users/adam/repos/Agama/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying rpath
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[85404]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /Users/adam/repos/Agama/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Library/Developer/CommandLineTools/Library/Frameworks/
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[85425]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /Users/adam/repos/Agama/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying the last resort solution
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC -undefined dynamic_lookup -ldl -framework CoreFoundation
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
    **** Successfully linked using these options ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -fPIC -shared
test.cpp:1:10: fatal error: 'gsl/gsl_version.h' file not found
#include <gsl/gsl_version.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
Downloading GSL
Unpacking GSL
Compiling GSL (may take a few minutes)
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o test.out -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include
test.cpp:1:10: fatal error: 'Eigen/Core' file not found
#include <Eigen/Core>
         ^~~~~~~~~~~~
1 error generated.
Downloading Eigen
Unpacking Eigen
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o test.out -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -Iextras/include /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a
test.cpp:1:10: fatal error: 'cvxopt.h' file not found
#include <cvxopt.h>
         ^~~~~~~~~~
1 error generated.
Downloading CVXOPT header files
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -Iextras/include -DHAVE_CVXOPT -Iextras/include /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a -lglpk -fPIC -shared
test.cpp:1:10: fatal error: 'glpk.h' file not found
#include <glpk.h>
         ^~~~~~~~
1 error generated.
GLPK library (optional) is not found, ignored
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -Iextras/include -DHAVE_CVXOPT -Iextras/include /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a -lunsio -lnemo -fPIC -shared
test.cpp:1:10: fatal error: 'uns.h' file not found
#include <uns.h>
         ^~~~~~~
1 error generated.
Downloading UNSIO
Compiling UNSIO
g++: warning: couldn’t understand kern.osversion ‘22.6.0
g++: error: unrecognized command line option ‘-arch’
make: *** [unsio/obj/camr.o] Error 1
Failed compiling UNSIO (check extras/unsio-install.log)

    ==== Compiling the C++ library ====

c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_c.o" "src/interface_c.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_fortran.o" "src/interface_fortran.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_nemo.o" "src/interface_nemo.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_python.o" "src/interface_python.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_core.o" "src/math_core.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_fit.o" "src/math_fit.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_gausshermite.o" "src/math_gausshermite.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_geometry.o" "src/math_geometry.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_linalg.o" "src/math_linalg.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_ode.o" "src/math_ode.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_optimization.o" "src/math_optimization.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_random.o" "src/math_random.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_sample.o" "src/math_sample.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_specfunc.o" "src/math_specfunc.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_sphharm.o" "src/math_sphharm.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_spline.o" "src/math_spline.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/particles_io.o" "src/particles_io.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_factory.o" "src/actions_factory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_focal_distance_finder.o" "src/actions_focal_distance_finder.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_isochrone.o" "src/actions_isochrone.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_spherical.o" "src/actions_spherical.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_staeckel.o" "src/actions_staeckel.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_torus.o" "src/actions_torus.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/coord.o" "src/coord.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/cubature.o" "src/cubature.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_base.o" "src/df_base.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_disk.o" "src/df_disk.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_factory.o" "src/df_factory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_halo.o" "src/df_halo.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_spherical.o" "src/df_spherical.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_base.o" "src/galaxymodel_base.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_densitygrid.o" "src/galaxymodel_densitygrid.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_fokkerplanck.o" "src/galaxymodel_fokkerplanck.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_jeans.o" "src/galaxymodel_jeans.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_losvd.o" "src/galaxymodel_losvd.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_selfconsistent.o" "src/galaxymodel_selfconsistent.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_spherical.o" "src/galaxymodel_spherical.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_velocitysampler.o" "src/galaxymodel_velocitysampler.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/orbit.o" "src/orbit.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/orbit_variational.o" "src/orbit_variational.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_analytic.o" "src/potential_analytic.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_base.o" "src/potential_base.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_composite.o" "src/potential_composite.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_cylspline.o" "src/potential_cylspline.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_dehnen.o" "src/potential_dehnen.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_disk.o" "src/potential_disk.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_factory.o" "src/potential_factory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_ferrers.o" "src/potential_ferrers.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_king.o" "src/potential_king.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_multipole.o" "src/potential_multipole.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_perfect_ellipsoid.o" "src/potential_perfect_ellipsoid.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_spheroid.o" "src/potential_spheroid.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_utils.o" "src/potential_utils.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_core.o" "src/raga_core.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_binary.o" "src/raga_binary.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_losscone.o" "src/raga_losscone.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_potential.o" "src/raga_potential.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_relaxation.o" "src/raga_relaxation.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_trajectory.o" "src/raga_trajectory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/utils.o" "src/utils.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/utils_config.o" "src/utils_config.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/CHB.o" "src/torus/CHB.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Fit.o" "src/torus/Fit.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Fit2.o" "src/torus/Fit2.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/GeneratingFunction.o" "src/torus/GeneratingFunction.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Orb.o" "src/torus/Orb.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/PJMNum.o" "src/torus/PJMNum.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Point_ClosedOrbitCheby.o" "src/torus/Point_ClosedOrbitCheby.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Point_None.o" "src/torus/Point_None.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Torus.o" "src/torus/Torus.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Toy_Isochrone.o" "src/torus/Toy_Isochrone.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/WD_Numerics.o" "src/torus/WD_Numerics.cc"
c++ -shared -o agama.so obj/interface_c.o obj/interface_fortran.o obj/interface_nemo.o obj/interface_python.o obj/math_core.o obj/math_fit.o obj/math_gausshermite.o obj/math_geometry.o obj/math_linalg.o obj/math_ode.o obj/math_optimization.o obj/math_random.o obj/math_sample.o obj/math_specfunc.o obj/math_sphharm.o obj/math_spline.o obj/particles_io.o obj/actions_factory.o obj/actions_focal_distance_finder.o obj/actions_isochrone.o obj/actions_spherical.o obj/actions_staeckel.o obj/actions_torus.o obj/coord.o obj/cubature.o obj/df_base.o obj/df_disk.o obj/df_factory.o obj/df_halo.o obj/df_spherical.o obj/galaxymodel_base.o obj/galaxymodel_densitygrid.o obj/galaxymodel_fokkerplanck.o obj/galaxymodel_jeans.o obj/galaxymodel_losvd.o obj/galaxymodel_selfconsistent.o obj/galaxymodel_spherical.o obj/galaxymodel_velocitysampler.o obj/orbit.o obj/orbit_variational.o obj/potential_analytic.o obj/potential_base.o obj/potential_composite.o obj/potential_cylspline.o obj/potential_dehnen.o obj/potential_disk.o obj/potential_factory.o obj/potential_ferrers.o obj/potential_king.o obj/potential_multipole.o obj/potential_perfect_ellipsoid.o obj/potential_spheroid.o obj/potential_utils.o obj/raga_core.o obj/raga_binary.o obj/raga_losscone.o obj/raga_potential.o obj/raga_relaxation.o obj/raga_trajectory.o obj/utils.o obj/utils_config.o obj/CHB.o obj/Fit.o obj/Fit2.o obj/GeneratingFunction.o obj/Orb.o obj/PJMNum.o obj/Point_ClosedOrbitCheby.o obj/Point_None.o obj/Torus.o obj/Toy_Isochrone.o obj/WD_Numerics.o /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Wl,-install_name,@executable_path/agama.so
ld: warning: ignoring file extras/lib/libgsl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file extras/lib/libgslcblas.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
c++ -o "exe/test_math_core.exe" "tests/test_math_core.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_math_linalg.exe" "tests/test_math_linalg.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_math_spline.exe" "tests/test_math_spline.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_coord.exe" "tests/test_coord.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_units.exe" "tests/test_units.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_utils.exe" "tests/test_utils.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_orbit_integr.exe" "tests/test_orbit_integr.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_orbit_variational.exe" "tests/test_orbit_variational.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_potentials.exe" "tests/test_potentials.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_potential_expansions.exe" "tests/test_potential_expansions.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_potential_modifiers.exe" "tests/test_potential_modifiers.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_isochrone.exe" "tests/test_actions_isochrone.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_spherical.exe" "tests/test_actions_spherical.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_staeckel.exe" "tests/test_actions_staeckel.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_torus.exe" "tests/test_actions_torus.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_action_finder.exe" "tests/test_action_finder.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_df_halo.exe" "tests/test_df_halo.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_df_spherical.exe" "tests/test_df_spherical.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_density_grid.exe" "tests/test_density_grid.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_losvd.exe" "tests/test_losvd.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_galaxymodel.exe" "tests/test_galaxymodel.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_actions_nbody.exe" "tests/example_actions_nbody.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_df_fit.exe" "tests/example_df_fit.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_doublepowerlaw.exe" "tests/example_doublepowerlaw.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_self_consistent_model.exe" "tests/example_self_consistent_model.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_self_consistent_model_mw.exe" "tests/example_self_consistent_model_mw.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/mkspherical.exe" "tests/mkspherical.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/phaseflow.exe" "tests/phaseflow.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/raga.exe" "tests/raga.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
gfortran -o "exe/test_fortran.exe" tests/test_fortran.f agama.so -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
f951: Warning: command-line option ‘-Wno-missing-field-initializers’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
f951: Warning: command-line option ‘-Wno-cast-function-type’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
f951: Warning: command-line option ‘-std=c++11’ is valid for C++/ObjC++ but not for Fortran
warning: install_lib: byte-compiling is disabled, skipping.

Running /var/folders/k_/7qh4l0nn72b7qgq15pkd4hw40000gt/T/easy_install-littavqv/agama-1.0/setup.py
Downloading the latest version of package from github
/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
warning: build_py: byte-compiling is disabled, skipping.

    ==== Checking supported compiler options and available libraries ====

c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -fopenmp -Werror -Wno-unknown-pragmas
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out
test.cpp:1:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.
c++ -arch arm64 -fPIC -Wall -O2 test.cpp -o test.out -I/Users/adam/mambaforge/envs/py312/include
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include test.cpp -o test.out /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Xpreprocessor -fopenmp -Werror -Wno-unknown-pragmas
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -std=c++11
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -arch arm64
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -qno-opt-dynamic-align
clang: error: unknown argument: '-qno-opt-dynamic-align'
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -Werror -Wno-missing-field-initializers
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o test.out -Werror -Wno-cast-function-type
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[46954]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /private/var/folders/k_/7qh4l0nn72b7qgq15pkd4hw40000gt/T/easy_install-littavqv/agama-1.0/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying rpath
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[46995]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /private/var/folders/k_/7qh4l0nn72b7qgq15pkd4hw40000gt/T/easy_install-littavqv/agama-1.0/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Library/Developer/CommandLineTools/Library/Frameworks/
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[47005]: Library not loaded: @rpath/libomp.dylib
  Referenced from: <C4FDE473-6D87-301B-98F8-3ABBC68A10EA> /private/var/folders/k_/7qh4l0nn72b7qgq15pkd4hw40000gt/T/easy_install-littavqv/agama-1.0/agamatest.exe
  Reason: tried: '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying the last resort solution
    **** Trying the following options for linking against Python library ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC -undefined dynamic_lookup -ldl -framework CoreFoundation
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib test.cpp -o ./agamatest.exe ./agamatest.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
    **** Successfully linked using these options ****
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -fPIC -shared
test.cpp:1:10: fatal error: 'gsl/gsl_version.h' file not found
#include <gsl/gsl_version.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
GSL library (required) is not found
Should we try to download and compile it now? [Y/N] Y
Downloading GSL
Unpacking GSL
Compiling GSL (may take a few minutes)
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o test.out -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include
test.cpp:1:10: fatal error: 'Eigen/Core' file not found
#include <Eigen/Core>
         ^~~~~~~~~~~~
1 error generated.
Eigen library (recommended) is not found
Should we try to download it now (no compilation needed)? [Y/N] Y
Downloading Eigen
Unpacking Eigen
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o test.out -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -Iextras/include /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a
test.cpp:1:10: fatal error: 'cvxopt.h' file not found
#include <cvxopt.h>
         ^~~~~~~~~~
1 error generated.
Downloading CVXOPT header files
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -Iextras/include -DHAVE_CVXOPT -Iextras/include /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a -lglpk -fPIC -shared
test.cpp:1:10: fatal error: 'glpk.h' file not found
#include <glpk.h>
         ^~~~~~~~
1 error generated.
GLPK library (optional) is not found, ignored
c++ -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -Iextras/include -DHAVE_CVXOPT -Iextras/include /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a -lunsio -lnemo -fPIC -shared
test.cpp:1:10: fatal error: 'uns.h' file not found
#include <uns.h>
         ^~~~~~~
1 error generated.
UNSIO library (optional; used for input/output of N-body snapshots) is not found
Should we try to download and compile it now? [Y/N] Y
Downloading UNSIO
Compiling UNSIO
g++: warning: couldn’t understand kern.osversion ‘22.6.0
g++: error: unrecognized command line option ‘-arch’
make: *** [unsio/obj/camr.o] Error 1
Failed compiling UNSIO (check extras/unsio-install.log)

    ==== Compiling the C++ library ====

c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_c.o" "src/interface_c.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_fortran.o" "src/interface_fortran.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_nemo.o" "src/interface_nemo.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/interface_python.o" "src/interface_python.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_core.o" "src/math_core.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_fit.o" "src/math_fit.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_gausshermite.o" "src/math_gausshermite.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_geometry.o" "src/math_geometry.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_linalg.o" "src/math_linalg.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_ode.o" "src/math_ode.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_optimization.o" "src/math_optimization.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_random.o" "src/math_random.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_sample.o" "src/math_sample.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_specfunc.o" "src/math_specfunc.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_sphharm.o" "src/math_sphharm.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/math_spline.o" "src/math_spline.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/particles_io.o" "src/particles_io.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_factory.o" "src/actions_factory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_focal_distance_finder.o" "src/actions_focal_distance_finder.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_isochrone.o" "src/actions_isochrone.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_spherical.o" "src/actions_spherical.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_staeckel.o" "src/actions_staeckel.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/actions_torus.o" "src/actions_torus.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/coord.o" "src/coord.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/cubature.o" "src/cubature.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_base.o" "src/df_base.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_disk.o" "src/df_disk.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_factory.o" "src/df_factory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_halo.o" "src/df_halo.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/df_spherical.o" "src/df_spherical.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_base.o" "src/galaxymodel_base.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_densitygrid.o" "src/galaxymodel_densitygrid.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_fokkerplanck.o" "src/galaxymodel_fokkerplanck.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_jeans.o" "src/galaxymodel_jeans.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_losvd.o" "src/galaxymodel_losvd.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_selfconsistent.o" "src/galaxymodel_selfconsistent.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_spherical.o" "src/galaxymodel_spherical.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/galaxymodel_velocitysampler.o" "src/galaxymodel_velocitysampler.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/orbit.o" "src/orbit.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/orbit_variational.o" "src/orbit_variational.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_analytic.o" "src/potential_analytic.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_base.o" "src/potential_base.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_composite.o" "src/potential_composite.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_cylspline.o" "src/potential_cylspline.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_dehnen.o" "src/potential_dehnen.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_disk.o" "src/potential_disk.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_factory.o" "src/potential_factory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_ferrers.o" "src/potential_ferrers.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_king.o" "src/potential_king.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_multipole.o" "src/potential_multipole.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_perfect_ellipsoid.o" "src/potential_perfect_ellipsoid.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_spheroid.o" "src/potential_spheroid.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/potential_utils.o" "src/potential_utils.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_core.o" "src/raga_core.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_binary.o" "src/raga_binary.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_losscone.o" "src/raga_losscone.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_potential.o" "src/raga_potential.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_relaxation.o" "src/raga_relaxation.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/raga_trajectory.o" "src/raga_trajectory.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/utils.o" "src/utils.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/utils_config.o" "src/utils_config.cpp"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/CHB.o" "src/torus/CHB.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Fit.o" "src/torus/Fit.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Fit2.o" "src/torus/Fit2.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/GeneratingFunction.o" "src/torus/GeneratingFunction.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Orb.o" "src/torus/Orb.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/PJMNum.o" "src/torus/PJMNum.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Point_ClosedOrbitCheby.o" "src/torus/Point_ClosedOrbitCheby.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Point_None.o" "src/torus/Point_None.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Torus.o" "src/torus/Torus.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/Toy_Isochrone.o" "src/torus/Toy_Isochrone.cc"
c++ -c -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -Iextras/include -DHAVE_EIGEN -DHAVE_CVXOPT -MMD -MP -o "obj/WD_Numerics.o" "src/torus/WD_Numerics.cc"
c++ -shared -o agama.so obj/interface_c.o obj/interface_fortran.o obj/interface_nemo.o obj/interface_python.o obj/math_core.o obj/math_fit.o obj/math_gausshermite.o obj/math_geometry.o obj/math_linalg.o obj/math_ode.o obj/math_optimization.o obj/math_random.o obj/math_sample.o obj/math_specfunc.o obj/math_sphharm.o obj/math_spline.o obj/particles_io.o obj/actions_factory.o obj/actions_focal_distance_finder.o obj/actions_isochrone.o obj/actions_spherical.o obj/actions_staeckel.o obj/actions_torus.o obj/coord.o obj/cubature.o obj/df_base.o obj/df_disk.o obj/df_factory.o obj/df_halo.o obj/df_spherical.o obj/galaxymodel_base.o obj/galaxymodel_densitygrid.o obj/galaxymodel_fokkerplanck.o obj/galaxymodel_jeans.o obj/galaxymodel_losvd.o obj/galaxymodel_selfconsistent.o obj/galaxymodel_spherical.o obj/galaxymodel_velocitysampler.o obj/orbit.o obj/orbit_variational.o obj/potential_analytic.o obj/potential_base.o obj/potential_composite.o obj/potential_cylspline.o obj/potential_dehnen.o obj/potential_disk.o obj/potential_factory.o obj/potential_ferrers.o obj/potential_king.o obj/potential_multipole.o obj/potential_perfect_ellipsoid.o obj/potential_spheroid.o obj/potential_utils.o obj/raga_core.o obj/raga_binary.o obj/raga_losscone.o obj/raga_potential.o obj/raga_relaxation.o obj/raga_trajectory.o obj/utils.o obj/utils_config.o obj/CHB.o obj/Fit.o obj/Fit2.o obj/GeneratingFunction.o obj/Orb.o obj/PJMNum.o obj/Point_ClosedOrbitCheby.o obj/Point_None.o obj/Torus.o obj/Toy_Isochrone.o obj/WD_Numerics.o /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -undefined dynamic_lookup -ldl -framework CoreFoundation extras/lib/libgsl.a extras/lib/libgslcblas.a -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Wl,-install_name,@executable_path/agama.so
ld: warning: ignoring file extras/lib/libgsl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file extras/lib/libgslcblas.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
c++ -o "exe/test_math_core.exe" "tests/test_math_core.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_math_linalg.exe" "tests/test_math_linalg.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_math_spline.exe" "tests/test_math_spline.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_coord.exe" "tests/test_coord.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_units.exe" "tests/test_units.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_utils.exe" "tests/test_utils.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_orbit_integr.exe" "tests/test_orbit_integr.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_orbit_variational.exe" "tests/test_orbit_variational.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_potentials.exe" "tests/test_potentials.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_potential_expansions.exe" "tests/test_potential_expansions.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_potential_modifiers.exe" "tests/test_potential_modifiers.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_isochrone.exe" "tests/test_actions_isochrone.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_spherical.exe" "tests/test_actions_spherical.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_staeckel.exe" "tests/test_actions_staeckel.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_actions_torus.exe" "tests/test_actions_torus.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_action_finder.exe" "tests/test_action_finder.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_df_halo.exe" "tests/test_df_halo.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_df_spherical.exe" "tests/test_df_spherical.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_density_grid.exe" "tests/test_density_grid.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_losvd.exe" "tests/test_losvd.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/test_galaxymodel.exe" "tests/test_galaxymodel.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_actions_nbody.exe" "tests/example_actions_nbody.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_df_fit.exe" "tests/example_df_fit.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_doublepowerlaw.exe" "tests/example_doublepowerlaw.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_self_consistent_model.exe" "tests/example_self_consistent_model.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/example_self_consistent_model_mw.exe" "tests/example_self_consistent_model_mw.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/mkspherical.exe" "tests/mkspherical.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/phaseflow.exe" "tests/phaseflow.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
c++ -o "exe/raga.exe" "tests/raga.cpp" -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
gfortran -o "exe/test_fortran.exe" tests/test_fortran.f agama.so -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -Xpreprocessor -fopenmp -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc /Users/adam/mambaforge/envs/py312/lib/libiomp5.dylib -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
f951: Warning: command-line option ‘-Wno-missing-field-initializers’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
f951: Warning: command-line option ‘-Wno-cast-function-type’ is valid for C/C++/ObjC/ObjC++ but not for Fortran
f951: Warning: command-line option ‘-std=c++11’ is valid for C++/ObjC++ but not for Fortran
warning: install_lib: byte-compiling is disabled, skipping.

No eggs found in /var/folders/k_/7qh4l0nn72b7qgq15pkd4hw40000gt/T/easy_install-littavqv/agama-1.0/egg-dist-tmp-d3pell_6 (setup script problem?)
error: The 'agama==1.0' distribution was not found and is required by the application

I noted these lines:

ld: warning: ignoring file extras/lib/libgsl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file extras/lib/libgslcblas.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

but I'm not sure how they ended up that way.

eugvas commented 1 month ago

yes, indeed, it seems that GSL ended up compiled for the wrong architecture! you may double-check this by running lipo -info extras/lib/libgsl.a and most likely the answer will be x86_64. Why did this happen? It seems that GSL and UNSIO might be using a different compiler than the agama library itself, the hint is here: Compiling UNSIO g++: warning: couldn’t understand kern.osversion ‘22.6.0 g++: error: unrecognized command line option ‘-arch’ whereas the rest of the log file shows c++ as the compiler, here it comes out as g++. In a vanilla MacOS with Xcode command-line tools, these are synonymous and both point to clang, but it is certainly possible to make them different – check by running gcc -v, g++ -v, c++ -v, etc. Did you install gcc/g++ separately, and/or manually set the CXX environment variable? PS: I noticed that the setup script already inserts the explicit path to extras/lib/libgsl.a into Makefile.local, seems that I already implemented this some time ago in response to a botched installation attempt elsewhere.. And another snag that I've seen several times is that the whole compilation runs twice, this is likely an artifact of setup.py being gradually deprecated... The recommended replacement command pip install . seems to be doing largely the same thing, though hiding most of the output, so it's not obvious if it also does the same thing twice.

keflavich commented 1 month ago

Below is a play-by-play. TL;DR: I'm pretty sure I got gsl linking, but the final agama build step didn't work.


I wasn't able to get gsl to build with arm64; it seems that the gsl build is ignoring flags.

I downloaded and built gsl myself successfully:

$ lipo -info .libs/libgsl.a
Architectures in the fat file: .libs/libgsl.a are: x86_64 arm64

but unfortunately, the default install path isn't the same as my conda path, so it isn't included by default.

I tried installing gsl in my conda environment (using conda), and that also didn't work - the Agama installer still tries to download and compile gsl.

$ lipo -info /Users/adam/mambaforge/envs/py312/lib/libgsl.a
Non-fat file: /Users/adam/mambaforge/envs/py312/lib/libgsl.a is architecture: arm64

In the section between openmp and gsl, I was getting these messages:

clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include test.cpp -o test.out -std=c++11
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 test.cpp -o test.out -arch arm64
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 test.cpp -o test.out -qno-opt-dynamic-align
clang: error: unknown argument: '-qno-opt-dynamic-align'
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 test.cpp -o test.out -Werror -Wno-missing-field-initializers
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers test.cpp -o test.out -Werror -Wno-cast-function-type
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[51091]: Library not loaded: @rpath/libpython3.12.dylib
  Referenced from: <5A44B314-C9EF-344C-BC93-1028DF707EBA> /Users/adam/repos/Agama/agamatest.so
  Reason: tried: '/usr/local/lib/libpython3.12.dylib' (no such file), '/usr/lib/libpython3.12.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying rpath
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: sys.prefix=/Users/adam/mambaforge/envs/py312
From py:   (crashed with error -11)
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Library/Developer/CommandLineTools/Library/Frameworks/
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: dyld[51238]: Library not loaded: @rpath/libpython3.12.dylib
  Referenced from: <B155F965-4CE3-3BD5-A851-C72B0BD1C398> /Users/adam/repos/Agama/agamatest.so
  Reason: tried: '/Library/Developer/CommandLineTools/Library/Frameworks/libpython3.12.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Developer/CommandLineTools/Library/Frameworks/libpython3.12.dylib' (no such file), '/usr/local/lib/libpython3.12.dylib' (no such file), '/usr/lib/libpython3.12.dylib' (no such file, not in dyld cache)
From py:   (crashed with error -11)
Trying the last resort solution
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC -undefined dynamic_lookup -ldl -framework CoreFoundation
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
    **** Successfully linked using these options ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -fPIC -shared
ld: library not found for -lgsl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Downloading GSL
Unpacking GSL
Compiling GSL (may take a few minutes)

which suggest to me that the library paths aren't properly specified (libpython3.12.dylib exists in /Users/adam/mambaforge/envs/py312/lib, so it should've been picked up). I tried specifying

export DYLD_LIBRARY_PATH=/Users/adam/mambaforge/envs/py312/lib
export LD_LIBRARY_PATH=/Users/adam/mambaforge/envs/py312/lib

and that got to essentially the same state, i.e., no gsl found:

clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include test.cpp -o test.out -std=c++11
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 test.cpp -o test.out -arch arm64
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 test.cpp -o test.out -qno-opt-dynamic-align
clang: error: unknown argument: '-qno-opt-dynamic-align'
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 test.cpp -o test.out -Werror -Wno-missing-field-initializers
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers test.cpp -o test.out -Werror -Wno-cast-function-type
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: sys.prefix=/Users/adam/mambaforge/envs/py312
From py:   (crashed with error -11)
Trying rpath
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: sys.prefix=/Users/adam/mambaforge/envs/py312
From py:   (crashed with error -11)
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib -ldl -framework CoreFoundation -Wl,-rpath,/Library/Developer/CommandLineTools/Library/Frameworks/
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so
Test program doesn't seem to use the same version of Python, or the library path is reported incorrectly:
Expected: sys.prefix=/Users/adam/mambaforge/envs/py312
Received: sys.prefix=/Users/adam/mambaforge/envs/py312
From py:   (crashed with error -11)
Trying the last resort solution
    **** Trying the following options for linking against Python library ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.so -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -shared -fPIC -undefined dynamic_lookup -ldl -framework CoreFoundation
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type test.cpp -o ./agamatest.exe ./agamatest.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
    **** Successfully linked using these options ****
clang -arch arm64 -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -fPIC -shared
ld: library not found for -lgsl
clang: error: linker command failed with exit code 1 (use -v to see invocation)

so I then tried:

export CFLAGS="-arch arm64 -L/Users/adam/mambaforge/envs/py312/lib"
export CCFLAGS="-arch arm64 -L/Users/adam/mambaforge/envs/py312/lib"

and that at least got me past gsl. I got a lot of warnings later on like this:

clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]

Evidently my workaround attempts failed; in the end I got:

clang -shared -o agama.so obj/interface_c.o obj/interface_fortran.o obj/interface_nemo.o obj/interface_python.o obj/math_core.o obj/math_fit.o obj/math_gausshermite.o obj/math_geometry.o obj/math_linalg.o obj/math_ode.o obj/math_optimization.o obj/math_random.o obj/math_sample.o obj/math_specfunc.o obj/math_sphharm.o obj/math_spline.o obj/particles_io.o obj/actions_factory.o obj/actions_focal_distance_finder.o obj/actions_isochrone.o obj/actions_spherical.o obj/actions_staeckel.o obj/actions_torus.o obj/coord.o obj/cubature.o obj/df_base.o obj/df_disk.o obj/df_factory.o obj/df_halo.o obj/df_spherical.o obj/galaxymodel_base.o obj/galaxymodel_densitygrid.o obj/galaxymodel_fokkerplanck.o obj/galaxymodel_jeans.o obj/galaxymodel_losvd.o obj/galaxymodel_selfconsistent.o obj/galaxymodel_spherical.o obj/galaxymodel_velocitysampler.o obj/orbit.o obj/orbit_variational.o obj/potential_analytic.o obj/potential_base.o obj/potential_composite.o obj/potential_cylspline.o obj/potential_dehnen.o obj/potential_disk.o obj/potential_factory.o obj/potential_ferrers.o obj/potential_king.o obj/potential_multipole.o obj/potential_perfect_ellipsoid.o obj/potential_spheroid.o obj/potential_utils.o obj/raga_core.o obj/raga_binary.o obj/raga_losscone.o obj/raga_potential.o obj/raga_relaxation.o obj/raga_trajectory.o obj/utils.o obj/utils_config.o obj/CHB.o obj/Fit.o obj/Fit2.o obj/GeneratingFunction.o obj/Orb.o obj/PJMNum.o obj/Point_ClosedOrbitCheby.o obj/Point_None.o obj/Torus.o obj/Toy_Isochrone.o obj/WD_Numerics.o -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Wl,-install_name,@executable_path/agama.so
clang -o "exe/test_math_core.exe" "tests/test_math_core.cpp" -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
Undefined symbols for architecture arm64:
  "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::ios_base::getloc() const", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::basic_filebuf<char, std::__1::char_traits<char>>::open(char const*, unsigned int)", referenced from:
      _main in test_math_core-9af6bc.o
  "std::__1::basic_filebuf<char, std::__1::char_traits<char>>::basic_filebuf()", referenced from:
      _main in test_math_core-9af6bc.o
  "std::__1::basic_filebuf<char, std::__1::char_traits<char>>::~basic_filebuf()", referenced from:
      _main in test_math_core-9af6bc.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::sentry::~sentry()", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::~basic_ostream()", referenced from:
      _main in test_math_core-9af6bc.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::operator<<(double)", referenced from:
      testIntegration(Integrand const&, double, double, double, double, double, double, double) in test_math_core-9af6bc.o
      testSolvePoly() in test_math_core-9af6bc.o
      _main in test_math_core-9af6bc.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::operator<<(int)", referenced from:
      testIntegration(Integrand const&, double, double, double, double, double, double, double) in test_math_core-9af6bc.o
      _main in test_math_core-9af6bc.o
  "std::__1::cout", referenced from:
      err() in test_math_core-9af6bc.o
      testIntegration(Integrand const&, double, double, double, double, double, double, double) in test_math_core-9af6bc.o
      testSolvePoly() in test_math_core-9af6bc.o
      _main in test_math_core-9af6bc.o
      bool testScaling<math::ScalingSemiInf>(math::ScalingSemiInf const&) in test_math_core-9af6bc.o
      bool testScaling<math::ScalingDoubleInf>(math::ScalingDoubleInf const&) in test_math_core-9af6bc.o
      bool testScaling<math::ScalingInf>(math::ScalingInf const&) in test_math_core-9af6bc.o
      ...
  "std::__1::ctype<char>::id", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::locale::~locale()", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::ios_base::init(void*)", referenced from:
      _main in test_math_core-9af6bc.o
  "std::__1::ios_base::clear(unsigned int)", referenced from:
      _main in test_math_core-9af6bc.o
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "std::__1::basic_ios<char, std::__1::char_traits<char>>::~basic_ios()", referenced from:
      _main in test_math_core-9af6bc.o
  "std::terminate()", referenced from:
      ___clang_call_terminate in test_math_core-9af6bc.o
  "VTT for std::__1::basic_ofstream<char, std::__1::char_traits<char>>", referenced from:
      _main in test_math_core-9af6bc.o
  "vtable for __cxxabiv1::__class_type_info", referenced from:
      typeinfo for math::IFunction in test_math_core-9af6bc.o
      typeinfo for math::IFunctionNdim in test_math_core-9af6bc.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for __cxxabiv1::__si_class_type_info", referenced from:
      typeinfo for math::IFunctionNoDeriv in test_math_core-9af6bc.o
      typeinfo for TestInt1 in test_math_core-9af6bc.o
      typeinfo for TestInt2 in test_math_core-9af6bc.o
      typeinfo for TestInt3 in test_math_core-9af6bc.o
      typeinfo for TestInt4 in test_math_core-9af6bc.o
      typeinfo for TestInt5 in test_math_core-9af6bc.o
      typeinfo for test3 in test_math_core-9af6bc.o
      ...
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for __cxxabiv1::__vmi_class_type_info", referenced from:
      typeinfo for Integrand in test_math_core-9af6bc.o
      typeinfo for test4 in test_math_core-9af6bc.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::__1::basic_ofstream<char, std::__1::char_traits<char>>", referenced from:
      _main in test_math_core-9af6bc.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "operator delete(void*)", referenced from:
      _main in test_math_core-9af6bc.o
      TestInt1::~TestInt1() in test_math_core-9af6bc.o
      non-virtual thunk to TestInt1::~TestInt1() in test_math_core-9af6bc.o
      TestInt2::~TestInt2() in test_math_core-9af6bc.o
      non-virtual thunk to TestInt2::~TestInt2() in test_math_core-9af6bc.o
      TestInt3::~TestInt3() in test_math_core-9af6bc.o
      non-virtual thunk to TestInt3::~TestInt3() in test_math_core-9af6bc.o
      ...
  "operator new(unsigned long)", referenced from:
      test9min::evalDeriv(double const*, double*, double*) const in test_math_core-9af6bc.o
      std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>> std::__1::__pad_and_output<char, std::__1::char_traits<char>>(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, char const*, char const*, char const*, std::__1::ios_base&, char) in test_math_core-9af6bc.o
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in test_math_core-9af6bc.o
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "___cxa_end_catch", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
  "___gxx_personality_v0", referenced from:
      _main in test_math_core-9af6bc.o
      test9min::evalDeriv(double const*, double*, double*) const in test_math_core-9af6bc.o
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-9af6bc.o
      std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>> std::__1::__pad_and_output<char, std::__1::char_traits<char>>(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, char const*, char const*, char const*, std::__1::ios_base&, char) in test_math_core-9af6bc.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [exe/test_math_core.exe] Error 1
error: Compilation failed

this last message looks more like I'm missing basic libraries.

Another clue is that unsio built fine (no errors in the log message), but setup.py reported:

clang -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o test.out -Iextras/include extras/lib/libunsio.a extras/lib/libnemo.a
Undefined symbols for architecture arm64:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::~basic_string()", referenced from:
      __GLOBAL__sub_I_test.cpp in test-20f9be.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Failed to link against the just compiled UNSIO library

I reset everything and tried once more and got the same error. Here's a more complete traceback:

test.cpp:1:10: fatal error: 'glpk.h' file not found
#include <glpk.h>
         ^~~~~~~~
1 error generated.
GLPK library (optional) is not found, ignored
clang -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.so -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -Lextras/lib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -lunsio -lnemo -fPIC -shared
clang -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib test.cpp -o ./agamatest.exe ./agamatest.so

    ==== Compiling the C++ library ====

clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/interface_c.o" "src/interface_c.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/interface_fortran.o" "src/interface_fortran.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/interface_nemo.o" "src/interface_nemo.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/interface_python.o" "src/interface_python.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_core.o" "src/math_core.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_fit.o" "src/math_fit.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_gausshermite.o" "src/math_gausshermite.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_geometry.o" "src/math_geometry.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_linalg.o" "src/math_linalg.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_ode.o" "src/math_ode.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_optimization.o" "src/math_optimization.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_random.o" "src/math_random.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_sample.o" "src/math_sample.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_specfunc.o" "src/math_specfunc.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_sphharm.o" "src/math_sphharm.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/math_spline.o" "src/math_spline.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/particles_io.o" "src/particles_io.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/actions_factory.o" "src/actions_factory.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/actions_focal_distance_finder.o" "src/actions_focal_distance_finder.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/actions_isochrone.o" "src/actions_isochrone.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/actions_spherical.o" "src/actions_spherical.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/actions_staeckel.o" "src/actions_staeckel.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/actions_torus.o" "src/actions_torus.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/coord.o" "src/coord.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/cubature.o" "src/cubature.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/df_base.o" "src/df_base.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/df_disk.o" "src/df_disk.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/df_factory.o" "src/df_factory.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/df_halo.o" "src/df_halo.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/df_spherical.o" "src/df_spherical.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_base.o" "src/galaxymodel_base.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_densitygrid.o" "src/galaxymodel_densitygrid.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_fokkerplanck.o" "src/galaxymodel_fokkerplanck.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_jeans.o" "src/galaxymodel_jeans.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_losvd.o" "src/galaxymodel_losvd.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_selfconsistent.o" "src/galaxymodel_selfconsistent.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_spherical.o" "src/galaxymodel_spherical.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/galaxymodel_velocitysampler.o" "src/galaxymodel_velocitysampler.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/orbit.o" "src/orbit.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/orbit_variational.o" "src/orbit_variational.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_analytic.o" "src/potential_analytic.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_base.o" "src/potential_base.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_composite.o" "src/potential_composite.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_cylspline.o" "src/potential_cylspline.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_dehnen.o" "src/potential_dehnen.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_disk.o" "src/potential_disk.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_factory.o" "src/potential_factory.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_ferrers.o" "src/potential_ferrers.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_king.o" "src/potential_king.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_multipole.o" "src/potential_multipole.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_perfect_ellipsoid.o" "src/potential_perfect_ellipsoid.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_spheroid.o" "src/potential_spheroid.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/potential_utils.o" "src/potential_utils.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/raga_core.o" "src/raga_core.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/raga_binary.o" "src/raga_binary.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/raga_losscone.o" "src/raga_losscone.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/raga_potential.o" "src/raga_potential.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/raga_relaxation.o" "src/raga_relaxation.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/raga_trajectory.o" "src/raga_trajectory.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/utils.o" "src/utils.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/utils_config.o" "src/utils_config.cpp"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/CHB.o" "src/torus/CHB.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Fit.o" "src/torus/Fit.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Fit2.o" "src/torus/Fit2.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/GeneratingFunction.o" "src/torus/GeneratingFunction.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Orb.o" "src/torus/Orb.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/PJMNum.o" "src/torus/PJMNum.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Point_ClosedOrbitCheby.o" "src/torus/Point_ClosedOrbitCheby.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Point_None.o" "src/torus/Point_None.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Torus.o" "src/torus/Torus.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/Toy_Isochrone.o" "src/torus/Toy_Isochrone.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -c -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Iextras/include -DHAVE_PYTHON -I"/Users/adam/mambaforge/envs/py312/include/python3.12" -I"/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/numpy/_core/include" -DHAVE_EIGEN -DHAVE_CVXOPT -DHAVE_UNSIO -MMD -MP -o "obj/WD_Numerics.o" "src/torus/WD_Numerics.cc"
clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]
clang -shared -o agama.so obj/interface_c.o obj/interface_fortran.o obj/interface_nemo.o obj/interface_python.o obj/math_core.o obj/math_fit.o obj/math_gausshermite.o obj/math_geometry.o obj/math_linalg.o obj/math_ode.o obj/math_optimization.o obj/math_random.o obj/math_sample.o obj/math_specfunc.o obj/math_sphharm.o obj/math_spline.o obj/particles_io.o obj/actions_factory.o obj/actions_focal_distance_finder.o obj/actions_isochrone.o obj/actions_spherical.o obj/actions_staeckel.o obj/actions_torus.o obj/coord.o obj/cubature.o obj/df_base.o obj/df_disk.o obj/df_factory.o obj/df_halo.o obj/df_spherical.o obj/galaxymodel_base.o obj/galaxymodel_densitygrid.o obj/galaxymodel_fokkerplanck.o obj/galaxymodel_jeans.o obj/galaxymodel_losvd.o obj/galaxymodel_selfconsistent.o obj/galaxymodel_spherical.o obj/galaxymodel_velocitysampler.o obj/orbit.o obj/orbit_variational.o obj/potential_analytic.o obj/potential_base.o obj/potential_composite.o obj/potential_cylspline.o obj/potential_dehnen.o obj/potential_disk.o obj/potential_factory.o obj/potential_ferrers.o obj/potential_king.o obj/potential_multipole.o obj/potential_perfect_ellipsoid.o obj/potential_spheroid.o obj/potential_utils.o obj/raga_core.o obj/raga_binary.o obj/raga_losscone.o obj/raga_potential.o obj/raga_relaxation.o obj/raga_trajectory.o obj/utils.o obj/utils_config.o obj/CHB.o obj/Fit.o obj/Fit2.o obj/GeneratingFunction.o obj/Orb.o obj/PJMNum.o obj/Point_ClosedOrbitCheby.o obj/Point_None.o obj/Torus.o obj/Toy_Isochrone.o obj/WD_Numerics.o -Lextras/lib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -lunsio -lnemo -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Wl,-install_name,@executable_path/agama.so
ld: warning: ignoring file extras/lib/libgsl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file extras/lib/libgslcblas.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
clang -o "exe/test_math_core.exe" "tests/test_math_core.cpp" -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc agama.so -Wl,-rpath,/Users/adam/mambaforge/envs/py312/lib /Users/adam/mambaforge/envs/py312/lib/libpython3.12.dylib
Undefined symbols for architecture arm64:
  "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::ios_base::getloc() const", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::basic_filebuf<char, std::__1::char_traits<char>>::open(char const*, unsigned int)", referenced from:
      _main in test_math_core-178ce2.o
  "std::__1::basic_filebuf<char, std::__1::char_traits<char>>::basic_filebuf()", referenced from:
      _main in test_math_core-178ce2.o
  "std::__1::basic_filebuf<char, std::__1::char_traits<char>>::~basic_filebuf()", referenced from:
      _main in test_math_core-178ce2.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::sentry::~sentry()", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::~basic_ostream()", referenced from:
      _main in test_math_core-178ce2.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::operator<<(double)", referenced from:
      testIntegration(Integrand const&, double, double, double, double, double, double, double) in test_math_core-178ce2.o
      testSolvePoly() in test_math_core-178ce2.o
      _main in test_math_core-178ce2.o
  "std::__1::basic_ostream<char, std::__1::char_traits<char>>::operator<<(int)", referenced from:
      testIntegration(Integrand const&, double, double, double, double, double, double, double) in test_math_core-178ce2.o
      _main in test_math_core-178ce2.o
  "std::__1::cout", referenced from:
      err() in test_math_core-178ce2.o
      testIntegration(Integrand const&, double, double, double, double, double, double, double) in test_math_core-178ce2.o
      testSolvePoly() in test_math_core-178ce2.o
      _main in test_math_core-178ce2.o
      bool testScaling<math::ScalingSemiInf>(math::ScalingSemiInf const&) in test_math_core-178ce2.o
      bool testScaling<math::ScalingDoubleInf>(math::ScalingDoubleInf const&) in test_math_core-178ce2.o
      bool testScaling<math::ScalingInf>(math::ScalingInf const&) in test_math_core-178ce2.o
      ...
  "std::__1::ctype<char>::id", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::locale::~locale()", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::ios_base::init(void*)", referenced from:
      _main in test_math_core-178ce2.o
  "std::__1::ios_base::clear(unsigned int)", referenced from:
      _main in test_math_core-178ce2.o
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "std::__1::basic_ios<char, std::__1::char_traits<char>>::~basic_ios()", referenced from:
      _main in test_math_core-178ce2.o
  "std::terminate()", referenced from:
      ___clang_call_terminate in test_math_core-178ce2.o
  "VTT for std::__1::basic_ofstream<char, std::__1::char_traits<char>>", referenced from:
      _main in test_math_core-178ce2.o
  "vtable for __cxxabiv1::__class_type_info", referenced from:
      typeinfo for math::IFunction in test_math_core-178ce2.o
      typeinfo for math::IFunctionNdim in test_math_core-178ce2.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for __cxxabiv1::__si_class_type_info", referenced from:
      typeinfo for math::IFunctionNoDeriv in test_math_core-178ce2.o
      typeinfo for TestInt1 in test_math_core-178ce2.o
      typeinfo for TestInt2 in test_math_core-178ce2.o
      typeinfo for TestInt3 in test_math_core-178ce2.o
      typeinfo for TestInt4 in test_math_core-178ce2.o
      typeinfo for TestInt5 in test_math_core-178ce2.o
      typeinfo for test3 in test_math_core-178ce2.o
      ...
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for __cxxabiv1::__vmi_class_type_info", referenced from:
      typeinfo for Integrand in test_math_core-178ce2.o
      typeinfo for test4 in test_math_core-178ce2.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::__1::basic_ofstream<char, std::__1::char_traits<char>>", referenced from:
      _main in test_math_core-178ce2.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "operator delete(void*)", referenced from:
      _main in test_math_core-178ce2.o
      TestInt1::~TestInt1() in test_math_core-178ce2.o
      non-virtual thunk to TestInt1::~TestInt1() in test_math_core-178ce2.o
      TestInt2::~TestInt2() in test_math_core-178ce2.o
      non-virtual thunk to TestInt2::~TestInt2() in test_math_core-178ce2.o
      TestInt3::~TestInt3() in test_math_core-178ce2.o
      non-virtual thunk to TestInt3::~TestInt3() in test_math_core-178ce2.o
      ...
  "operator new(unsigned long)", referenced from:
      test9min::evalDeriv(double const*, double*, double*) const in test_math_core-178ce2.o
      std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>> std::__1::__pad_and_output<char, std::__1::char_traits<char>>(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, char const*, char const*, char const*, std::__1::ios_base&, char) in test_math_core-178ce2.o
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in test_math_core-178ce2.o
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "___cxa_end_catch", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
  "___gxx_personality_v0", referenced from:
      _main in test_math_core-178ce2.o
      test9min::evalDeriv(double const*, double*, double*) const in test_math_core-178ce2.o
      std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::__put_character_sequence<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, char const*, unsigned long) in test_math_core-178ce2.o
      std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>> std::__1::__pad_and_output<char, std::__1::char_traits<char>>(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char>>, char const*, char const*, char const*, std::__1::ios_base&, char) in test_math_core-178ce2.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [exe/test_math_core.exe] Error 1
error: Compilation failed

Thanks again for helping with this. I hope it's actually useful to someone besides me.

eugvas commented 1 month ago

thanks for a very detailed report! this last message looks more like I'm missing basic libraries I've seen something like this in two cases: 1) when the C++ code compiled in the C++11 mode is linked to a C++ library compiled without it (or may be vice versa, dont' remember) 2) when the linker for some reason is invoked in the pure-C mode, not C++. For instance, this happens when using gcc for linking instead of g++ (even though they are the same executable, I think it looks at the file name to decide). I don't remember if I've seen this with clang, but just in case, can you try specifying it explicitly as CXX=clang++ in Makefile.local and then running make (without going through the setup script again)? If UNSIO is misbehaving you may disable it without much regret (it is only useful if you need to read/write NEMO or GADGET snapshot files, but this can also be accomplished e.g. with pynbody, etc).

keflavich commented 1 month ago

I changed CXX=clang++ in Makefile.local and re-maked.

Mostly, things went fine. This excerpt is still a problem:

clang++ -shared -o agama.so obj/interface_c.o obj/interface_fortran.o obj/interface_nemo.o obj/interface_python.o obj/math_core.o obj/math_fit.o obj/math_gausshermite.o obj/math_geometry.o obj/math_linalg.o obj/math_ode.o obj/math_optimization.o obj/math_random.o obj/math_sample.o obj/math_specfunc.o obj/math_sphharm.o obj/math_spline.o obj/particles_io.o obj/actions_factory.o obj/actions_focal_distance_finder.o obj/actions_isochrone.o obj/actions_spherical.o obj/actions_staeckel.o obj/actions_torus.o obj/coord.o obj/cubature.o obj/df_base.o obj/df_disk.o obj/df_factory.o obj/df_halo.o obj/df_spherical.o obj/galaxymodel_base.o obj/galaxymodel_densitygrid.o obj/galaxymodel_fokkerplanck.o obj/galaxymodel_jeans.o obj/galaxymodel_losvd.o obj/galaxymodel_selfconsistent.o obj/galaxymodel_spherical.o obj/galaxymodel_velocitysampler.o obj/orbit.o obj/orbit_variational.o obj/potential_analytic.o obj/potential_base.o obj/potential_composite.o obj/potential_cylspline.o obj/potential_dehnen.o obj/potential_disk.o obj/potential_factory.o obj/potential_ferrers.o obj/potential_king.o obj/potential_multipole.o obj/potential_perfect_ellipsoid.o obj/potential_spheroid.o obj/potential_utils.o obj/raga_core.o obj/raga_binary.o obj/raga_losscone.o obj/raga_potential.o obj/raga_relaxation.o obj/raga_trajectory.o obj/utils.o obj/utils_config.o obj/CHB.o obj/Fit.o obj/Fit2.o obj/GeneratingFunction.o obj/Orb.o obj/PJMNum.o obj/Point_ClosedOrbitCheby.o obj/Point_None.o obj/Torus.o obj/Toy_Isochrone.o obj/WD_Numerics.o -Lextras/lib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -lunsio -lnemo -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Wl,-install_name,@executable_path/agama.so
ld: warning: ignoring file extras/lib/libgsl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file extras/lib/libgslcblas.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

The resulting import is still failing:

$ python -c "import agama"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/agama/__init__.py", line 1, in <module>
    from .agama import *               # import everything from the C++ library
    ^^^^^^^^^^^^^^^^^^^^
ImportError: dlopen(/Users/adam/mambaforge/envs/py312/lib/python3.12/site-packages/agama/agama.so, 0x0002): symbol not found in flat namespace '_gsl_blas_ddot'

I tried adding -L/Users/adam/mambaforge/envs/py312/lib at the front of LINK_FLAGS in the makefile. Re-making at that point resulted in a successful import! Next step is to test where Agama actually works by running some examples.

I don't think adding -L/Users/adam/mambaforge/envs/py312/lib is the right solution exactly, though, because it produces a lot of

clang: warning: argument unused during compilation: '-L/Users/adam/mambaforge/envs/py312/lib' [-Wunused-command-line-argument]

warnings. That added path needs to be only in this command.

clang++ -shared -o agama.so obj/interface_c.o obj/interface_fortran.o obj/interface_nemo.o obj/interface_python.o obj/math_core.o obj/math_fit.o obj/math_gausshermite.o obj/math_geometry.o obj/math_linalg.o obj/math_ode.o obj/math_optimization.o obj/math_random.o obj/math_sample.o obj/math_specfunc.o obj/math_sphharm.o obj/math_spline.o obj/particles_io.o obj/actions_factory.o obj/actions_focal_distance_finder.o obj/actions_isochrone.o obj/actions_spherical.o obj/actions_staeckel.o obj/actions_torus.o obj/coord.o obj/cubature.o obj/df_base.o obj/df_disk.o obj/df_factory.o obj/df_halo.o obj/df_spherical.o obj/galaxymodel_base.o obj/galaxymodel_densitygrid.o obj/galaxymodel_fokkerplanck.o obj/galaxymodel_jeans.o obj/galaxymodel_losvd.o obj/galaxymodel_selfconsistent.o obj/galaxymodel_spherical.o obj/galaxymodel_velocitysampler.o obj/orbit.o obj/orbit_variational.o obj/potential_analytic.o obj/potential_base.o obj/potential_composite.o obj/potential_cylspline.o obj/potential_dehnen.o obj/potential_disk.o obj/potential_factory.o obj/potential_ferrers.o obj/potential_king.o obj/potential_multipole.o obj/potential_perfect_ellipsoid.o obj/potential_spheroid.o obj/potential_utils.o obj/raga_core.o obj/raga_binary.o obj/raga_losscone.o obj/raga_potential.o obj/raga_relaxation.o obj/raga_trajectory.o obj/utils.o obj/utils_config.o obj/CHB.o obj/Fit.o obj/Fit2.o obj/GeneratingFunction.o obj/Orb.o obj/PJMNum.o obj/Point_ClosedOrbitCheby.o obj/Point_None.o obj/Torus.o obj/Toy_Isochrone.o obj/WD_Numerics.o -L/Users/adam/mambaforge/envs/py312/lib -Lextras/lib -undefined dynamic_lookup -ldl -framework CoreFoundation -lgsl -lgslcblas -lunsio -lnemo -arch arm64 -L/Users/adam/mambaforge/envs/py312/lib -fPIC -Wall -O2 -I/Users/adam/mambaforge/envs/py312/include -std=c++11 -arch arm64 -Wno-missing-field-initializers -Wno-cast-function-type -Isrc -Wl,-install_name,@executable_path/agama.so
eugvas commented 1 month ago

oh well, what a journey! hope it was worth it at the end... it seems that something still goes wrong in the compilation of GSL "in-house" by the setup script, but since you finally made it use the one provided in Anaconda, it worked out. Don't worry about the warning about unused -L/.../lib flag – it is indeed unused in compilation, only in linking, that's it. One may put this into LDFLAGS (which get absorbed into LINK_FLAGS in Makefile.local) instead of CXXFLAGS and it will be gone.