Opened 6 years ago

Closed 6 years ago

#57523 closed defect (fixed)

ctlang: fatal error: 'mutex' file not found

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ctlang openexr

Description

ctlang fails to build on libstdc++ systems:

/opt/local/include/OpenEXR/IlmThreadMutex.h:84:13: fatal error: 'mutex' file not found
#   include <mutex>
            ^
1 error generated.

mutex is C++11... openexr uses the cxx11 1.1 portgroup and imposes a further requirement of C++14, but ctlang doesn't. I wonder if everything that uses openexr now needs to use that portgroup and impose the C++14 requirement as well.

Change History (2)

comment:1 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I do not believe that everything that uses openexr requires C++11.
I believe it must be taken on a case by case basis depending on which feature of OpenEXR it uses.

comment:2 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In d2afc9fc9a5f98d71aaaa9b5be3931b0a344f259/macports-ports (master):

ctlang: require C++11 due to ilmbase dependency

Fixes #57523

No revbump because port either builds correctly or not at all.

Note: See TracTickets for help on using tickets.