llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.17k stars 12.03k forks source link

trunk miscompiles vlc on powerpc64 #19134

Closed llvmbot closed 9 years ago

llvmbot commented 10 years ago
Bugzilla Link 18760
Resolution WORKSFORME
Resolved on Dec 09, 2014 08:32
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

I tried clang r200862 and 3.3 release and they both miscompile vlc. One of vlcs build utilities crashes during the build:

make[4]: Entering directory `/usr/home/rdivacky/vlc-workdir/usr/ports/multimedia/vlc/work/vlc-2.1.2/bin' GEN ../modules/plugins.dat gmake[4]: *** [../modules/plugins.dat] Segmentation fault (core dumped)

the vlc used is 2.1.2 from http://download.videolan.org/pub/videolan/vlc/2.1.2/vlc-2.1.2.tar.xz, this is the configuration used:

./configure --enable-vlc --enable-avcodec --enable-avformat --enable-oss --enable-postproc --enable-sftp --enable-libgcrypt --disable-alsa --disable-dc1394 --disable-directfb --disable-projectm --disable-telx --disable-tremor --disable-udev --disable-update-check --enable-a52 --disable-aa --disable-libass --enable-bonjour --disable-caca --disable-dbus --disable-debug --disable-dirac --enable-dvdnav --enable-dvdread --enable-faad --disable-flac --disable-fluidsynth --disable-libfreerdp --disable-fribidi --disable-gme --disable-gnomevfs --enable-gnutls --disable-goom --enable-httpd --disable-jack --disable-bluray --disable-sftp --disable-lirc --enable-live555 --enable-mad --with-mad=/usr/local --enable-mkv --disable-mod --enable-libmpeg2 --disable-mtp --disable-mpc --disable-ncurses --enable-nls --disable-notify --disable-optimizations --enable-opus --enable-png --disable-pulse --enable-qt --disable-realrtsp --disable-run-as-root --disable-smbclient --enable-samplerate --disable-schroedinger --disable-shout --disable-sid --enable-speex --enable-sout --enable-taglib --enable-theora --enable-twolame --disable-upnp --disable-libva --enable-vcd --enable-libcddb --enable-vorbis --enable-x264 --disable-zvbi --disable-lua --enable-ogg --enable-kate --enable-sdl --enable-sdl-image --enable-skins2 --enable-libtar --disable-svg --enable-v4l2 --with-x --enable-glx --enable-xcb --enable-xvideo --with-qt-includes=/usr/local/include/qt4 --with-qt-libraries=/usr/local/lib/qt4 --with-extra-includes=/usr/local/include --with-extra-libs=/usr/local/lib --enable-altivec --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=powerpc64-portbld-freebsd11.0

hfinkel commented 9 years ago

Your configure command implied the availability of many libraries I don't have on my ppc64 development system, and I suspect it would take me many hours just to install them.

I was able to build with r223729:

./configure --enable-vlc --enable-altivec CC=${HOME}/build/ppc64/llvm/Release+Asserts/bin/clang CXX=${HOME}/build/ppc64/llvm/Release+Asserts/bin/clang++ --disable-lua --disable-mad --disable-avcodec --disable-swscale --disable-a52 --disable-xcb --disable-alsa --disable-libgcrypt

And, with this, the 'GEN ../modules/plugins.dat' stage completes without error. As such, I'm going to assume this has now been fixed (I'm assuming that whatever bug was causing the generation of the plugins.dat file to crash is not particularly sensitive to the exact plugins enabled). If not, please help cut down the number of configure dependencies and re-open this.

llvmbot commented 10 years ago

Assigning to Hal.

llvmbot commented 10 years ago

assigned to @hfinkel