Opened 16 months ago

Closed 3 days ago

#66681 closed defect (fixed)

jack @1.9.21: error: static_assert failed "fCounter must be aligned within JackAtomicState"

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: sierra highsierra Cc:
Port: jack

Description

jack fails to build on Sierra and High Sierra only:

In file included from ../common/JackTransportEngine.cpp:24:
In file included from ../common/JackEngineControl.h:25:
In file included from ../common/JackFrameTimer.h:24:
../common/JackAtomicState.h:135:13: error: static_assert failed "fCounter must be aligned within JackAtomicState"
            static_assert(offsetof(JackAtomicState, fCounter) % sizeof(fCounter) == 0,
            ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/JackFrameTimer.h:90:9: note: in instantiation of member function 'Jack::JackAtomicState<Jack::JackTimer>::JackAtomicState' requested here
        JackFrameTimer(): fFirstWakeUp(true)
        ^
1 error generated.

In file included from ../common/JackEngineProfiling.cpp:21:
In file included from ../common/JackGraphManager.h:28:
../common/JackAtomicState.h:135:13: error: static_assert failed "fCounter must be aligned within JackAtomicState"
            static_assert(offsetof(JackAtomicState, fCounter) % sizeof(fCounter) == 0,
            ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/JackFrameTimer.h:90:9: note: in instantiation of member function 'Jack::JackAtomicState<Jack::JackTimer>::JackAtomicState' requested here
        JackFrameTimer(): fFirstWakeUp(true)
        ^
1 error generated.

In file included from ../common/JackDebugClient.cpp:21:
In file included from ../common/JackEngineControl.h:25:
In file included from ../common/JackFrameTimer.h:24:
../common/JackAtomicState.h:135:13: error: static_assert failed "fCounter must be aligned within JackAtomicState"
            static_assert(offsetof(JackAtomicState, fCounter) % sizeof(fCounter) == 0,
            ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/JackFrameTimer.h:90:9: note: in instantiation of member function 'Jack::JackAtomicState<Jack::JackTimer>::JackAtomicState' requested here
        JackFrameTimer(): fFirstWakeUp(true)
        ^
1 error generated.

Upstream bug report: https://github.com/jackaudio/jack2/issues/905

Change History (2)

comment:1 Changed 3 days ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

comment:2 Changed 3 days ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 29d970c9d63b56be632cc0de240c32406e9dbe0f/macports-ports (master):

jack: blacklist clang 9.x; request cxx 2011 compiler

Fixes: #66681

Note: See TracTickets for help on using tickets.