llnl / llnl/MemSurfer

cgal error installation from source OSX

Open
#21 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

installation
Dominant language
C++
Stars
29
Forks
10
PR merge metrics
No merged PRs in 30d

Description

1. I installed MemSurfer from source utilizing the README protocol:

$ git clone --recursive git@github.com:LLNL/MemSurfer.git
$ MEM_HOME=`pwd`/MemSurfer

2. After installing dependencies,

$ export CC_COMPILER=`which gcc`
$ export CXX_COMPILER=`which g++`
$ sh install_deps.sh

3. I ran into the following issue with CGAL installation:

Installing MemSurfer's dependencies for () on (). platform = (Darwin)
> Installation path = (/usr/local/anaconda3/pkgs/MemSurfer/external)
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
> Using gcc = (/usr/bin/gcc) [Apple clang version 12.0.0 (clang-1200.0.26.2)]
> Using g++ = (/usr/bin/g++) [Apple clang version 12.0.0 (clang-1200.0.26.2)]
> Using python = (/opt/anaconda3/bin/python3) [Python 3.7.6]
(eigen-3.3.9) Already installed. Found (/usr/local/anaconda3/pkgs/MemSurfer/external/include/eigen3).
(boost-1.66.0) Already installed. Found (/usr/local/anaconda3/pkgs/MemSurfer/external/lib/libboost_graph.a).
(CGAL-4.13) Configuring (/usr/local/anaconda3/pkgs/MemSurfer/external/downloads/CGAL-4.13.tar/build-20220512-161945)
(CGAL-4.13) Building and Installing
(CGAL-4.13) Installation failed. Please see build logs in (/usr/local/anaconda3/pkgs/MemSurfer/external) for more information.

4. Upon checking log file (for the make command) several errors are generated (only first two shown):

Consolidate compiler generated dependencies of target CGAL
[ 16%] Building CXX object Installation/src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
In file included from /usr/local/anaconda3/pkgs/MemSurfer/external/downloads/CGAL-4.13.tar/build-20220512-161945/Installation/src/CGAL/all_files.cpp:1:
In file included from /usr/local/anaconda3/pkgs/MemSurfer/external/downloads/CGAL-4.13.tar/Geomview/src/CGAL/Geomview_stream.cpp:28:
In file included from /usr/local/anaconda3/pkgs/MemSurfer/external/downloads/CGAL-4.13.tar/Geomview/include/CGAL/IO/Geomview_stream.h:33:
In file included from /usr/local/anaconda3/pkgs/MemSurfer/external/downloads/CGAL-4.13.tar/Kernel_23/include/CGAL/Bbox_2.h:33:
In file included from /usr/local/include/boost/math/special_functions/next.hpp:13:
In file included from /usr/local/include/boost/math/special_functions/math_fwd.hpp:29:
In file included from /usr/local/include/boost/math/special_functions/detail/round_fwd.hpp:11:
/usr/local/include/boost/math/tools/config.hpp:377:61: error: expected ';' at end of declaration
inline T max BOOST_PREVENT_MACRO_SUBSTITUTION(T a, T b, T c) BOOST_MATH_NOEXCEPT(T)
^
/usr/local/include/boost/math/tools/config.hpp:377:82: error: use of undeclared identifier 'T'
inline T max BOOST_PREVENT_MACRO_SUBSTITUTION(T a, T b, T c) BOOST_MATH_NOEXCEPT(T)
^
/usr/local/include/boost/math/tools/config.hpp:377:62: error: unknown type name 'noexcept'
inline T max BOOST_PREVENT_MACRO_SUBSTITUTION(T a, T b, T c) BOOST_MATH_NOEXCEPT(T)
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [Installation/src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o] Error 1
make[1]: *** [Installation/src/CGAL/CMakeFiles/CGAL.dir/all] Error 2

Can you help me with next steps in this installation?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with README and install_deps.sh, then inspect the CGAL build logs under the external installation path. Reproduce the macOS failure and determine why CGAL-4.13 is compiling against the shown Boost headers and Apple Clang configuration; done means the dependency installation completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.