Mavericks Build Error with GCC 4.8.3


#1

Hi, I am getting a strange build error on OS X 10.9 (Mavericks) when trying to compile JUCE using GCC 4.8.3. I can usually figure these out, but this one has been especially tricky for some reason. Any advice or suggestions would be much appreicated. =)

juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr
objc_super s = { self, [SuperclassType class] };

Full error below:

Building CXX object CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_audio_processors/juce_audio_processors.mm.o /usr/local/opt/gcc48/bin/g++-4.8 -DNDEBUG -Dopenshot_audio_EXPORTS -std=c++11 -flax-vector-conversions -fPIC -I/tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode -o CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_audio_processors/juce_audio_processors.mm.o -c /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_audio_processors/juce_audio_processors.mm In file included from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_events/juce_events.cpp:80:0, from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_events/juce_events.mm:25: /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_events/../juce_core/native/juce_osx_ObjCHelpers.h: In static member function 'static objc_object* juce::ObjCClass<SuperclassType>::sendSuperclassMessage(objc_object*, SEL)': /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_events/../juce_core/native/juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr objc_super s = { self, [SuperclassType class] }; ^ /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_events/../juce_core/native/juce_osx_ObjCHelpers.h:145: confused by earlier errors, bailing out make[2]: *** [CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_events/juce_events.mm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:134:0, from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_graphics/juce_graphics.mm:25: /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_graphics/../juce_core/native/juce_osx_ObjCHelpers.h: In static member function 'static objc_object* juce::ObjCClass<SuperclassType>::sendSuperclassMessage(objc_object*, SEL)': /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_graphics/../juce_core/native/juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr objc_super s = { self, [SuperclassType class] }; ^ /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_graphics/../juce_core/native/juce_osx_ObjCHelpers.h:145: confused by earlier errors, bailing out make[2]: *** [CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_graphics/juce_graphics.mm.o] Error 1 In file included from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_audio_devices/juce_audio_devices.cpp:148:0, from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_audio_devices/juce_audio_devices.mm:25: /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_audio_devices/../juce_core/native/juce_osx_ObjCHelpers.h: In static member function 'static objc_object* juce::ObjCClass<SuperclassType>::sendSuperclassMessage(objc_object*, SEL)': /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_audio_devices/../juce_core/native/juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr objc_super s = { self, [SuperclassType class] }; ^ /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_audio_devices/../juce_core/native/juce_osx_ObjCHelpers.h:145: confused by earlier errors, bailing out make[2]: *** [CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_audio_devices/juce_audio_devices.mm.o] Error 1 In file included from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_core/juce_core.cpp:171:0, from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_core/juce_core.mm:29: /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h: In static member function 'static objc_object* juce::ObjCClass<SuperclassType>::sendSuperclassMessage(objc_object*, SEL)': /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr objc_super s = { self, [SuperclassType class] }; ^ /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h:145: confused by earlier errors, bailing out make[2]: *** [CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_core/juce_core.mm.o] Error 1 In file included from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_extra/juce_gui_extra.cpp:82:0, from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_extra/juce_gui_extra.mm:25: /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_extra/../juce_core/native/juce_osx_ObjCHelpers.h: In static member function 'static objc_object* juce::ObjCClass<SuperclassType>::sendSuperclassMessage(objc_object*, SEL)': /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_extra/../juce_core/native/juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr objc_super s = { self, [SuperclassType class] }; ^ /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_extra/../juce_core/native/juce_osx_ObjCHelpers.h:145: confused by earlier errors, bailing out make[2]: *** [CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_gui_extra/juce_gui_extra.mm.o] Error 1 In file included from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:256:0, from /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.mm:25: /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_basics/../juce_core/native/juce_osx_ObjCHelpers.h: In static member function 'static objc_object* juce::ObjCClass<SuperclassType>::sendSuperclassMessage(objc_object*, SEL)': /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_basics/../juce_core/native/juce_osx_ObjCHelpers.h:145:53: sorry, unimplemented: unexpected AST of kind message_send_expr objc_super s = { self, [SuperclassType class] }; ^ /tmp/libopenshot-audio-l9MN/libopenshot-audio-0.0.3/JuceLibraryCode/modules/juce_gui_basics/../juce_core/native/juce_osx_ObjCHelpers.h:145: confused by earlier errors, bailing out make[2]: *** [CMakeFiles/openshot-audio.dir/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.mm.o] Error 1 make[1]: *** [CMakeFiles/openshot-audio.dir/all] Error 2 make: *** [all] Error 2

By the way, this works fine on OS X 10.8.

Thanks!
-Jonathan


#2

Sorry, no idea!

Since Apple stopped supporting GCC I've not had any way to even test GCC on the OSX code, and the fact that the error message says "sorry, unimplemented" is a bad sign!

If you can find a way to re-phrase that statement so that GCC will accept it then I'll take a look, but I don't have any way of testing this myself.