[LLVMbugs] [Bug 13218] New: Trying to build Emacs-24.1 with clang -O4 causes Clang to crash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 26 23:13:16 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13218
Bug #: 13218
Summary: Trying to build Emacs-24.1 with clang -O4 causes Clang
to crash
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: johnw at boostpro.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I'm using the current clang-3.1 release. I downloaded emacs-24.1 and
configured with:
$ ./configure --prefix=/usr/local/stow/emacs-release-macport-opt4 --with-mac
CC=clang CPPFLAGS=-I/opt/local/include CFLAGS=-O4 -fomit-frame-pointer
CXX=clang++ CXXFLAGS= LD=clang LDFLAGS=-O4 -fomit-frame-pointer
-L/opt/local/lib
Then typed "make". Here's what I get during the build:
clang -Wimplicit-function-declaration -Wold-style-definition
-Wdeclaration-after-statement -DHAVE_CONFIG_H -I. -I../src -I../lib
-I/Users/johnw/Products/emacs/release-macport-opt4/lib-src
-I/Users/johnw/Products/emacs/release-macport-opt4/lib-src/../src
-I/Users/johnw/Products/emacs/release-macport-opt4/lib-src/../lib -O4
-fomit-frame-pointer -L/opt/local/lib -I/opt/local/include -O4
-fomit-frame-pointer -DEMACS_NAME="\"GNU Emacs\"" \
-DVERSION="\"24.1\""
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c \
regex.o ../lib/libgnu.a -o etags
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:1285:15:
warning: enumeration value
'at_end' not handled in switch [-Wswitch]
switch (argbuffer[i].arg_type)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2795:16:
warning: 12 enumeration
values not handled in switch: 'st_C_objprot', 'st_C_objimpl',
'st_C_objend'... [-Wswitch]
switch (toktype)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2812:16:
warning: 13 enumeration
values not handled in switch: 'st_none', 'st_C_objprot',
'st_C_objimpl'... [-Wswitch]
switch (toktype)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2782:12:
warning: enumeration
values 'tinbody' and 'tignore' not handled in switch [-Wswitch]
switch (typdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2822:12:
warning: 11 enumeration
values not handled in switch: 'st_none', 'st_C_objprot',
'st_C_objimpl'... [-Wswitch]
switch (toktype)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2867:16:
warning: 14 enumeration
values not handled in switch: 'st_none', 'st_C_objend',
'st_C_gnumacro'... [-Wswitch]
switch (toktype)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2864:12:
warning: enumeration
values 'otagseen', 'ocatseen', and 'omethodtag' not handled in switch
[-Wswitch]
switch (objdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2971:13:
warning: 4 enumeration
values not handled in switch: 'tkeyseen', 'tinbody', 'tend'... [-Wswitch]
switch (typdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2962:16:
warning: 7 enumeration
values not handled in switch: 'fdefunname', 'foperator', 'fstartlist'...
[-Wswitch]
switch (fvdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:2934:12:
warning: 12 enumeration
values not handled in switch: 'st_C_objprot', 'st_C_objimpl',
'st_C_objend'... [-Wswitch]
switch (toktype)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3459:13:
warning: 8 enumeration
values not handled in switch: 'fvnone', 'fdefunkey', 'fdefunname'...
[-Wswitch]
switch (fvdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3456:16:
warning: enumeration
values 'ddefineseen' and 'dignorerest' not handled in switch [-Wswitch]
switch (definedef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3510:12:
warning: 9 enumeration
values not handled in switch: 'onone', 'oprotocol', 'oimplementation'...
[-Wswitch]
switch (objdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3592:12:
warning: 10 enumeration
values not handled in switch: 'onone', 'oprotocol', 'oimplementation'...
[-Wswitch]
switch (objdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3643:12:
warning: enumeration
values 'tkeyseen' and 'tignore' not handled in switch [-Wswitch]
switch (typdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3681:12:
warning: 7 enumeration
values not handled in switch: 'fvnone', 'fdefunkey', 'fdefunname'...
[-Wswitch]
switch (fvdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3721:16:
warning: 8 enumeration
values not handled in switch: 'fvnone', 'fdefunkey', 'fdefunname'...
[-Wswitch]
switch (fvdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3749:12:
warning: 7 enumeration
values not handled in switch: 'fdefunkey', 'fdefunname', 'foperator'...
[-Wswitch]
switch (fvdef)
^
/Users/johnw/Products/emacs/release-macport-opt4/lib-src/etags.c:3777:12:
warning: enumeration value
'snone' not handled in switch [-Wswitch]
switch (structdef)
^
19 warnings generated.
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list