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

lexical_cast/detail/buffer_view.hpp compile error using MacOS Sequoia clang 16 #80

Closed
stefanottili opened this issue Jan 20, 2025 · 1 comment

Comments

@stefanottili
Copy link

The OpenROAD project relies on lemon-graph, which seems to have an issue with clang 16 on MacOS Sequoia.
The-OpenROAD-Project/lemon-graph#1

git clone https://github.com/The-OpenROAD-Project/lemon-graph.git
cd lemon-graph
mkdir build
cd build 
cmake ..
make
...
In file included from /Users/user/lemon-graph/lemon/soplex.cc:22:
In file included from /opt/homebrew/include/soplex.h:35:
In file included from /opt/homebrew/include/soplex/spxdefines.h:63:
In file included from /opt/homebrew/include/boost/multiprecision/number.hpp:11:
In file included from /opt/homebrew/include/boost/multiprecision/detail/precision.hpp:9:
In file included from /opt/homebrew/include/boost/multiprecision/traits/is_variable_precision.hpp:9:
In file included from /opt/homebrew/include/boost/multiprecision/detail/number_base.hpp:29:
In file included from /opt/homebrew/include/boost/lexical_cast.hpp:30:
/opt/homebrew/include/boost/lexical_cast/detail/buffer_view.hpp:27:34: error: expected '(' for function-style cast or type construction
   27 |         return buffer_view<CharT>{begin, end};
      |                ~~~~~~~~~~~~~~~~~~^
/opt/homebrew/include/boost/lexical_cast/detail/buffer_view.hpp:31:33: error: expected '(' for function-style cast or type construction
   31 |         return buffer_view<char>{
      |                ~~~~~~~~~~~~~~~~~^
/opt/homebrew/include/boost/lexical_cast/detail/buffer_view.hpp:38:33: error: expected '(' for function-style cast or type construction
   38 |         return buffer_view<char>{
      |                ~~~~~~~~~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
91 warnings and 20 errors generated.
make[2]: *** [lemon/CMakeFiles/lemon.dir/soplex.cc.o] Error 1
make[1]: *** [lemon/CMakeFiles/lemon.dir/all] Error 2
@stefanottili
Copy link
Author

Matt Liberty knew that lemon-graph can/should be built without soplex
'cmake -DLEMON_ENABLE_SOPLEX=FALSE -B build .'

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

No branches or pull requests

1 participant