<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 --- - Attribute 'builtin' can only be used in a call to a function with the 'nobuiltin' attribute."
href="http://llvm.org/bugs/show_bug.cgi?id=16715">16715</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Attribute 'builtin' can only be used in a call to a function with the 'nobuiltin' attribute.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</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>I get the error below when trying to build a piece of Chromium using a recent
Clang.
I got this when trying Clang built from r187031, but also on ToT (trunk 187239)
(llvm/trunk 187238).
Source attached.
Attribute 'builtin' can only be used in a call to a function with the
'nobuiltin' attribute.
%call = call noalias i8* @_Znam(i64 16384) #11, !dbg !5105
Attribute 'builtin' can only be used in a call to a function with the
'nobuiltin' attribute.
call void @_ZdaPv(i8* %4) #13, !dbg !5110
Broken module found, compilation aborted!
0 clang 0x00000000020c7fc5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 clang 0x00000000020c8413
2 libpthread.so.0 0x00007f8237208cb0
3 libc.so.6 0x00007f8236252425 gsignal + 53
4 libc.so.6 0x00007f8236255b8b abort + 379
5 clang 0x000000000207d693
6 clang 0x000000000207d346
7 clang 0x0000000002064cda
llvm::FPPassManager::runOnFunction(llvm::Function&) + 346
8 clang 0x000000000206447e
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 238
9 clang 0x000000000206431d
llvm::FunctionPassManager::run(llvm::Function&) + 93
10 clang 0x00000000008323d5
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5797
11 clang 0x000000000082ff56
12 clang 0x00000000006c3294
clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 68
13 clang 0x00000000009955f3 clang::ParseAST(clang::Sema&, bool, bool)
+ 531
14 clang 0x000000000082f362 clang::CodeGenAction::ExecuteAction() +
514
15 clang 0x00000000006ac300 clang::FrontendAction::Execute() + 112
16 clang 0x0000000000689afd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
17 clang 0x00000000006703ec
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2940
18 clang 0x000000000066860f cc1_main(char const**, char const**, char
const*, void*) + 703
19 clang 0x000000000066e98e main + 8862
20 libc.so.6 0x00007f823623d76d __libc_start_main + 237
21 clang 0x0000000000668291
Stack dump:
0. Program arguments: /work/llvm/build.release/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name debugallocation_shim.cc -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22 -g -D ANGLE_DX11 -D _FILE_OFFSET_BITS=64 -D CHROMIUM_BUILD -D
COMPONENT_BUILD -D USE_DEFAULT_RENDER_THEME=1 -D USE_LIBJPEG_TURBO=1 -D
USE_NSS=1 -D USE_X11=1 -D ENABLE_ONE_CLICK_SIGNIN -D
GTK_DISABLE_SINGLE_INCLUDES=1 -D ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D
ENABLE_PEPPER_CDMS -D ENABLE_CONFIGURATION_POLICY -D ENABLE_INPUT_SPEECH -D
ENABLE_NOTIFICATIONS -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D
ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D ENABLE_PLUGIN_INSTALLATION=1 -D
ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D
ENABLE_BACKGROUND=1 -D ENABLE_AUTOMATION=1 -D ENABLE_GOOGLE_NOW=1 -D
ENABLE_PRINTING=1 -D ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D
ENABLE_MANAGED_USERS=1 -D ENABLE_MDNS=1 -D NO_HEAP_CHECK -D
DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D _DEBUG -D
TCMALLOC_FOR_DEBUGALLOCATION -O0 -Werror -Wno-unused-parameter
-Wno-missing-field-initializers -Wheader-hygiene -Wno-char-subscripts
-Wno-unused-function -Wno-covered-switch-default -Wstring-conversion
-Wno-c++11-narrowing -Wno-reserved-user-defined-literal
-Wno-deprecated-register -Wno-sign-compare -Wno-unused-result -Wno-format
-Wno-unused-result -Wno-deprecated -std=gnu++11 -ferror-limit 19
-fmessage-length 0 -fvisibility-inlines-hidden -pthread -stack-protector 1
-stack-protector-buffer-size 4 -mstackrealign -fno-rtti -fno-threadsafe-statics
-fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -load
/usr/local/google/work/chromium/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -x c++ debugallocation_shim-a4db2e.cpp
1. <eof> parser at end of file
2. Per-function optimization
3. Running pass 'Module Verifier' on function '@_ZL10PrintStatsi'</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>