[LLVMbugs] [Bug 21239] New: clang -cc1 finds an <eof> parser at end of file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 10 03:32:45 PDT 2014


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

            Bug ID: 21239
           Summary: clang -cc1 finds an <eof> parser at end of file
           Product: clang
           Version: 3.0
          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 13184
  --> http://llvm.org/bugs/attachment.cgi?id=13184&action=edit
/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
http://llvm.org/bugs/ 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.

-- 
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/20141010/bd488cf3/attachment.html>


More information about the llvm-bugs mailing list