The task should read "Update to CppMicroServices 3.x" which uses the recommended C++11 atomics :)

- Sascha


On 06/06/2017 01:15 PM, Dinkelacker, Stefan wrote:

Thank you, I created a task for this [1].

Best,
Stefan

[1] https://phabricator.mitk.org/T22929

*From:*Admin Uniapp [mailto:contactuni...@gmail.com]
*Sent:* Dienstag, 6. Juni 2017 13:07
*To:* Dinkelacker, Stefan
*Cc:* MITK
*Subject:* Re: [mitk-users] Deprecated functions on OSX

Hi Stefan,

Thanks for your reply. This is the example output from the compiler:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:203:5: error:

'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic>

      instead [-Werror,-Wdeprecated-declarations]

US_ATOMIC_INCREMENT(&m_Counter);

    ^

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55: note: expanded from

      macro 'US_ATOMIC_INCREMENT'

#define US_ATOMIC_INCREMENT(x) IntType n = OSAtomicIncrement64Barrier(x)

                ^

/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here

int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );

        ^

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:209:5: error:

'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic>

      instead [-Werror,-Wdeprecated-declarations]

    US_ATOMIC_INCREMENT(&lval);

    ^

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:90:55: note: expanded from

      macro 'US_ATOMIC_INCREMENT'

#define US_ATOMIC_INCREMENT(x) IntType n = OSAtomicIncrement64Barrier(x)

                ^

/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here

int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );

        ^

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:215:5: error:

'OSAtomicDecrement64Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_sub() from <atomic>

      instead [-Werror,-Wdeprecated-declarations]

US_ATOMIC_DECREMENT(&m_Counter);

    ^

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:91:55: note: expanded from

      macro 'US_ATOMIC_DECREMENT'

#define US_ATOMIC_DECREMENT(x) IntType n = OSAtomicDecrement64Barrier(x)

                ^

/usr/include/libkern/OSAtomicDeprecated.h:288:9: note: 'OSAtomicDecrement64Barrier' has been explicitly marked deprecated here

int64_t OSAtomicDecrement64Barrier( volatile OSAtomic_int64_aligned64_t *__theValue );

        ^

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usSharedLibrary.cpp:22:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedLibrary.h:26:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/include/usSharedData.h:32:

In file included from /Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usAtomicInt_p.h:27:

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:227:5: error:

'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in macOS 10.12 - Use

std::atomic_compare_exchange_strong() from <atomic> instead [-Werror,-Wdeprecated-declarations]

    US_ATOMIC_ASSIGN(&lval, m_Counter);

    ^

/Users/dxr/Install/MITK/MITK-2016.03/Modules/CppMicroServices/core/src/util/usThreads_p.h:92:43: note: expanded from

      macro 'US_ATOMIC_ASSIGN'

#define US_ATOMIC_ASSIGN(l, v) OSAtomicCompareAndSwap64Barrier(*l, v, l)

    ^

/usr/include/libkern/OSAtomicDeprecated.h:645:9: note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated

      here

bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue,

        ^

On Tue, Jun 6, 2017 at 8:56 AM, Dinkelacker, Stefan <s.dinkelac...@dkfz-heidelberg.de <mailto:s.dinkelac...@dkfz-heidelberg.de>> wrote:

Hi,

what are the deprecated functions and what are the recommended replacements for them? Are the replacements already available in our set of currently supported versions of OSX?

We cannot yet officially recommend the latest version of MITK for OSX, as this version based on the minimum Qt version 5.6 has rendering issues when anything related to QWebEngine (help pages and statistics view) is on the screen at the same time as the render windows.

Best,

Stefan

------------------------------------------------------------------------

*Von:*Admin Uniapp <contactuni...@gmail.com <mailto:contactuni...@gmail.com>>
*Gesendet:* Montag, 5. Juni 2017 14:28
*An:* MITK
*Betreff:* [mitk-users] Deprecated functions on OSX

Hi all,

During my last attempts at building MITK 2016.3 from source on the latest version of OSX Sierra 10.12.5, the compiler complains about deprecated functions at usThreads_p.h. I got around this by setting the CXX_Flags to ignore deprecated warnings but is this something to consider more seriously?

My understanding is that the newer version of MITK is not yet recommended for OSX.

Many thanks

Dora



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to