Mac develop build failing, OggVorbis issue

I decided to try the develop version today. Previously, I was using the release of 6.1.2.

It will not build. There are many errors related to OggVorbis, JUCE_BEGIN_NO_SANITIZE, etc.

I am using Mojave, Xcode 10.3. Just testing a simple default JUCE Audio App:

In file included from /Users/stephen/Documents/JUCE/TestAudioApplication/JuceLibraryCode/include_juce_audio_formats.mm:9:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_audio_formats/juce_audio_formats.mm:26:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_audio_formats/juce_audio_formats.cpp:67:
/Users/stephen/Development/JUCE-dev clean/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:53:2: error: expected unqualified-id
 JUCE_BEGIN_NO_SANITIZE ("undefined")
 ^
In file included from /Users/stephen/Documents/JUCE/TestAudioApplication/JuceLibraryCode/include_juce_audio_formats.mm:9:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_audio_formats/juce_audio_formats.mm:26:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_audio_formats/juce_audio_formats.cpp:39:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_audio_formats/juce_audio_formats.h:57:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_audio_basics/juce_audio_basics.h:54:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_core/juce_core.h:204:
In file included from /Users/stephen/Development/JUCE-dev clean/modules/juce_core/system/juce_StandardHeader.h:70:
/Users/stephen/Development/JUCE-dev clean/modules/juce_core/system/juce_CompilerWarnings.h:214:9: note: expanded from macro 'JUCE_BEGIN_NO_SANITIZE'
        _Pragma(JUCE_TO_STRING(clang attribute push(__attribute__((no_sanitize(warnings))), apply_to=function)))
        ^

I’m sorry for reposting this under a different subject, but I’d really like to try the develop and see if it fixes some issues I’ve been having with focus, accessibility etc.

Thanks for reporting, this is on my radar. In the meantime, you may be able to work around this issue by adjusting juce_CompilerWarnings.h:203 like so:

    #define JUCE_SANITIZER_ATTRIBUTE_MINIMUM_CLANG_VERSION 11
1 Like

Thanks! That worked for now.