News:

--

Main Menu

r7850 - Is anyone compiling with gcc-4.7?

Started by nibbles, April 07, 2012, 11:51:10 PM

Previous topic - Next topic

nibbles

I'm curious if anyone is able to compile r7850 with gcc-4.7?  I'm getting a segfault 11 in the compiler on OSX here:

[ 23%] Building CXX object ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/ADM_infoExtractorH264.cpp.o
cd /tmp/homebrew-avidemux3-2.6-9nbm/buildCor/ADM_coreUtils/src && /usr/local/bin/g++   -DADM_coreUtils6_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pipe -march=core2 -msse4 -O2 -fmessage-length=0 -ggdb3 -fPIC -I/tmp/homebrew-avidemux3-2.6-9nbm/buildCor/config -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_core/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreAudioFilter/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreAudioParser/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreAudio/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreAudioDevice/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreAudioEncoder/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreDemuxer/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreDemuxerMpeg/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreImage/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreMuxer/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreScript/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreUI/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreUtils/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreVideoEncoder/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreVideoFilter/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreVideoCodec/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreImageLoader/include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/../avidemux_core/ADM_coreJobs/include -I/tmp/homebrew-avidemux3-2.6-9nbm/buildCor/ffmpeg/source -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/ADM_coreUtils/src/../include -I/tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/ADM_coreUtils/src/Source    -o CMakeFiles/ADM_coreUtils6.dir/ADM_infoExtractorH264.cpp.o -c /tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/ADM_coreUtils/src/ADM_infoExtractorH264.cpp
In file included from /tmp/homebrew-avidemux3-2.6-9nbm/buildCor/ffmpeg/source/libavcodec/parser.h:26:0,
                 from /tmp/homebrew-avidemux3-2.6-9nbm/avidemux_core/ADM_coreUtils/src/ADM_infoExtractorH264.cpp:19:
/tmp/homebrew-avidemux3-2.6-9nbm/buildCor/ffmpeg/source/libavcodec/avcodec.h:532:1: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/ADM_infoExtractorH264.cpp.o] Error 1
make[1]: *** [ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/all] Error 2
make: *** [all] Error 2



It doesn't seem to like the attribute_deprecated enum:

#if FF_API_FLAC_GLOBAL_OPTS
/**
* LPC analysis type
*/
attribute_deprecated enum AVLPCType {
    AV_LPC_TYPE_DEFAULT     = -1, ///< use the codec default LPC type
    AV_LPC_TYPE_NONE        =  0, ///< do not use LPC prediction or use all zero coefficients
    AV_LPC_TYPE_FIXED       =  1, ///< fixed LPC coefficients
    AV_LPC_TYPE_LEVINSON    =  2, ///< Levinson-Durbin recursion
    AV_LPC_TYPE_CHOLESKY    =  3, ///< Cholesky factorization
    AV_LPC_TYPE_NB              , ///< Not part of ABI
};
#endif    // <-- line 532

Jan Gruuthuse

c++11 features? Sorry ppa:ubuntu-toolchain-r/test is only for ubuntu 12.04. Ubuntu 11.10, still on 4.6. Seems to be issues with debian and ubuntu restructer(ed/ing) for multi arch? Ass I understand.