[LLVMbugs] [Bug 21249] New: "Ptr must be a pointer to Val type!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Oct 11 02:36:25 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21249

            Bug ID: 21249
           Summary: "Ptr must be a pointer to Val type!"
           Product: clang
           Version: 3.2
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Peter_Dyballa at Freenet.DE
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13187
  --> http://llvm.org/bugs/attachment.cgi?id=13187&action=edit
/tmp/close-stream-i2oCKW.c

While trying to build GNU Emacs 25.0.50 Clang 3.2 fails on PPC (PowerPC 7447A)
Tiger, Mac OS X 10.4.11, here:

{{{
clang -DHAVE_CONFIG_H -I. -I../lib -I../src -I../src       -Wa,-v -H -pipe
-fPIC -fno-common -Os -faltivec -mcpu=7450 -mtune=7450 -MT close-stream.o -MD
-MP -MF .deps/close-stream.Tpo -c -o close-stream.o close-stream.c
. ../src/config.h
.. ../src/conf_post.h
... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stdbool.h
... ./alloca.h
... ./string.h
.... /usr/include/string.h
..... /usr/include/_types.h
...... /usr/include/sys/_types.h
....... /usr/include/sys/cdefs.h
....... /usr/include/machine/_types.h
........ /usr/include/ppc/_types.h
.... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stddef.h
... ./stdlib.h
.... /usr/include/stdlib.h
..... /usr/include/sys/wait.h
...... /usr/include/sys/signal.h
....... /usr/include/sys/appleapiopts.h
....... /usr/include/machine/signal.h
........ /usr/include/ppc/signal.h
...... /usr/include/sys/resource.h
...... /usr/include/machine/endian.h
....... /usr/include/ppc/endian.h
........ /usr/include/sys/_endian.h
......... ./stdint.h
.......... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stdint.h
........... /usr/include/stdint.h
.......... ./sys/types.h
........... /usr/include/sys/types.h
............ /usr/include/machine/types.h
............. /usr/include/ppc/types.h
............ /usr/include/machine/endian.h
.......... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/limits.h
........... /usr/include/limits.h
............ /usr/include/machine/limits.h
............. /usr/include/ppc/limits.h
.............. /usr/include/ppc/_limits.h
............ /usr/include/sys/syslimits.h
.......... ./inttypes.h
........... /usr/include/inttypes.h
............ ./stdint.h
......... /usr/include/libkern/OSByteOrder.h
.......... /usr/include/libkern/ppc/OSByteOrder.h
.... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stddef.h
. ./close-stream.h
.. ./stdio.h
... /usr/include/stdio.h
... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stdarg.h
... /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stddef.h
... ./sys/types.h
. ./errno.h
.. /usr/include/errno.h
... /usr/include/sys/errno.h
. ./fpending.h
.. /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2/include/stddef.h
.. ./stdio.h
Instructions.cpp:1080: failed assertion `getOperand(0)->getType() ==
cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a
pointer to Val type!"'
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.2/bin/clang -cc1 -triple
powerpc-apple-darwin8.11.0 -S -disable-free -main-file-name close-stream.c
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno -target-cpu
7450 -target-linker-version 97.17 -H -coverage-file /tmp/close-stream-M5aXSs.s
-resource-dir /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2 -dependency-file
.deps/close-stream.Tpo -sys-header-deps -MP -MT close-stream.o -D HAVE_CONFIG_H
-I . -I ../lib -I ../src -I ../src -fmodule-cache-path
/var/tmp/clang-module-cache -Os -fno-dwarf2-cfi-asm -fno-dwarf-directory-asm
-fdebug-compilation-dir
/Volumes/Leopard/Users/pete/Quellen/Emacs_CVS/emacs-25.0.50/lib -ferror-limit
19 -fmessage-length 108 -faltivec -mstackrealign -fobjc-runtime=gcc -fno-common
-fdiagnostics-show-option -o /tmp/close-stream-M5aXSs.s -x c close-stream.c 
1.    <eof> parser at end of file
2.    close-stream.c:56:1: LLVM IR generation of declaration 'close_stream'
3.    close-stream.c:56:1: Generating code for declaration 'close_stream'
4.    close-stream.c:57:1: LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Trace/BPT trap (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (tags/RELEASE_32/final)
Target: powerpc-apple-darwin8.11.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/close-stream-i2oCKW.c
clang: note: diagnostic msg: /tmp/close-stream-i2oCKW.sh
clang: note: diagnostic msg: 

********************
}}}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141011/ffb18f4d/attachment.html>


More information about the llvm-bugs mailing list