JUCE build failure (juce_audio_formats issues)


#1

This is what i'm getting with the latest git repo and gcc-4.8 (gcc-4.6 same thing)

[r.kubiak@AMDC2543:~/devel/JUCE/extras/Demo/Builds/Linux]$ make -j4
Compiling Main.cpp
Compiling MainWindow.cpp
Compiling IntroScreen.cpp
Compiling AnimationDemo.cpp
Compiling AudioLatencyDemo.cpp
Compiling AudioPlaybackDemo.cpp
Compiling AudioRecordingDemo.cpp
Compiling AudioSettingsDemo.cpp
Compiling AudioSynthesiserDemo.cpp
Compiling Box2DDemo.cpp
Compiling CameraDemo.cpp
Compiling ChildProcessDemo.cpp
Compiling CodeEditorDemo.cpp
Compiling ComponentTransformsDemo.cpp
Compiling CryptographyDemo.cpp
Compiling DialogsDemo.cpp
Compiling FontsDemo.cpp
Compiling GraphicsDemo.cpp
Compiling ImagesDemo.cpp
Compiling JavaScript.cpp
Compiling KeyMappingsDemo.cpp
Compiling LiveConstantDemo.cpp
Compiling LookAndFeelDemo.cpp
Compiling MDIDemo.cpp
Compiling MidiDemo.cpp
Compiling MultithreadingDemo.cpp
Compiling MultiTouch.cpp
Compiling NetworkingDemo.cpp
Compiling OpenGLDemo.cpp
Compiling OpenGLDemo2D.cpp
Compiling PropertiesDemo.cpp
Compiling SystemInfoDemo.cpp
Compiling TimersAndEventsDemo.cpp
Compiling UnitTestsDemo.cpp
Compiling ValueTreesDemo.cpp
Compiling VideoDemo.cpp
Compiling WebBrowserDemo.cpp
Compiling WidgetsDemo.cpp
Compiling WindowsDemo.cpp
Compiling XMLandJSONDemo.cpp
Compiling BinaryData.cpp
Compiling juce_audio_basics.cpp
Compiling juce_audio_devices.cpp
Compiling juce_audio_formats.cpp
Compiling juce_audio_processors.cpp
In file included from ../../../../modules/juce_audio_formats/juce_audio_formats.cpp:114:0:
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp: In static member function ‘static juce::MemoryBlock juce::WavFileHelpers::AcidChunk::createFrom(const juce::StringPairArray&)’:
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp:543:90: error: cannot bind packed field ‘((juce::WavFileHelpers::AcidChunk*)acid)->juce::WavFileHelpers::AcidChunk::rootNote’ to ‘short unsigned int&’
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp:545:91: error: cannot bind packed field ‘((juce::WavFileHelpers::AcidChunk*)acid)->juce::WavFileHelpers::AcidChunk::numBeats’ to ‘unsigned int&’
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp:546:97: error: cannot bind packed field ‘((juce::WavFileHelpers::AcidChunk*)acid)->juce::WavFileHelpers::AcidChunk::meterDenominator’ to ‘short unsigned int&’
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp:547:95: error: cannot bind packed field ‘((juce::WavFileHelpers::AcidChunk*)acid)->juce::WavFileHelpers::AcidChunk::meterNumerator’ to ‘short unsigned int&’
make: *** [build/intermediate/Debug/juce_audio_formats_f04b043c.o] Error 1
make: *** Waiting for unfinished jobs....
gcc [r.kubiak@AMDC2543:~/devel/JUCE/extras/Demo/Builds/Linux]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.1-2ubuntu1~12.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~12.04)

Looks like some casts are at fault.


#2

WTF, GCC?

Thanks, I'll try to dumb it down enough for GCC to be able to cope..