[LLVMbugs] LLVM Bug in HDF5 Compile

Bill Wendling wendling at isanbard.org
Tue Oct 7 11:33:28 PDT 2003


Here's what I get when trying to compile HDF5 with LLVM (a copy
available at
ftp://hdf.ncsa.uiuc.edu/pub/outgoing/wendling/hdf5-llvm.tar.gz)

The original message:

[kubrick:src] /home/wendling/llvm/llvm-gcc/bin/gcc -march=i686 -std=c99
-pedantic -Wall -W -Wundef
-Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
-Wwrite-strings -Wconversion
-Wsign-compare -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-Wnested-externs -Winline -Wno-long-long -Wfloat-equal
-Wmissing-format-attribute
-Wpadded -g -fverbose-asm -I. -I../../hdf5/src -DH5_DEBUG_API
-DH5Z_DEBUG -DH5V_DEBUG -DH5T_DEBUG -DH5S_DEBUG -DH5P_DEBUG -DH5O_DEBUG
-DH5MM_DEBUG -DH5I_DEBUG -DH5HG_DEBUG -DH5G_DEBUG -DH5F_DEBUG
-DH5E_DEBUG -DH5D_DEBUG -UNDEBUG -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE
-D_BSD_SOURCE -c ../../hdf5/src/H5E.c -o H5E.o -save-temps
../../hdf5/src/H5E.c: In function `H5Epush':
 
../../hdf5/src/H5E.c:1484: warning: function might be possible
candidate for `printf' format attribute
../../hdf5/src/H5E.c: In function `H5E_clear_entries':

../../hdf5/src/H5E.c:1713: warning: cast discards qualifiers from
pointer target type
../../hdf5/src/H5E.c:1715: warning: cast discards qualifiers from
pointer target type
../../hdf5/src/H5E.c:1717: warning: cast discards qualifiers from
pointer target type
gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://llvm.cs.uiuc.edu> for instructions.

bugpoint command:

[kubrick:src] bugpoint H5E.s -lowersetjmp -funcresolve -raiseallocs
-globaldce -prune-eh -inline -instcombine -raise -tailduplicate
-simplifycfg -scalarrepl -tailcallelim -instcombine -reassociate
-instcombine -simplifycfg -preheaders -licm -load-vn -gcse -sccp
-instcombine -preheaders -indvars -adce -simplifycfg -deadtypeelim
-constmerge

bugpoint output:

*** Attempting to perform final cleanups: Success!
Emitted bytecode to 'bugpoint-reduced-simplified.bc'
 
*** You can reproduce the problem with: opt
bugpoint-reduced-simplified.bc -instcombine

The .bc file is attached.

Cheers!

-bw

-- 
||  "If wishes and buts were clusters of nuts, we'd all have a bowl of
||   granola!" - Mr. Jellyneck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugpoint-reduced-simplified.bc
Type: application/octet-stream
Size: 21984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20031007/15451f64/attachment.obj>


More information about the llvm-bugs mailing list