<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 --- - clang -cc1 finds an <eof> parser at end of file"
href="http://llvm.org/bugs/show_bug.cgi?id=21239">21239</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang -cc1 finds an <eof> parser at end of file
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.0
</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=13184" name="attach_13184" title="/tmp/strftime-n1DAq9.i">attachment 13184</a> <a href="attachment.cgi?id=13184&action=edit" title="/tmp/strftime-n1DAq9.i">[details]</a></span>
/tmp/strftime-n1DAq9.i
When trying to build GNU Emacs 25.0.50 from bzr trunk, revno: 118066 from Mon
2014-10-06 20:19:10 -0700 (UTC+2), on PPC (PowerPC 7447A) Mac OS X 10.4.11,
Tiger, both Clang 2.9 and 3.0, as installed by Macports, fail to compile the
source file lib/strftime.c:
{{{
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 strftime.o -MD -MP
-MF .deps/strftime.Tpo -c -o strftime.o strftime.c
. ../src/config.h
.. ../src/conf_post.h
... /opt/local/libexec/llvm-3.0/bin/../lib/clang/3.0/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.0/bin/../lib/clang/3.0/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.0/bin/../lib/clang/3.0/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.0/bin/../lib/clang/3.0/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.0/bin/../lib/clang/3.0/include/stddef.h
. ./strftime.h
.. ./time.h
... /usr/include/time.h
.... /usr/include/machine/_limits.h
... /opt/local/libexec/llvm-3.0/bin/../lib/clang/3.0/include/stddef.h
. /usr/include/ctype.h
.. /usr/include/runetype.h
. ./time.h
. /opt/local/libexec/llvm-3.0/bin/../lib/clang/3.0/include/stddef.h
. ./stdlib.h
Stack dump:
0. Program arguments: /opt/local/libexec/llvm-3.0/bin/clang -cc1 -triple
powerpc-apple-darwin8.11.0 -S -disable-free -disable-llvm-verifier
-main-file-name strftime.c -pic-level 2 -mdisable-fp-elim
-target-linker-version 97.17 -H -coverage-file /tmp/strftime-y9DpRP.s
-resource-dir /opt/local/libexec/llvm-3.0/bin/../lib/clang/3.0 -dependency-file
.deps/strftime.Tpo -sys-header-deps -MP -MT strftime.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 -ferror-limit 19 -fmessage-length 123 -fobjc-fragile-abi
-fno-common -fdiagnostics-show-option -o /tmp/strftime-y9DpRP.s -x c strftime.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'strftime.c'.
4. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function
'@strftime_case_'
clang: error: unable to execute command: Bus error (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/strftime-n1DAq9.i
make[2]: *** [strftime.o] Error 254
make[1]: *** [all] Error 2
make: *** [lib] Error 2
}}}
In the next days I'll try to build Clang 3.1, 3.2, etc. Build succeeded with
GCC 4.2.</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>