[LLVMbugs] [Bug 8819] New: Regression (r121857): clang doesn't terminate when trying to compile a file
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Dec 19 12:15:10 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8819
Summary: Regression (r121857): clang doesn't terminate when
trying to compile a file
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
When building chrome, clang doesn't terminate when trying to compile a file. I
bisected this, it started in r121857.
It's somewhat hard to produce a reduced test case, because when I create a
preprocessed file with -E, it is compiled just fine:
$ time /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -x c++ -arch
i386 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -O0
-Werror -Wnewline-eof -DCHROMIUM_BUILD -DENABLE_REMOTING=1 -DENABLE_GPU=1
-DLIBXML_STATIC -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -D_DEBUG
-isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden
-fvisibility-inlines-hidden -fno-threadsafe-statics -mmacosx-version-min=10.5
-gdwarf-2 -Wall -Wendif-labels -Wextra -Wno-unused-parameter
-Wno-missing-field-initializers -F/Users/thakis/src/chrome-git/src/clang/Debug
-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-I/Users/thakis/src/chrome-git/src/clang/Debug/include
-I../third_party/icu/public/common -I../third_party/icu/public/i18n -I../gpu
-I.. -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/chrome
-I../third_party/mesa/MesaLib/include
-I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app
-I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app/app_resources
-I../skia/config -I../third_party/skia/include/config
-I../third_party/skia/include/core -I../third_party/skia/include/effects
-I../skia/ext -I../third_party/bzip2 -I../third_party/libxml/mac/include
-I../third_party/libxml/src/include -I../third_party/sqlite
-I../third_party/zlib -I../third_party/npapi -I../third_party/npapi/bindings
-I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources/i386
-I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources
-c /Users/thakis/src/chrome-git/src/chrome/common/render_messages.cc -o tmp.cc
-Eclang: warning: argument unused during compilation: '-c'
real 0m0.413s
user 0m0.202s
sys 0m0.186s
dhcp-172-19-253-91:chrome thakis$ time
/Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -x c++ -arch i386 -c
tmp.ccreal 0m8.251suser 0m7.799ssys 0m0.437s
But if I try to compile directly, clang hangs:
dhcp-172-19-253-91:chrome thakis$ time
/Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -x c++ -arch i386
-fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -O0 -Werror
-Wnewline-eof -DCHROMIUM_BUILD -DENABLE_REMOTING=1 -DENABLE_GPU=1
-DLIBXML_STATIC -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -D_DEBUG
-isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden
-fvisibility-inlines-hidden -fno-threadsafe-statics -mmacosx-version-min=10.5
-gdwarf-2 -Wall -Wendif-labels -Wextra -Wno-unused-parameter
-Wno-missing-field-initializers -F/Users/thakis/src/chrome-git/src/clang/Debug
-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-I/Users/thakis/src/chrome-git/src/clang/Debug/include
-I../third_party/icu/public/common -I../third_party/icu/public/i18n -I../gpu
-I.. -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/chrome
-I../third_party/mesa/MesaLib/include
-I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app
-I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app/app_resources
-I../skia/config -I../third_party/skia/include/config
-I../third_party/skia/include/core -I../third_party/skia/include/effects
-I../skia/ext -I../third_party/bzip2 -I../third_party/libxml/mac/include
-I../third_party/libxml/src/include -I../third_party/sqlite
-I../third_party/zlib -I../third_party/npapi -I../third_party/npapi/bindings
-I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources/i386
-I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources
-c /Users/thakis/src/chrome-git/src/chrome/common/render_messages.cc -o tmp.cc
^C
real 2m42.244s
user 0m0.004s
sys 0m0.010s
--
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