Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGAL explicitly requested and not found or not functional #193

Open
MycrofD opened this issue Apr 12, 2023 · 22 comments · May be fixed by #319 or #317
Open

CGAL explicitly requested and not found or not functional #193

MycrofD opened this issue Apr 12, 2023 · 22 comments · May be fixed by #319 or #317

Comments

@MycrofD
Copy link

MycrofD commented Apr 12, 2023

Trying to pip install fastjet on Mac M2, but getting errors like CGAL not found.

      checking CGAL_MAKEFILE... not specified
      checking whether C++ compiler accepts -frounding-math -Werror... no
      checking whether C++ compiler accepts -fp-model strict -Werror... no
      checking CGAL in /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-ksirtcyh/fastjet_17e125686bd34276b7e8111b11946b01/CGAL-5.5.1... lib
      checking for gmp.h... no
      checking for main in -lgmp... no
      configure: error: CGAL explicitly requested and not found or not functional
      This file contains any messages produced by compilers while
      running configure, to aid debugging if configure makes a mistake.

      It was created by FastJet configure 3.4.0, which was
      generated by GNU Autoconf 2.71.  Invocation command line was

Steps taken:

  1. brew install cgal. This installs CGAL 5.5.2.
  2. But fastjet/setup.py:CGAL_ZIP made me think I might need CGAL 5.5.1. So, I tried installing that.
  3. Also tried pip install --upgrade pip wheel
  4. Pyjet seems to install fine without any issue even if it requires brew install cgal gmp wget.

But so far nothing helped. Any ideas?

@chrispap95
Copy link
Collaborator

Unfortunately, we don't have binaries for Apple silicon yet which means that fastjet has to be compiled by pip locally. pyjet doesn't compile the C++ FastJet library so it doesn't suffer from these failure cases. I don't have an M1 or M2 machine so I can't offer a lot of help but I believe some of the other devs have machines with Apple silicon so I think it is possible to install fastjet on them. The CGAL that is used here is within the container that pip is creating and, therefore, has nothing to do with what you have in your system. Is this the full error message? In theory, it should have a more detailed printout below. Can you post all of it?

@MycrofD
Copy link
Author

MycrofD commented Apr 12, 2023

The error message is more than 1300 lines. Here it is.

Error log:
✦ ❯ pip install fastjet
Collecting fastjet
  Using cached fastjet-3.4.0.5.tar.gz (4.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.13.3 in ./.direnv/python-3.10.6/lib/python3.10/site-packages (from fastjet) (1.24.2)
Collecting awkward>=2
  Using cached awkward-2.1.2-py3-none-any.whl (596 kB)
Collecting vector
  Using cached vector-1.0.0-py3-none-any.whl (170 kB)
Collecting typing-extensions>=4.1.0
  Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting awkward-cpp==13
  Using cached awkward_cpp-13-cp310-cp310-macosx_10_9_universal2.whl (1.8 MB)
Collecting packaging
  Using cached packaging-23.0-py3-none-any.whl (42 kB)
Building wheels for collected packages: fastjet
  Building wheel for fastjet (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for fastjet (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1333 lines of output]
      /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-12.6-arm64-cpython-310
      creating build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/version.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/_singleevent.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/__init__.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/_pyjet.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/_multievent.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/_generalevent.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      copying src/fastjet/_utils.py -> build/lib.macosx-12.6-arm64-cpython-310/fastjet
      running egg_info
      writing src/fastjet.egg-info/PKG-INFO
      writing dependency_links to src/fastjet.egg-info/dependency_links.txt
      writing requirements to src/fastjet.egg-info/requires.txt
      writing top-level names to src/fastjet.egg-info/top_level.txt
      listing git files failed - pretending there aren't any
      reading manifest file 'src/fastjet.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '.git' found anywhere in distribution
      warning: no previously-included files matching '.gitmodules' found anywhere in distribution
      warning: no previously-included files found matching '.cirrus.yml'
      adding license file 'LICENSE'
      writing manifest file 'src/fastjet.egg-info/SOURCES.txt'
      running build_ext
      patching file pyinterface/fastjet.i
      patching file src/ClusterSequence.cc
      Hunk #1 succeeded at 1017 with fuzz 1.
      ./autogen.sh: line 34: [: too many arguments
      processing .
      Running libtoolize...
      glibtoolize: putting auxiliary files in '.'.
      glibtoolize: copying file './ltmain.sh'
      glibtoolize: putting macros in 'm4'.
      glibtoolize: copying file 'm4/libtool.m4'
      glibtoolize: copying file 'm4/ltoptions.m4'
      glibtoolize: copying file 'm4/ltsugar.m4'
      glibtoolize: copying file 'm4/ltversion.m4'
      glibtoolize: copying file 'm4/lt~obsolete.m4'
      glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
      glibtoolize: and rerunning glibtoolize and aclocal.
      Running aclocal  -I m4 ...
      Running automake --gnu  ...
      configure.ac:50: installing './compile'
      configure.ac:491: installing './config.guess'
      configure.ac:491: installing './config.sub'
      configure.ac:3: installing './install-sh'
      configure.ac:3: installing './missing'
      parallel-tests: installing './test-driver'
      example/Makefile.am: installing './depcomp'
      pyinterface/Makefile.am:82: warning: eval AM_LIBTOOLFLAGS = "--silent": non-POSIX variable name
      pyinterface/Makefile.am:82: (probably a GNU make extension)
      pyinterface/Makefile.am:87: warning: eval AM_LIBTOOLFLAGS = "": non-POSIX variable name
      pyinterface/Makefile.am:87: (probably a GNU make extension)
      pyinterface/Makefile.am:67: installing './py-compile'
      Running autoconf ...
      configure.ac:88: warning: The macro `AC_STDC_HEADERS' is obsolete.
      configure.ac:88: You should run autoupdate.
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:88: the top level
      configure.ac:88: warning: The macro `AC_HEADER_STDC' is obsolete.
      configure.ac:88: You should run autoupdate.
      ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:88: the top level
      configure.ac:303: warning: The macro `AM_ENABLE_SHARED' is obsolete.
      configure.ac:303: You should run autoupdate.
      m4/ltoptions.m4:205: AM_ENABLE_SHARED is expanded from...
      configure.ac:303: the top level
      configure.ac:342: warning: The macro `AC_HELP_STRING' is obsolete.
      configure.ac:342: You should run autoupdate.
      ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
      ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
      m4/CGAL.m4:15: ACX_CHECK_CGAL is expanded from...
      configure.ac:342: the top level
      configure.ac:342: warning: The macro `AC_ERROR' is obsolete.
      configure.ac:342: You should run autoupdate.
      ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from...
      m4/CGAL.m4:15: ACX_CHECK_CGAL is expanded from...
      configure.ac:342: the top level
      configure.ac:491: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
      configure.ac:491: You should run autoupdate.
      m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
      configure.ac:491: the top level
      configure.ac:647: warning: The macro `SWIG_ENABLE_CXX' is obsolete.
      configure.ac:647: You should run autoupdate.
      m4/ax_swig_enable_cxx.m4:48: SWIG_ENABLE_CXX is expanded from...
      configure.ac:647: the top level
      configure.ac:648: warning: The macro `SWIG_PYTHON' is obsolete.
      configure.ac:648: You should run autoupdate.
      m4/ax_swig_python.m4:57: SWIG_PYTHON is expanded from...
      configure.ac:648: the top level
      processing ./plugins/SISCone/siscone
      Running libtoolize...
      glibtoolize: putting auxiliary files in '.'.
      glibtoolize: copying file './ltmain.sh'
      glibtoolize: putting macros in 'm4'.
      glibtoolize: copying file 'm4/libtool.m4'
      glibtoolize: copying file 'm4/ltoptions.m4'
      glibtoolize: copying file 'm4/ltsugar.m4'
      glibtoolize: copying file 'm4/ltversion.m4'
      glibtoolize: copying file 'm4/lt~obsolete.m4'
      glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
      glibtoolize: and rerunning glibtoolize and aclocal.
      Running aclocal  -I m4 ...
      Running automake --gnu  ...
      configure.ac:21: installing './compile'
      configure.ac:73: installing './config.guess'
      configure.ac:73: installing './config.sub'
      configure.ac:3: installing './install-sh'
      configure.ac:3: installing './missing'
      examples/Makefile.am: installing './depcomp'
      Running autoconf ...
      configure.ac:36: warning: The macro `AC_STDC_HEADERS' is obsolete.
      configure.ac:36: You should run autoupdate.
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:36: the top level
      configure.ac:36: warning: The macro `AC_HEADER_STDC' is obsolete.
      configure.ac:36: You should run autoupdate.
      ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:36: the top level
      configure.ac:73: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
      configure.ac:73: You should run autoupdate.
      m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
      configure.ac:73: the top level
      configure.ac:98: warning: AC_OUTPUT should be used without arguments.
      configure.ac:98: You should run autoupdate.
      Running ./configure --prefix=/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/src/fastjet/_fastjet_core --disable-auto-ptr --enable-allcxxplugins --enable-cgal-header-only --enable-cgal --with-cgaldir=/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1 --enable-swig --enable-pyext LDFLAGS=-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN ...
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a race-free mkdir -p... ./install-sh -c -d
      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 UID '65698565' is supported by ustar format... no
      checking whether GID '1527229786' is supported by ustar format... no
      checking how to create a ustar tar archive... none
      checking whether make supports the include directive... yes (GNU style)
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether the compiler supports GNU C... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to enable C11 features... none needed
      checking whether gcc understands -c and -o together... yes
      checking dependency style of gcc... gcc3
      checking for stdio.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for strings.h... yes
      checking for sys/stat.h... yes
      checking for sys/types.h... yes
      checking for unistd.h... yes
      checking for int... yes
      checking for long... yes
      checking for g++... g++
      checking whether the compiler supports GNU C++... yes
      checking whether g++ accepts -g... yes
      checking for g++ option to enable C++11 features... none needed
      checking dependency style of g++... gcc3
      checking for g++... yes
      checking whether ln -s works... yes
      checking for a sed that does not truncate output... /usr/bin/sed
      checking whether make sets $(MAKE)... (cached) yes
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking if g++ supports -Woverloaded-virtual flag... yes
      checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "[[deprecated]]" keyword... yes
      checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "__attribute__((deprecated))" keyword... yes
      checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "override" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "[[deprecated]]" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "__attribute__((deprecated))" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "override" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "explicit" keyword for operators... no
      checking for execinfo.h... yes
      checking for cos in -lm... yes
      checking CGAL_MAKEFILE... not specified
      checking whether C++ compiler accepts -frounding-math -Werror... no
      checking whether C++ compiler accepts -fp-model strict -Werror... no
      checking CGAL in /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1... lib
      checking for gmp.h... no
      checking for main in -lgmp... no
      configure: error: CGAL explicitly requested and not found or not functional
      This file contains any messages produced by compilers while
      running configure, to aid debugging if configure makes a mistake.

      It was created by FastJet configure 3.4.0, which was
      generated by GNU Autoconf 2.71.  Invocation command line was

        $ ./configure --prefix=/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/src/fastjet/_fastjet_core --disable-auto-ptr --enable-allcxxplugins --enable-cgal-header-only --enable-cgal --with-cgaldir=/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1 --enable-swig --enable-pyext 'LDFLAGS=-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN'

      ## --------- ##
      ## Platform. ##
      ## --------- ##

      hostname = xxxhome
      uname -m = arm64
      uname -r = 21.6.0
      uname -s = Darwin
      uname -v = Darwin Kernel Version 21.6.0: Mon Dec 19 20:45:43 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T8110

      /usr/bin/uname -p = arm
      /bin/uname -X     = unknown

      /bin/arch              = unknown
      /usr/bin/arch -k       = unknown
      /usr/convex/getsysinfo = unknown
      /usr/bin/hostinfo      = Mach kernel version:
           Darwin Kernel Version 21.6.0: Mon Dec 19 20:45:43 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T8110
      Kernel configured for up to 8 processors.
      8 processors are physically available.
      8 processors are logically available.
      Processor type: arm64e (ARM64E)
      Processors active: 0 1 2 3 4 5 6 7
      Primary memory available: 24.00 gigabytes
      Default processor set: 605 tasks, 4660 threads, 8 processors
      Load average: 2.80, Mach factor: 5.19
      /bin/machine           = unknown
      /usr/bin/oslevel       = unknown
      /bin/universe          = unknown

      PATH: /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/bin/
      PATH: /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/normal/bin/
      PATH: /Users/username/dev/.direnv/python-3.10.6/bin/
      PATH: /opt/homebrew/opt/
      PATH: /opt/homebrew/opt/qt@5/bin/
      PATH: /opt/homebrew/opt/imagemagick@6/bin/
      PATH: /Users/username/.pyenv/shims/
      PATH: /usr/local/bin/charm/
      PATH: /usr/local/sbin/
      PATH: /opt/homebrew/bin/
      PATH: /opt/homebrew/sbin/
      PATH: /opt/homebrew/share/google-cloud-sdk/bin/
      PATH: /usr/local/bin/
      PATH: /usr/bin/
      PATH: /bin/
      PATH: /usr/sbin/
      PATH: /sbin/
      PATH: /Library/TeX/texbin/
      PATH: /Users/username/.local/bin/


      ## ----------- ##
      ## Core tests. ##
      ## ----------- ##

      configure:3037: looking for aux files: config.guess config.sub ltmain.sh compile missing install-sh
      configure:3050:  trying ./
      configure:3079:   ./config.guess found
      configure:3079:   ./config.sub found
      configure:3079:   ./ltmain.sh found
      configure:3079:   ./compile found
      configure:3079:   ./missing found
      configure:3061:   ./install-sh found
      configure:3209: checking for a BSD-compatible install
      configure:3282: result: /usr/bin/install -c
      configure:3293: checking whether build environment is sane
      configure:3348: result: yes
      configure:3507: checking for a race-free mkdir -p
      configure:3551: result: ./install-sh -c -d
      configure:3558: checking for gawk
      configure:3593: result: no
      configure:3558: checking for mawk
      configure:3593: result: no
      configure:3558: checking for nawk
      configure:3593: result: no
      configure:3558: checking for awk
      configure:3579: found /usr/bin/awk
      configure:3590: result: awk
      configure:3601: checking whether make sets $(MAKE)
      configure:3624: result: yes
      configure:3654: checking whether make supports nested variables
      configure:3672: result: yes
      configure:3757: checking whether UID '65698565' is supported by ustar format
      configure:3763: result: no
      configure:3767: checking whether GID '1527229786' is supported by ustar format
      configure:3773: result: no
      configure:3778: checking how to create a ustar tar archive
      configure:3832: tardir=conftest.dir && eval false >conftest.tar
      configure:3835: $? = 1
      configure:3861: result: none
      configure:3951: checking whether make supports the include directive
      configure:3966: make -f confmf.GNU && cat confinc.out
      this is the am__doit target
      configure:3969: $? = 0
      configure:3988: result: yes (GNU style)
      configure:4064: checking for gcc
      configure:4085: found /usr/bin/gcc
      configure:4096: result: gcc
      configure:4449: checking for C compiler version
      configure:4458: gcc --version >&5
      Apple clang version 14.0.0 (clang-1400.0.29.202)
      Target: arm64-apple-darwin21.6.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      configure:4469: $? = 0
      configure:4458: gcc -v >&5
      Apple clang version 14.0.0 (clang-1400.0.29.202)
      Target: arm64-apple-darwin21.6.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      configure:4469: $? = 0
      configure:4458: gcc -V >&5
      clang: error: argument to '-V' is missing (expected 1 value)
      clang: error: no input files
      configure:4469: $? = 1
      configure:4458: gcc -qversion >&5
      clang: error: unknown argument '-qversion'; did you mean '--version'?
      clang: error: no input files
      configure:4469: $? = 1
      configure:4458: gcc -version >&5
      clang: error: unknown argument '-version'; did you mean '--version'?
      clang: error: no input files
      configure:4469: $? = 1
      configure:4489: checking whether the C compiler works
      configure:4511: gcc   -Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN conftest.c  >&5
      configure:4515: $? = 0
      configure:4565: result: yes
      configure:4568: checking for C compiler default output file name
      configure:4570: result: a.out
      configure:4576: checking for suffix of executables
      configure:4583: gcc -o conftest   -Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN conftest.c  >&5
      configure:4587: $? = 0
      configure:4610: result:
      configure:4632: checking whether we are cross compiling
      configure:4640: gcc -o conftest   -Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN conftest.c  >&5
      configure:4644: $? = 0
      configure:4651: ./conftest
      configure:4655: $? = 0
      configure:4670: result: no
      configure:4675: checking for suffix of object files
      configure:4698: gcc -c   conftest.c >&5
      configure:4702: $? = 0
      configure:4724: result: o
      configure:4728: checking whether the compiler supports GNU C
      configure:4748: gcc -c   conftest.c >&5
      configure:4748: $? = 0
      configure:4758: result: yes
      configure:4769: checking whether gcc accepts -g
      configure:4790: gcc -c -g  conftest.c >&5
      configure:4790: $? = 0
      configure:4834: result: yes
      configure:4854: checking for gcc option to enable C11 features
      configure:4869: gcc  -c -g -O2  conftest.c >&5
      configure:4869: $? = 0
      configure:4887: result: none needed
      configure:5003: checking whether gcc understands -c and -o together
      configure:5026: gcc -c conftest.c -o conftest2.o
      configure:5029: $? = 0
      configure:5026: gcc -c conftest.c -o conftest2.o
      configure:5029: $? = 0
      configure:5041: result: yes
      configure:5060: checking dependency style of gcc
      configure:5172: result: gcc3
      configure:5192: checking for stdio.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for stdlib.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for string.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for inttypes.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for stdint.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for strings.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for sys/stat.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for sys/types.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5192: checking for unistd.h
      configure:5192: gcc -c -g -O2  conftest.c >&5
      configure:5192: $? = 0
      configure:5192: result: yes
      configure:5217: checking for int
      configure:5217: gcc -c -g -O2  conftest.c >&5
      configure:5217: $? = 0
      configure:5217: gcc -c -g -O2  conftest.c >&5
      conftest.c:52:18: error: expected expression
      if (sizeof ((int)))
                       ^
      1 error generated.
      configure:5217: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | /* end confdefs.h.  */
      | #include <stddef.h>
      | #ifdef HAVE_STDIO_H
      | # include <stdio.h>
      | #endif
      | #ifdef HAVE_STDLIB_H
      | # include <stdlib.h>
      | #endif
      | #ifdef HAVE_STRING_H
      | # include <string.h>
      | #endif
      | #ifdef HAVE_INTTYPES_H
      | # include <inttypes.h>
      | #endif
      | #ifdef HAVE_STDINT_H
      | # include <stdint.h>
      | #endif
      | #ifdef HAVE_STRINGS_H
      | # include <strings.h>
      | #endif
      | #ifdef HAVE_SYS_TYPES_H
      | # include <sys/types.h>
      | #endif
      | #ifdef HAVE_SYS_STAT_H
      | # include <sys/stat.h>
      | #endif
      | #ifdef HAVE_UNISTD_H
      | # include <unistd.h>
      | #endif
      | int
      | main (void)
      | {
      | if (sizeof ((int)))
      |       return 0;
      |   ;
      |   return 0;
      | }
      configure:5217: result: yes
      configure:5223: checking for long
      configure:5223: gcc -c -g -O2  conftest.c >&5
      configure:5223: $? = 0
      configure:5223: gcc -c -g -O2  conftest.c >&5
      conftest.c:52:19: error: expected expression
      if (sizeof ((long)))
                        ^
      1 error generated.
      configure:5223: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | /* end confdefs.h.  */
      | #include <stddef.h>
      | #ifdef HAVE_STDIO_H
      | # include <stdio.h>
      | #endif
      | #ifdef HAVE_STDLIB_H
      | # include <stdlib.h>
      | #endif
      | #ifdef HAVE_STRING_H
      | # include <string.h>
      | #endif
      | #ifdef HAVE_INTTYPES_H
      | # include <inttypes.h>
      | #endif
      | #ifdef HAVE_STDINT_H
      | # include <stdint.h>
      | #endif
      | #ifdef HAVE_STRINGS_H
      | # include <strings.h>
      | #endif
      | #ifdef HAVE_SYS_TYPES_H
      | # include <sys/types.h>
      | #endif
      | #ifdef HAVE_SYS_STAT_H
      | # include <sys/stat.h>
      | #endif
      | #ifdef HAVE_UNISTD_H
      | # include <unistd.h>
      | #endif
      | int
      | main (void)
      | {
      | if (sizeof ((long)))
      |       return 0;
      |   ;
      |   return 0;
      | }
      configure:5223: result: yes
      configure:5307: checking for g++
      configure:5328: found /usr/bin/g++
      configure:5339: result: g++
      configure:5366: checking for C++ compiler version
      configure:5375: g++ --version >&5
      Apple clang version 14.0.0 (clang-1400.0.29.202)
      Target: arm64-apple-darwin21.6.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      configure:5386: $? = 0
      configure:5375: g++ -v >&5
      Apple clang version 14.0.0 (clang-1400.0.29.202)
      Target: arm64-apple-darwin21.6.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      configure:5386: $? = 0
      configure:5375: g++ -V >&5
      clang: error: argument to '-V' is missing (expected 1 value)
      clang: error: no input files
      configure:5386: $? = 1
      configure:5375: g++ -qversion >&5
      clang: error: unknown argument '-qversion'; did you mean '--version'?
      clang: error: no input files
      configure:5386: $? = 1
      configure:5390: checking whether the compiler supports GNU C++
      configure:5410: g++ -c -O3 -Bstatic -lgmp -Bdynamic -std=c++17  conftest.cpp >&5
      clang: warning: -lgmp: 'linker' input unused [-Wunused-command-line-argument]
      configure:5410: $? = 0
      configure:5420: result: yes
      configure:5431: checking whether g++ accepts -g
      configure:5452: g++ -c -g  conftest.cpp >&5
      configure:5452: $? = 0
      configure:5496: result: yes
      configure:5516: checking for g++ option to enable C++11 features
      configure:5531: g++  -c -O3 -Bstatic -lgmp -Bdynamic -std=c++17  conftest.cpp >&5
      clang: warning: -lgmp: 'linker' input unused [-Wunused-command-line-argument]
      conftest.cpp:187:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
        cxx11test::delegate d2();
                              ^~
      conftest.cpp:187:25: note: remove parentheses to declare a variable
        cxx11test::delegate d2();
                              ^~
      1 warning generated.
      configure:5531: $? = 0
      configure:5549: result: none needed
      configure:5615: checking dependency style of g++
      configure:5727: result: gcc3
      configure:5747: checking for g++
      configure:5768: found /usr/bin/g++
      configure:5780: result: yes
      configure:5793: checking whether ln -s works
      configure:5797: result: yes
      configure:5804: checking for a sed that does not truncate output
      configure:5874: result: /usr/bin/sed
      configure:5879: checking whether make sets $(MAKE)
      configure:5902: result: yes
      configure:5914: checking for grep that handles long lines and -e
      configure:5978: result: /usr/bin/grep
      configure:5986: checking for egrep
      configure:6054: result: /usr/bin/grep -E
      configure:6080: checking if g++ supports -Woverloaded-virtual flag
      configure:6095: g++ -c -Woverloaded-virtual  conftest.cpp >&5
      configure:6095: $? = 0
      configure:6109: result: yes
      configure:6196: checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "[[deprecated]]" keyword
      configure:6210: g++ -c -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror=attributes  conftest.cpp >&5
      clang: warning: -lgmp: 'linker' input unused [-Wunused-command-line-argument]
      conftest.cpp:21:73: warning: 'test' is deprecated [-Wdeprecated-declarations]
      class A{public:  [[deprecated]] void test() {}}; int main(void){ A a; a.test(); return 0;}
                                                                              ^
      conftest.cpp:21:20: note: 'test' has been explicitly marked deprecated here
      class A{public:  [[deprecated]] void test() {}}; int main(void){ A a; a.test(); return 0;}
                         ^
      1 warning generated.
      configure:6210: $? = 0
      configure:6229: result: yes
      configure:6232: checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "__attribute__((deprecated))" keyword
      configure:6246: g++ -c -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror=attributes  conftest.cpp >&5
      clang: warning: -lgmp: 'linker' input unused [-Wunused-command-line-argument]
      conftest.cpp:22:84: warning: 'test' is deprecated [-Wdeprecated-declarations]
      class A{public: void test() __attribute__((deprecated)) {}};int main(void){ A a; a.test(); return 0;}
                                                                                         ^
      conftest.cpp:22:44: note: 'test' has been explicitly marked deprecated here
      class A{public: void test() __attribute__((deprecated)) {}};int main(void){ A a; a.test(); return 0;}
                                                 ^
      1 warning generated.
      configure:6246: $? = 0
      configure:6265: result: yes
      configure:6268: checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "override" keyword
      configure:6282: g++ -c -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror  conftest.cpp >&5
      clang: error: -lgmp: 'linker' input unused [-Werror,-Wunused-command-line-argument]
      configure:6282: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | /* end confdefs.h.  */
      | class A{public: virtual void test(){}}; class B : public A{public: virtual void test() override{}}; int main(void){ B b; b.test(); return 0;}
      configure:6301: result: no
      configure:6304: checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "[[deprecated]]" keyword
      configure:6318: g++ -c  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror -Wno-error=deprecated-declarations  conftest.cpp >&5
      clang: error: -lgmp: 'linker' input unused [-Werror,-Wunused-command-line-argument]
      configure:6318: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | /* end confdefs.h.  */
      | class A{public:  [[deprecated]] void test() {}}; int main(void){ A a; a.test(); return 0;}
      configure:6337: result: no
      configure:6340: checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "__attribute__((deprecated))" keyword
      configure:6354: g++ -c  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror -Wno-error=deprecated-declarations  conftest.cpp >&5
      clang: error: -lgmp: 'linker' input unused [-Werror,-Wunused-command-line-argument]
      configure:6354: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | /* end confdefs.h.  */
      | class A{public: __attribute__((__deprecated__)) void test() {}};int main(void){ A a; a.test(); return 0;}
      configure:6373: result: no
      configure:6376: checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "override" keyword
      configure:6390: g++ -c  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror  conftest.cpp >&5
      clang: error: -lgmp: 'linker' input unused [-Werror,-Wunused-command-line-argument]
      configure:6390: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | /* end confdefs.h.  */
      | class A{public: virtual void test(){}}; class B : public A{public: virtual void test() override{}}; int main(void){ B b; b.test(); return 0;}
      configure:6409: result: no
      configure:6412: checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 supports the "explicit" keyword for operators
      configure:6426: g++ -c  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -Werror  conftest.cpp >&5
      clang: error: -lgmp: 'linker' input unused [-Werror,-Wunused-command-line-argument]
      configure:6426: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | /* end confdefs.h.  */
      | class A{public: explicit operator bool(){return true;}}; int main(void){ A a; bool b=bool(a); if (b) b=false; return 0;}
      configure:6445: result: no
      configure:6484: checking for execinfo.h
      configure:6484: gcc -c -g -O2  conftest.c >&5
      configure:6484: $? = 0
      configure:6484: result: yes
      configure:6492: checking for cos in -lm
      configure:6515: gcc -o conftest -g -O2  -Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN conftest.c -lm   >&5
      conftest.c:28:6: warning: incompatible redeclaration of library function 'cos' [-Wincompatible-library-redeclaration]
      char cos ();
           ^
      conftest.c:28:6: note: 'cos' is a builtin with type 'double (double)'
      1 warning generated.
      configure:6515: $? = 0
      configure:6525: result: yes
      configure:6621: checking CGAL_MAKEFILE
      configure:6665: result: not specified
      configure:6684: checking whether C++ compiler accepts -frounding-math -Werror
      configure:6704: g++ -c -frounding-math -Werror  conftest.cpp >&5
      error: overriding currently unsupported rounding mode on this target [-Werror,-Wunsupported-floating-point-opt]
      1 error generated.
      configure:6704: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | #define HAVE_EXECINFO_H 1
      | #define HAVE_LIBM 1
      | /* end confdefs.h.  */
      |
      | int
      | main (void)
      | {
      |
      |   ;
      |   return 0;
      | }
      configure:6715: result: no
      configure:6723: checking whether C++ compiler accepts -fp-model strict -Werror
      configure:6743: g++ -c -fp-model strict -Werror  conftest.cpp >&5
      clang: error: unknown argument: '-fp-model'
      clang: error: no such file or directory: 'strict'
      configure:6743: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | #define HAVE_EXECINFO_H 1
      | #define HAVE_LIBM 1
      | /* end confdefs.h.  */
      |
      | int
      | main (void)
      | {
      |
      |   ;
      |   return 0;
      | }
      configure:6754: result: no
      configure:6774: checking CGAL in /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1
      configure:6794: result: lib
      configure:6859: checking for gmp.h
      configure:6859: gcc -c -g -O2   -I/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1/include conftest.c >&5
      conftest.c:53:10: fatal error: 'gmp.h' file not found
      #include <gmp.h>
               ^~~~~~~
      1 error generated.
      configure:6859: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | #define HAVE_EXECINFO_H 1
      | #define HAVE_LIBM 1
      | /* end confdefs.h.  */
      | #include <stddef.h>
      | #ifdef HAVE_STDIO_H
      | # include <stdio.h>
      | #endif
      | #ifdef HAVE_STDLIB_H
      | # include <stdlib.h>
      | #endif
      | #ifdef HAVE_STRING_H
      | # include <string.h>
      | #endif
      | #ifdef HAVE_INTTYPES_H
      | # include <inttypes.h>
      | #endif
      | #ifdef HAVE_STDINT_H
      | # include <stdint.h>
      | #endif
      | #ifdef HAVE_STRINGS_H
      | # include <strings.h>
      | #endif
      | #ifdef HAVE_SYS_TYPES_H
      | # include <sys/types.h>
      | #endif
      | #ifdef HAVE_SYS_STAT_H
      | # include <sys/stat.h>
      | #endif
      | #ifdef HAVE_UNISTD_H
      | # include <unistd.h>
      | #endif
      | #include <gmp.h>
      configure:6859: result: no
      configure:6866: checking for main in -lgmp
      configure:6886: gcc -o conftest -g -O2   -I/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1/include  -L/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1/lib -Wl,-rpath,/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1/lib -Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN conftest.c -lgmp  -lm  >&5
      ld: library not found for -lgmp
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      configure:6886: $? = 1
      configure: failed program was:
      | /* confdefs.h */
      | #define PACKAGE_NAME "FastJet"
      | #define PACKAGE_TARNAME "fastjet"
      | #define PACKAGE_VERSION "3.4.0"
      | #define PACKAGE_STRING "FastJet 3.4.0"
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE_URL ""
      | #define PACKAGE "fastjet"
      | #define VERSION "3.4.0"
      | #define HAVE_STDIO_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define STDC_HEADERS 1
      | #define HAVE_CXX14_DEPRECATED /**/
      | #define HAVE_GNUCXX_DEPRECATED /**/
      | #define HAVE_EXECINFO_H 1
      | #define HAVE_LIBM 1
      | /* end confdefs.h.  */
      |
      |
      | int
      | main (void)
      | {
      | return main ();
      |   ;
      |   return 0;
      | }
      configure:6896: result: no
      configure:6914: error: CGAL explicitly requested and not found or not functional

      ## ---------------- ##
      ## Cache variables. ##
      ## ---------------- ##

      ac_cv_c_compiler_gnu=yes
      ac_cv_cxx_compiler_gnu=yes
      ac_cv_env_CCC_set=
      ac_cv_env_CCC_value=
      ac_cv_env_CC_set=
      ac_cv_env_CC_value=
      ac_cv_env_CFLAGS_set=
      ac_cv_env_CFLAGS_value=
      ac_cv_env_CPPFLAGS_set=
      ac_cv_env_CPPFLAGS_value=
      ac_cv_env_CXXCPP_set=
      ac_cv_env_CXXCPP_value=
      ac_cv_env_CXXFLAGS_set=set
      ac_cv_env_CXXFLAGS_value='-O3 -Bstatic -lgmp -Bdynamic -std=c++17'
      ac_cv_env_CXX_set=
      ac_cv_env_CXX_value=
      ac_cv_env_FCFLAGS_set=
      ac_cv_env_FCFLAGS_value=
      ac_cv_env_FC_set=
      ac_cv_env_FC_value=
      ac_cv_env_LDFLAGS_set=set
      ac_cv_env_LDFLAGS_value='-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN'
      ac_cv_env_LIBS_set=
      ac_cv_env_LIBS_value=
      ac_cv_env_LT_SYS_LIBRARY_PATH_set=
      ac_cv_env_LT_SYS_LIBRARY_PATH_value=
      ac_cv_env_PYTHON_CONFIG_set=
      ac_cv_env_PYTHON_CONFIG_value=
      ac_cv_env_PYTHON_INCLUDE_set=set
      ac_cv_env_PYTHON_INCLUDE_value=-I/Users/username/.pyenv/versions/3.10.6/include/python3.10
      ac_cv_env_PYTHON_set=set
      ac_cv_env_PYTHON_value=/Users/username/dev/.direnv/python-3.10.6/bin/python
      ac_cv_env_build_alias_set=
      ac_cv_env_build_alias_value=
      ac_cv_env_host_alias_set=
      ac_cv_env_host_alias_value=
      ac_cv_env_target_alias_set=
      ac_cv_env_target_alias_value=
      ac_cv_header_execinfo_h=yes
      ac_cv_header_gmp_h=no
      ac_cv_header_inttypes_h=yes
      ac_cv_header_stdint_h=yes
      ac_cv_header_stdio_h=yes
      ac_cv_header_stdlib_h=yes
      ac_cv_header_string_h=yes
      ac_cv_header_strings_h=yes
      ac_cv_header_sys_stat_h=yes
      ac_cv_header_sys_types_h=yes
      ac_cv_header_unistd_h=yes
      ac_cv_lib_gmp_main=no
      ac_cv_lib_m_cos=yes
      ac_cv_objext=o
      ac_cv_path_EGREP='/usr/bin/grep -E'
      ac_cv_path_GREP=/usr/bin/grep
      ac_cv_path_SED=/usr/bin/sed
      ac_cv_path_install='/usr/bin/install -c'
      ac_cv_prog_AWK=awk
      ac_cv_prog_ac_ct_CC=gcc
      ac_cv_prog_ac_ct_CXX=g++
      ac_cv_prog_cc_c11=
      ac_cv_prog_cc_g=yes
      ac_cv_prog_cc_stdc=
      ac_cv_prog_cxx_11=no
      ac_cv_prog_cxx_cxx11=
      ac_cv_prog_cxx_found=yes
      ac_cv_prog_cxx_g=yes
      ac_cv_prog_cxx_stdcxx=
      ac_cv_prog_make_make_set=yes
      ac_cv_type_int=yes
      ac_cv_type_long=yes
      am_cv_CC_dependencies_compiler_type=gcc3
      am_cv_CXX_dependencies_compiler_type=gcc3
      am_cv_make_support_nested_variables=yes
      am_cv_prog_cc_c_o=yes
      am_cv_prog_tar_ustar=none
      ax_cv_cxx_flags__fp_model_strict__Werror=no
      ax_cv_cxx_flags__frounding_math__Werror=no

      ## ----------------- ##
      ## Output variables. ##
      ## ----------------- ##

      ACLOCAL='${SHELL} '\''/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/fastjet-core/missing'\'' aclocal-1.16'
      AMDEPBACKSLASH='\'
      AMDEP_FALSE='#'
      AMDEP_TRUE=''
      AMTAR='$${TAR-tar}'
      AM_BACKSLASH='\'
      AM_CXXFLAGS=' -g  -Woverloaded-virtual '
      AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
      AM_DEFAULT_VERBOSITY='1'
      AM_FCFLAGS=''
      AM_FFLAGS=''
      AM_V='$(V)'
      AR=''
      AUTOCONF='${SHELL} '\''/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/fastjet-core/missing'\'' autoconf'
      AUTOHEADER='${SHELL} '\''/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/fastjet-core/missing'\'' autoheader'
      AUTOMAKE='${SHELL} '\''/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/fastjet-core/missing'\'' automake-1.16'
      AWK='awk'
      AX_SWIG_PYTHON_CPPFLAGS=''
      AX_SWIG_PYTHON_OPT=''
      BUILD_INCLUDES_SWIG_FALSE=''
      BUILD_INCLUDES_SWIG_TRUE=''
      BUILD_PLUGIN_ATLASCONE_FALSE=''
      BUILD_PLUGIN_ATLASCONE_TRUE=''
      BUILD_PLUGIN_CDFCONES_FALSE=''
      BUILD_PLUGIN_CDFCONES_TRUE=''
      BUILD_PLUGIN_CMSITERATIVECONE_FALSE=''
      BUILD_PLUGIN_CMSITERATIVECONE_TRUE=''
      BUILD_PLUGIN_D0RUNICONE_FALSE=''
      BUILD_PLUGIN_D0RUNICONE_TRUE=''
      BUILD_PLUGIN_D0RUNIICONE_FALSE=''
      BUILD_PLUGIN_D0RUNIICONE_TRUE=''
      BUILD_PLUGIN_EECAMBRIDGE_FALSE=''
      BUILD_PLUGIN_EECAMBRIDGE_TRUE=''
      BUILD_PLUGIN_GRIDJET_FALSE=''
      BUILD_PLUGIN_GRIDJET_TRUE=''
      BUILD_PLUGIN_JADE_FALSE=''
      BUILD_PLUGIN_JADE_TRUE=''
      BUILD_PLUGIN_NESTEDDEFS_FALSE=''
      BUILD_PLUGIN_NESTEDDEFS_TRUE=''
      BUILD_PLUGIN_PXCONE_FALSE=''
      BUILD_PLUGIN_PXCONE_TRUE=''
      BUILD_PLUGIN_SISCONE_FALSE=''
      BUILD_PLUGIN_SISCONE_TRUE=''
      BUILD_PLUGIN_TRACKJET_FALSE=''
      BUILD_PLUGIN_TRACKJET_TRUE=''
      BUILD_PYEXT_FALSE=''
      BUILD_PYEXT_TRUE=''
      CC='gcc'
      CCDEPMODE='depmode=gcc3'
      CFLAGS='-g -O2'
      CGAL_CPPFLAGS=''
      CGAL_LIBS=''
      CONFIGURE_INVOCATION=''
      CONFIG_CXXFLAGS=''
      CONFIG_LIBS=' -lm '
      CONFIG_LIBS_PLUGINS=''
      CONFIG_LIBS_PLUGINS_STATIC=''
      CONFIG_RUNPATH_FLAGS=''
      CONFIG_SUMMARY=''
      CPPFLAGS=''
      CSCOPE='cscope'
      CTAGS='ctags'
      CXX='g++'
      CXXCPP=''
      CXXDEPMODE='depmode=gcc3'
      CXXFLAGS='-O3 -Bstatic -lgmp -Bdynamic -std=c++17'
      CYGPATH_W='echo'
      D0_CXXFLAGS=''
      DEFS=''
      DEPDIR='.deps'
      DLLTOOL=''
      DSYMUTIL=''
      DUMPBIN=''
      ECHO_C='\c'
      ECHO_N=''
      ECHO_T=''
      EGREP='/usr/bin/grep -E'
      ETAGS='etags'
      EXEEXT=''
      F77=''
      FC=''
      FCFLAGS=''
      FCLIBS=''
      FFLAGS=''
      FGREP=''
      FILECMD=''
      FLIBS=''
      GREP='/usr/bin/grep'
      HAS_RUNPATH_SUPPORT=''
      HAS_SHARED='yes'
      INSTALL_DATA='${INSTALL} -m 644'
      INSTALL_PROGRAM='${INSTALL}'
      INSTALL_SCRIPT='${INSTALL}'
      INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
      LD=''
      LDFLAGS='-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN'
      LIBOBJS=''
      LIBS='-lm '
      LIBTOOL=''
      LIPO=''
      LIST_ALL_PLUGINS=''
      LN_S='ln -s'
      LTLIBOBJS=''
      LT_SYS_LIBRARY_PATH=''
      MAKEINFO='${SHELL} '\''/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/fastjet-core/missing'\'' makeinfo'
      MANIFEST_TOOL=''
      MKDIR_P='./install-sh -c -d'
      MONOLITHIC_PLUGINS_FALSE=''
      MONOLITHIC_PLUGINS_TRUE=''
      NM=''
      NMEDIT=''
      OBJDUMP=''
      OBJEXT='o'
      OTOOL64=''
      OTOOL=''
      PACKAGE='fastjet'
      PACKAGE_BUGREPORT=''
      PACKAGE_NAME='FastJet'
      PACKAGE_STRING='FastJet 3.4.0'
      PACKAGE_TARNAME='fastjet'
      PACKAGE_URL=''
      PACKAGE_VERSION='3.4.0'
      PATH_SEPARATOR=':'
      PYTHON='/Users/username/dev/.direnv/python-3.10.6/bin/python'
      PYTHON_CONFIG=''
      PYTHON_EXEC_PREFIX=''
      PYTHON_INCLUDE='-I/Users/username/.pyenv/versions/3.10.6/include/python3.10'
      PYTHON_PLATFORM=''
      PYTHON_PREFIX=''
      PYTHON_VERSION=''
      RANLIB=''
      SED='/usr/bin/sed'
      SET_MAKE=''
      SHELL='/bin/sh'
      STRIP=''
      SWIG=''
      SWIG_LIB=''
      VERSION='3.4.0'
      ac_ct_AR=''
      ac_ct_CC='gcc'
      ac_ct_CXX='g++'
      ac_ct_DUMPBIN=''
      ac_ct_FC=''
      am__EXEEXT_FALSE=''
      am__EXEEXT_TRUE=''
      am__fastdepCC_FALSE='#'
      am__fastdepCC_TRUE=''
      am__fastdepCXX_FALSE='#'
      am__fastdepCXX_TRUE=''
      am__include='include'
      am__isrc=''
      am__leading_dot='.'
      am__nodep='_no'
      am__quote=''
      am__tar='false'
      am__untar='false'
      bindir='${exec_prefix}/bin'
      build=''
      build_alias=''
      build_cpu=''
      build_os=''
      build_vendor=''
      cxx_found='yes'
      datadir='${datarootdir}'
      datarootdir='${prefix}/share'
      docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
      dvidir='${docdir}'
      exec_prefix='NONE'
      host=''
      host_alias=''
      host_cpu=''
      host_os=''
      host_vendor=''
      htmldir='${docdir}'
      includedir='${prefix}/include'
      infodir='${datarootdir}/info'
      install_sh='${SHELL} /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/fastjet-core/install-sh'
      libdir='${exec_prefix}/lib'
      libexecdir='${exec_prefix}/libexec'
      localedir='${datarootdir}/locale'
      localstatedir='${prefix}/var'
      mandir='${datarootdir}/man'
      mkdir_p='$(MKDIR_P)'
      oldincludedir='/usr/include'
      pdfdir='${docdir}'
      pkgpyexecdir=''
      pkgpythondir=''
      prefix='/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/src/fastjet/_fastjet_core'
      program_transform_name='s,x,x,'
      psdir='${docdir}'
      pyexecdir=''
      pythondir=''
      runstatedir='${localstatedir}/run'
      sbindir='${exec_prefix}/sbin'
      sharedstatedir='${prefix}/com'
      subdirs=''
      sysconfdir='${prefix}/etc'
      target_alias=''

      ## ----------- ##
      ## confdefs.h. ##
      ## ----------- ##

      /* confdefs.h */
      #define PACKAGE_NAME "FastJet"
      #define PACKAGE_TARNAME "fastjet"
      #define PACKAGE_VERSION "3.4.0"
      #define PACKAGE_STRING "FastJet 3.4.0"
      #define PACKAGE_BUGREPORT ""
      #define PACKAGE_URL ""
      #define PACKAGE "fastjet"
      #define VERSION "3.4.0"
      #define HAVE_STDIO_H 1
      #define HAVE_STDLIB_H 1
      #define HAVE_STRING_H 1
      #define HAVE_INTTYPES_H 1
      #define HAVE_STDINT_H 1
      #define HAVE_STRINGS_H 1
      #define HAVE_SYS_STAT_H 1
      #define HAVE_SYS_TYPES_H 1
      #define HAVE_UNISTD_H 1
      #define STDC_HEADERS 1
      #define HAVE_CXX14_DEPRECATED /**/
      #define HAVE_GNUCXX_DEPRECATED /**/
      #define HAVE_EXECINFO_H 1
      #define HAVE_LIBM 1

      configure: exit 1
      Traceback (most recent call last):
        File "/Users/username/dev/.direnv/python-3.10.6/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/Users/username/development/.direnv/python-3.10.6/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/username/dev/.direnv/python-3.10.6/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 413, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
          self.run_setup()
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 190, in <module>
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/normal/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-4375zgzn/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "<string>", line 97, in build_extensions
        File "/Users/username/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 524, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['./autogen.sh', '--prefix=/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/src/fastjet/_fastjet_core', '--disable-auto-ptr', '--enable-allcxxplugins', '--enable-cgal-header-only', '--enable-cgal', '--with-cgaldir=/private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-install-wociuxbv/fastjet_0ce230ccca8c4a1697ccdb59887ef7c7/CGAL-5.5.1', '--enable-swig', '--enable-pyext', 'LDFLAGS=-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fastjet
Failed to build fastjet
ERROR: Could not build wheels for fastjet, which is required to install pyproject.toml-based projects

[notice] A new release of pip available: 22.2.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip

@chrispap95
Copy link
Collaborator

chrispap95 commented Apr 12, 2023

Can you try after installing the following?

brew install make gcc automake swig gmp mpfr boost

@MycrofD
Copy link
Author

MycrofD commented Apr 12, 2023

I had all of them installed already. I still did a brew reinstall make gcc automake swig gmp mpfr boost just in case. Error message does not change.

@chrispap95
Copy link
Collaborator

chrispap95 commented Apr 12, 2023

Okay. Can you try the following just in case it works better?

git clone --recursive https://github.com/scikit-hep/fastjet.git
cd fastjet
pip install .

@MycrofD
Copy link
Author

MycrofD commented Apr 13, 2023

That also does not help. I get the same error.

@lgray
Copy link
Collaborator

lgray commented Apr 13, 2023

FWIW I get the same error on my M1 MBP running latest Ventura. There's some messiness with the build environment I can't figure out. I ended up just building in a debian python container and bind-mounting fastjet!

@chrispap95
Copy link
Collaborator

It looks like it can't find the brew installed gmp. Perhaps something like the following could help

CXXFLAGS=-I`brew --prefix gmp`/include LDFLAGS=-L`brew --prefix gmp`/lib pip install .

However, we override these in setup.py...
If you are feeling brave you could add them to your local setup.py and try again with pip install .

@MycrofD
Copy link
Author

MycrofD commented Apr 14, 2023

@chrispap95 I tried the one with CXXFLAGS but I see no difference, probably because this is overridden in setup.py as you pointed out.

I also edited the lines in setup.py at env["CXXFLAGS"] = "-O3 -Bstatic -lgmp -Bdynamic -std=c++17" and "CXXFLAGS=-O3 -Bstatic -Bdynamic -std=c++17",.

I still don't see any changes in the log.

@chrispap95
Copy link
Collaborator

I am afraid I can't do much since I don't have a machine with Apple silicon. Can you try the following? Just to see if it can find gmp.

cat >> test.c << "EOF"
#include <gmp.h>
int main(){return 0;}
EOF
gcc -o test test.c -lgmp

If the last line fails, then try with

gcc -o test test.c -I`brew --prefix gmp`/include -L`brew --prefix gmp`/lib

If this fails as well, then I have really no idea how to get this working.

@MycrofD
Copy link
Author

MycrofD commented Apr 14, 2023

I am afraid I can't do much since I don't have a machine with Apple silicon. Can you try the following? Just to see if it can find gmp.

cat >> test.c << "EOF"
#include <gmp.h>
int main(){return 0;}
EOF
gcc -o test test.c -lgmp

If the last line fails, then try with

Yes, the last line failed.

gcc -o test test.c -I`brew --prefix gmp`/include -L`brew --prefix gmp`/lib

This did not fail. So, maybe we know where the problem is?

If this fails as well, then I have really no idea how to get this working.

@chrispap95
Copy link
Collaborator

Okay, very interesting. So these flags seem to work but we need to figure out how to pass them to pip. How did you add them to setup.py? What I would expect to work is the following: https://github.com/scikit-hep/fastjet/blob/apple_silicon/setup.py

You could try this by changing to the branch apple_silicon and trying again with pip install .

@MycrofD
Copy link
Author

MycrofD commented Apr 14, 2023

Hmm, this does not work. Here are the initial lines of the log I got.

log:
  × Building wheel for fastjet (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1345 lines of output]
      /private/var/folders/0g/n7p18ft16y3_8bwz00w_1kw81ymyr5/T/pip-build-env-74pl2dyu/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing src/fastjet.egg-info/PKG-INFO
      writing dependency_links to src/fastjet.egg-info/dependency_links.txt
      writing requirements to src/fastjet.egg-info/requires.txt
      writing top-level names to src/fastjet.egg-info/top_level.txt
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'src/fastjet.egg-info/SOURCES.txt'
      running build_ext
      patching file pyinterface/fastjet.i
      Reversed (or previously applied) patch detected!  Assume -R? [n]
      Apply anyway? [n]
      Skipping patch.
      1 out of 1 hunk ignored -- saving rejects to file pyinterface/fastjet.i.rej
      patching file src/ClusterSequence.cc
      Reversed (or previously applied) patch detected!  Assume -R? [n]
      Apply anyway? [n]
      Skipping patch.
      2 out of 2 hunks ignored -- saving rejects to file src/ClusterSequence.cc.rej
      ./autogen.sh: line 34: [: too many arguments
      processing .
      Running libtoolize...
      glibtoolize: putting auxiliary files in '.'.
      glibtoolize: copying file './ltmain.sh'
      glibtoolize: putting macros in 'm4'.
      glibtoolize: copying file 'm4/libtool.m4'
      glibtoolize: copying file 'm4/ltoptions.m4'
      glibtoolize: copying file 'm4/ltsugar.m4'
      glibtoolize: copying file 'm4/ltversion.m4'
      glibtoolize: copying file 'm4/lt~obsolete.m4'
      glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
      glibtoolize: and rerunning glibtoolize and aclocal.
      Running aclocal  -I m4 ...
      Running automake --gnu  ...
      configure.ac:50: installing './compile'
      configure.ac:3: installing './missing'
      example/Makefile.am: installing './depcomp'
      pyinterface/Makefile.am:82: warning: eval AM_LIBTOOLFLAGS = "--silent": non-POSIX variable name
      pyinterface/Makefile.am:82: (probably a GNU make extension)
      pyinterface/Makefile.am:87: warning: eval AM_LIBTOOLFLAGS = "": non-POSIX variable name
      pyinterface/Makefile.am:87: (probably a GNU make extension)
      Running autoconf ...
      configure.ac:88: warning: The macro `AC_STDC_HEADERS' is obsolete.
      configure.ac:88: You should run autoupdate.
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:88: the top level
      configure.ac:88: warning: The macro `AC_HEADER_STDC' is obsolete.
      configure.ac:88: You should run autoupdate.
      ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:88: the top level
      configure.ac:303: warning: The macro `AM_ENABLE_SHARED' is obsolete.
      configure.ac:303: You should run autoupdate.
      m4/ltoptions.m4:205: AM_ENABLE_SHARED is expanded from...
      configure.ac:303: the top level
      configure.ac:342: warning: The macro `AC_HELP_STRING' is obsolete.
      configure.ac:342: You should run autoupdate.
      ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
      ./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
      m4/CGAL.m4:15: ACX_CHECK_CGAL is expanded from...
      configure.ac:342: the top level
      configure.ac:342: warning: The macro `AC_ERROR' is obsolete.
      configure.ac:342: You should run autoupdate.
      ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from...
      m4/CGAL.m4:15: ACX_CHECK_CGAL is expanded from...
      configure.ac:342: the top level
      configure.ac:491: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
      configure.ac:491: You should run autoupdate.
      m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
      configure.ac:491: the top level
      configure.ac:647: warning: The macro `SWIG_ENABLE_CXX' is obsolete.
      configure.ac:647: You should run autoupdate.
      m4/ax_swig_enable_cxx.m4:48: SWIG_ENABLE_CXX is expanded from...
      configure.ac:647: the top level
      configure.ac:648: warning: The macro `SWIG_PYTHON' is obsolete.
      configure.ac:648: You should run autoupdate.
      m4/ax_swig_python.m4:57: SWIG_PYTHON is expanded from...
      configure.ac:648: the top level
      processing ./plugins/SISCone/siscone
      Running libtoolize...
      glibtoolize: putting auxiliary files in '.'.
      glibtoolize: copying file './ltmain.sh'
      glibtoolize: putting macros in 'm4'.
      glibtoolize: copying file 'm4/libtool.m4'
      glibtoolize: copying file 'm4/ltoptions.m4'
      glibtoolize: copying file 'm4/ltsugar.m4'
      glibtoolize: copying file 'm4/ltversion.m4'
      glibtoolize: copying file 'm4/lt~obsolete.m4'
      glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
      glibtoolize: and rerunning glibtoolize and aclocal.
      Running aclocal  -I m4 ...
      Running automake --gnu  ...
      configure.ac:21: installing './compile'
      configure.ac:3: installing './missing'
      examples/Makefile.am: installing './depcomp'
      Running autoconf ...
      configure.ac:36: warning: The macro `AC_STDC_HEADERS' is obsolete.
      configure.ac:36: You should run autoupdate.
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:36: the top level
      configure.ac:36: warning: The macro `AC_HEADER_STDC' is obsolete.
      configure.ac:36: You should run autoupdate.
      ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
      ./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
      configure.ac:36: the top level
      configure.ac:73: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
      configure.ac:73: You should run autoupdate.
      m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
      configure.ac:73: the top level
      configure.ac:98: warning: AC_OUTPUT should be used without arguments.
      configure.ac:98: You should run autoupdate.
      Running ./configure --prefix=/Users/username/dev/fastjet/src/fastjet/_fastjet_core --enable-thread-safety --disable-auto-ptr --enable-allcxxplugins --enable-cgal-header-only --enable-cgal --with-cgaldir=/Users/username/dev/fastjet/CGAL-5.5.1 --enable-swig --enable-pyext LDFLAGS=-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN,-L`brew --prefix gmp`/lib ...
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a race-free mkdir -p... ./install-sh -c -d
      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 UID '65698565' is supported by ustar format... no
      checking whether GID '1527229786' is supported by ustar format... no
      checking how to create a ustar tar archive... none
      checking whether make supports the include directive... yes (GNU style)
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether the compiler supports GNU C... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to enable C11 features... none needed
      checking whether gcc understands -c and -o together... yes
      checking dependency style of gcc... gcc3
      checking for stdio.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for strings.h... yes
      checking for sys/stat.h... yes
      checking for sys/types.h... yes
      checking for unistd.h... yes
      checking for int... yes
      checking for long... yes
      checking for g++... g++
      checking whether the compiler supports GNU C++... yes
      checking whether g++ accepts -g... yes
      checking for g++ option to enable C++11 features... none needed
      checking dependency style of g++... gcc3
      checking for g++... yes
      checking whether ln -s works... yes
      checking for a sed that does not truncate output... /usr/bin/sed
      checking whether make sets $(MAKE)... (cached) yes
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking if g++ supports -Woverloaded-virtual flag... yes
      configure: WARNING: Thread safety uses C++11 features and may require additional compiler arguments, these have to be specified by the user
      checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "[[deprecated]]" keyword... yes
      checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "__attribute__((deprecated))" keyword... yes
      checking if g++ -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "override" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "[[deprecated]]" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "__attribute__((deprecated))" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "override" keyword... no
      checking if g++  -g  -Woverloaded-virtual  -O3 -Bstatic -lgmp -Bdynamic -std=c++17 -I`brew --prefix gmp`/include supports the "explicit" keyword for operators... no
      checking for execinfo.h... yes
      checking for cos in -lm... yes
      checking CGAL_MAKEFILE... not specified
      checking whether C++ compiler accepts -frounding-math -Werror... no
      checking whether C++ compiler accepts -fp-model strict -Werror... no
      checking CGAL in /Users/username/dev/fastjet/CGAL-5.5.1... lib
      checking for gmp.h... no
      checking for main in -lgmp... no
      configure: error: CGAL explicitly requested and not found or not functional
      This file contains any messages produced by compilers while
      running configure, to aid debugging if configure makes a mistake.

      It was created by FastJet configure 3.4.0, which was
      generated by GNU Autoconf 2.71.  Invocation command line was

        $ ./configure --prefix=/Users/username/dev/fastjet/src/fastjet/_fastjet_core --enable-thread-safety --disable-auto-ptr --enable-allcxxplugins --enable-cgal-header-only --enable-cgal --with-cgaldir=/Users/username/dev/fastjet/CGAL-5.5.1 --enable-swig --enable-pyext 'LDFLAGS=-Wl,-rpath,$$ORIGIN/_fastjet_core/lib:$$ORIGIN,-L`brew --prefix gmp`/lib'

@MycrofD
Copy link
Author

MycrofD commented Apr 14, 2023

It seems like this is related.
microsoft/vcpkg#15956

@chrispap95
Copy link
Collaborator

If the rest of the printout looks the same as before, then I have no idea what to try next, and without a machine available to experiment I can't go wild with trials to fix this. The solution that Lindsey provided doesn't look that bad. Maybe try that instead?

@MycrofD
Copy link
Author

MycrofD commented Apr 14, 2023

Thanks a lot @chrispap95 for the help. Do you have a sample docker-compose.yaml @lgray for me to get started with?

@lgray
Copy link
Collaborator

lgray commented Apr 14, 2023

docker run -it --rm --entrypoint=/bin/bash -v /path/to/fastjet:/root/fastjet python:3.10-bullseye

You'll have to apt install packages and such to build, you might want to make your own Dockerfile for sanity's sake. Since I was doing a one-off I didn't make one.

@matthewfeickert
Copy link
Member

matthewfeickert commented Feb 20, 2024

I recently got access to an Apple silicon (M2) machine that I can use for dev work as well. I haven't done local dev work on an Apple computer for about 12 years at this point (👴) so while I know that brew seems to be the only feasible way to do dev work on a Mac I'm curious if it would be possible to setup a dev environment using only conda-forge. Hopefully some of you can tell me if this is a terrible idea or not.

At the moment I have a dev-macosx-arm64-environment.yml that I'm working on expanding

name: fastjet-dev
channels:
  - conda-forge
dependencies:
  - python=3.11
  - autoconf
  - automake
  - cgal-cpp
  - gmp
  - libtool
  - make
  - patch
  - pybind11
  - swig

removal of the cgal local download and setup from setup.py

-            zip_filename = DIR / pathlib.Path(CGAL_ZIP).parts[-1]
-
-            with urllib.request.urlopen(CGAL_ZIP) as http_obj:
-                with open(zip_filename, "wb") as file_obj:
-                    shutil.copyfileobj(http_obj, file_obj)
-
-            with zipfile.ZipFile(zip_filename) as zip_obj:
-                cgal_dir = DIR / zip_obj.namelist()[0]
-                zip_obj.extractall(DIR)
-

...

-                f"--with-cgaldir={cgal_dir}",

and a build.sh script to reset the state of the fastjet-core submodule

#!/bin/bash

rm -rf CGAL-5.6*
rm -rf build

cd fastjet-core
git reset --hard fastjet-3.4.2
cd ..

python -m pip install --upgrade --verbose .

So far I'm failing extremely early

...
  Detected Mac OSX

  On Mac OSX, ./autogen.sh requires the GNU libtool and libtoolize scripts,
  renamed glibtol and glibtoolize respectively by Apple to avoid
  conflict with Apple-provided libtool.

  They should be already installed, together with Apple developer tools,
  in /usr/bin. If you see this message, they are not.
...

but I'm curious if this is possible at all to do with just conda-forge.

@matthewfeickert
Copy link
Member

Using the changes from PR #315, I've found that it is possible to build using conda-forge tooling if the block

# change executable names when running on Macs
# if test x`uname` = xDarwin; then
if [ `uname` == "Darwin" ]; then
  echo "Detected Mac OSX"
  if [ x$(which glibtool) == "x" ]; then    
    echo ""
    echo "On Mac OSX, $0 requires the GNU libtool and libtoolize scripts,"
    echo "renamed glibtol and glibtoolize respectively by Apple to avoid"
    echo "conflict with Apple-provided libtool."
    echo ""
    echo "They should be already installed, together with Apple developer tools,"
    echo "in /usr/bin. If you see this message, they are not."
    echo ""
    echo "The GNU version can be retrieved from http://ftp.gnu.org/gnu/libtool/."
    echo "If they are (re)installed from sources in a different location,"
    echo "autogen.sh should then be modified accordingly."
    exit
  fi
  LIBTOOL=glibtool
  LIBTOOLIZE=glibtoolize
fi

from the FastJet C++ source code's autogen.sh is removed (this should get fixed upstream to be ignored if CONDA_PREFIX is in the environment) and then a build script like

export CXXFLAGS="-I${CONDA_PREFIX}/include"
export LDFLAGS="-L${CONDA_PREFIX}/lib"

unset HOMEBREW_PREFIX

python -m pip install --upgrade --verbose .

is used. The overriding of CXXFLAGS and LDFLAGS isn't good, but until there's a better solution (maybe related to Issue #300) this works for local only builds.

@henryiii
Copy link
Member

This text is wrong. Apple doesn't rename tools to provide "g". They don't / can't provide GNU licensed tools. Homebrew provides g-prefixed utilities to avoid conflicting with Apple's BSD utilities.

this should get fixed upstream to be ignored if CONDA_PREFIX is in the environment

I would try glibtool if it exists, then fall back on libtool. Doesn't matter what platform it's on, or if Conda-build / conda-forge is installed.

@henryiii
Copy link
Member

(There's a way in homebrew to expose the non-g-prefixed tools, as well)

@matthewfeickert
Copy link
Member

matthewfeickert commented Sep 16, 2024

This text is wrong. Apple doesn't rename tools to provide "g". They don't / can't provide GNU licensed tools. Homebrew provides g-prefixed utilities to avoid conflicting with Apple's BSD utilities.

@henryiii Yup. c.f. https://gitlab.com/fastjet/fastjet/-/merge_requests/5 where I correct this.

I would try glibtool if it exists, then fall back on libtool. Doesn't matter what platform it's on, or if Conda-build / conda-forge is installed.

Hm, maybe you can comment on my MR (https://gitlab.com/fastjet/fastjet/-/merge_requests/5) to provide additional context so that the FastJet team will see it too? I don't disagree necessarily, but that's a departure from their defaults.

edit: I applied your suggestions to the MR. They were a nice improvement!

Though I understand the point of trying for the exceptional case and then fall back to a default, so I'll implement that in the MR tomorrow.

(There's a way in homebrew to expose the non-g-prefixed tools, as well)

Yeah,

export PATH="${HOMEBREW_PREFIX}/opt/<toolname>/libexec/gnubin:${PATH}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants