Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
dorie
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • dorie
  • dorie
  • Issues
  • #112

Closed
Open
Opened Oct 09, 2018 by Lukas Riedel@lriedelOwner3 of 3 tasks completed3/3 tasks

DUNE usage of std::optional incompatible to Apple Clang

dune-funcions and downstream modules won't compile with Apple Clang v10.

Current status

  • Included warning in README.md: !113 (merged).

Summary

Apple Clang v10 introduces an implementation for std::optional. DUNE uses its own fall-back implementation in dune-common if the compiler does not support this feature. This was the case until now for Apple Clang. Now the compiler ships with its own implementation, but it is incompatible to the usage of std::optional<Geometry> in dune-functions.

Steps to reproduce

Try to compile DORiE and its DUNE dependencies with Apple Clang 10.

What is the current bug behaviour?

dune-functions, dune-pdelab, and DORiE won't build.

What is the expected correct behaviour?

Everything compiles.

Relevant logs

Build log for dune-functions: log.txt

Reported issues

This issue has been reported to DUNE at

  • dune/dune-common#130
  • staging/dune-functions#41

Ideas how to fix this?

Use CMake flag -DDUNE_HAVE_CXX_OPTIONAL=OFF to disable the check for std::optional for now.

Edited Nov 16, 2018 by Lukas Riedel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dorie/dorie#112