<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - "Ptr must be a pointer to Val type!""
   href="http://llvm.org/bugs/show_bug.cgi?id=21249">21249</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"Ptr must be a pointer to Val type!"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Peter_Dyballa@Freenet.DE
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13187" name="attach_13187" title="/tmp/close-stream-i2oCKW.c">attachment 13187</a> <a href="attachment.cgi?id=13187&action=edit" title="/tmp/close-stream-i2oCKW.c">[details]</a></span>
/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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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: 

********************
}}}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>