[LLVMbugs] [Bug 2216] New: llvm-ld triggers bug in llc when used with -disable-opt

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Apr 10 02:20:00 PDT 2008


           Summary: llvm-ld triggers bug in llc when used with -disable-opt
           Product: tools
           Version: 2.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: llvm-ld
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: weigert.stefan at gmail.com
                CC: llvmbugs at cs.uiuc.edu

i want to compile mplayer with llvm. when i execute the following command:
llvm-ld -native -O0 --disable-opt --disable-internalize --disable-inlining -o
mplayer mplayer.o m_property.omp_fifo.o mp_msg.o mixer.o parser-mpcmd.o
subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o
get_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o
playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o
libvo/libvo.a libao2/libao2.a input/libinput.a vidix/libvidix.a
libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a
libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a
libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a
mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a
tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a
libass/libass.a osdep/libosdep.a -lXext -lX11 -lXv -lXinerama -lXxf86vm
-lXxf86dga -lGL -lggi -laa -lcaca -lcucul -lvga -lSDL -ldl -lartsc -lpthread
-lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -lesd -laudiofile -laudiofile
-ljack -lopenal -lfaac -lx264 -lmp3lame -L/usr/lib -L/usr/lib -L/usr/lib
-L/usr/lib -Xlinker=-z,noexecstack  -lposix -lposix4  -lncurses -lsmbclient
-lpng -lz -ljpeg -lungif -lasound   -lcdda_interface -lcdda_paranoia -lfreetype
-lz -lfontconfig  -L/usr/lib -lfribidi -lenca -lz -llzo2 -lmad -lspeex 
-ltheora -logg   -ldts -lmpcdec -ldv -lxvidcore -lm   -Xlinker=-export-dynamic
-llirc_client  -lm

i get the following output

llc: SelectionDAG.cpp:476: void llvm::SelectionDAG::DeleteNode(llvm::SDNode*):
Assertion `N->use_empty() && "Cannot delete a node that is not dead!"' failed.

if you want to test that yourself, get mplayer-1.0 rc2.
run "export CFLAGS="-emit-llvm -c"
run "./configure --cc=llvm-gcc --as=as --ar=llvm-ar --ranlib=llvm-ranlib
--disable-ssse3 --disable-sse --disable-sse2 --disable-mmx --disable-mmxext
--disable-fastmemcpy --disable-shm --disable-3dnow --disable-3dnowext
--disable-pthreads --disable-network --prefix=$HOME/workspace/ParExC/code/usr"
run "make"
it stops when trying to link mplayer

ignore that and execute the llvm-ld command from above

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list