[LLVMbugs] [Bug 6867] New: Unexpected linkage decl
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Apr 18 05:03:12 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6867
Summary: Unexpected linkage decl
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sidorenko at gmail.com
CC: llvmbugs at cs.uiuc.edu
Hi,
I'm trying to build Etoile trunk (rev 6032)
(svn://svn.gna.org/svn/etoile/trunk/Etoile) using latest clang/llvm (rev
101709) on Fedora 12. Here is what happens:
clang version 1.5 (trunk 101709)
Target: i386-pc-linux-gnu
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-pc-linux-gnu -S -disable-free
-main-file-name LLVMCodeGen.mm -pic-level 2 -mdisable-fp-elim
-mconstructor-aliases -target-cpu pentium4 -v -g -resource-dir
/usr/local/lib/clang/1.5 -dependency-file
obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.d -MT
obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.o -MP -DGNU_RUNTIME_VERSION=1
-DGNU_RUNTIME_VERSION=1 -D_GNU_SOURCE -DGNU_RUNTIME_VERSION=1 -D_GNU_SOURCE
-DGNU_RUNTIME_VERSION=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -DGSWARN -DGSDIAGNOSE
-D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I/usr/lib/gcc/i686-redhat-linux/4.4.3/include -I/usr/local/include
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit
-I/home/andrey/projects/Etoile/Languages/LanguageKit/Headers
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers
-I./derived_src -I. -I/home/andrey/GNUstep/Library/Headers
-I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers -O2
-Wall -Wno-import -Woverloaded-virtual -w -fconstant-string-class
NSConstantString -ferror-limit 19 -fmessage-length 0 -fno-rtti -fgnu-runtime
-fdiagnostics-show-option -o /tmp/cc-JTlMvF.s -x objective-c++ LLVMCodeGen.mm
clang -cc1 version 1.5 based upon llvm 2.8svn hosted on i386-pc-linux-gnu
ignoring nonexistent directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/Headers"
ignoring nonexistent directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers"
ignoring nonexistent directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers"
ignoring nonexistent directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers"
ignoring nonexistent directory "/home/andrey/GNUstep/Library/Headers"
ignoring nonexistent directory "/usr/include/c++/4.4.3/x86_64-pc-linux-gnu/32"
ignoring nonexistent directory "/usr/include/c++/4.4.3/i686-pc-linux-gnu/"
ignoring nonexistent directory "/usr/include/c++/4.4"
ignoring nonexistent directory "/usr/include/c++/4.4/x86_64-linux-gnu/32"
ignoring nonexistent directory "/usr/include/c++/4.4/backward"
ignoring nonexistent directory "/usr/include/c++/4.4"
ignoring nonexistent directory "/usr/include/c++/4.4/i486-linux-gnu/64"
ignoring nonexistent directory "/usr/include/c++/4.4/backward"
ignoring nonexistent directory "/usr/include/c++/4.1.3"
ignoring nonexistent directory "/usr/include/c++/4.1.3/i486-linux-gnu/"
ignoring nonexistent directory "/usr/include/c++/4.1.3/backward"
ignoring nonexistent directory "/usr/include/c++/4.3.3"
ignoring nonexistent directory "/usr/include/c++/4.3.3/x86_64-linux-gnu/32"
ignoring nonexistent directory "/usr/include/c++/4.3.3/backward"
ignoring nonexistent directory "/usr/include/c++/4.4.1"
ignoring nonexistent directory "/usr/include/c++/4.4.1/x86_64-linux-gnu/32"
ignoring nonexistent directory "/usr/include/c++/4.4.1/backward"
ignoring nonexistent directory "/usr/include/c++/4.1.2"
ignoring nonexistent directory "/usr/include/c++/4.1.2/i386-redhat-linux/"
ignoring nonexistent directory "/usr/include/c++/4.1.2/backward"
ignoring nonexistent directory "/usr/include/c++/4.3.0"
ignoring nonexistent directory "/usr/include/c++/4.3.0/i386-redhat-linux/"
ignoring nonexistent directory "/usr/include/c++/4.3.0/backward"
ignoring nonexistent directory "/usr/include/c++/4.3.2"
ignoring nonexistent directory "/usr/include/c++/4.3.2/i386-redhat-linux/"
ignoring nonexistent directory "/usr/include/c++/4.3.2/backward"
ignoring nonexistent directory "/usr/include/c++/4.3.2"
ignoring nonexistent directory "/usr/include/c++/4.3.2/x86_64-redhat-linux/32"
ignoring nonexistent directory "/usr/include/c++/4.3.2/backward"
ignoring nonexistent directory "/usr/include/c++/4.4.1"
ignoring nonexistent directory "/usr/include/c++/4.4.1/i586-redhat-linux/"
ignoring nonexistent directory "/usr/include/c++/4.4.1/backward"
ignoring nonexistent directory "/usr/include/c++/4.4.2"
ignoring nonexistent directory "/usr/include/c++/4.4.2/i686-redhat-linux/"
ignoring nonexistent directory "/usr/include/c++/4.4.2/backward"
ignoring nonexistent directory "/usr/include/c++/4.3"
ignoring nonexistent directory "/usr/include/c++/4.3/i586-suse-linux/"
ignoring nonexistent directory "/usr/include/c++/4.3/backward"
ignoring nonexistent directory "/usr/include/c++/4.3"
ignoring nonexistent directory "/usr/include/c++/4.3/x86_64-suse-linux/32"
ignoring nonexistent directory "/usr/include/c++/4.3/backward"
ignoring nonexistent directory "/usr/include/c++/4.4"
ignoring nonexistent directory "/usr/include/c++/4.4/i586-suse-linux/"
ignoring nonexistent directory "/usr/include/c++/4.4/backward"
ignoring nonexistent directory "/usr/include/c++/4.4"
ignoring nonexistent directory "/usr/include/c++/4.4/x86_64-suse-linux/"
ignoring nonexistent directory "/usr/include/c++/4.4/backward"
ignoring nonexistent directory "/usr/include/c++/4.3.1"
ignoring nonexistent directory "/usr/include/c++/4.3.1/i686-pc-linux-gnu/"
ignoring nonexistent directory "/usr/include/c++/4.3.1/backward"
ignoring nonexistent directory "/usr/include/c++/4.3.1"
ignoring nonexistent directory
"/usr/include/c++/4.3.1/x86_64-unknown-linux-gnu/"
ignoring nonexistent directory "/usr/include/c++/4.3.1/backward"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu/"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/backward"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4/i686-pc-linux-gnu/"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4/backward"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/i686-pc-linux-gnu/"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/backward"
ignoring nonexistent directory "/usr/include/c++/4.3"
ignoring nonexistent directory "/usr/include/c++/4.3/i486-pc-linux-gnu/"
ignoring nonexistent directory "/usr/include/c++/4.3/backward"
ignoring nonexistent directory "/usr/include/c++/4.3"
ignoring nonexistent directory "/usr/include/c++/4.3/i486-linux-gnu/"
ignoring nonexistent directory "/usr/include/c++/4.3/backward"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/i686-pc-linux-gnu/"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/backward"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/x86_64-pc-linux-gnu/"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/backward"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4/x86_64-pc-linux-gnu/32"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4/backward"
ignoring duplicate directory "/home/andrey/projects/Etoile/Build"
ignoring duplicate directory "/home/andrey/projects/Etoile/Build"
ignoring duplicate directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen"
ignoring duplicate directory "/home/andrey/projects/Etoile/Build"
ignoring duplicate directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen"
ignoring duplicate directory
"/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen"
ignoring duplicate directory "/usr/include/c++/4.4.3"
ignoring duplicate directory "/usr/include/c++/4.4.3/backward"
ignoring duplicate directory "/usr/include/c++/4.4.3"
ignoring duplicate directory "/usr/include/c++/4.4.3/backward"
ignoring duplicate directory "/usr/local/include"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/i686-redhat-linux/4.4.3/include
/home/andrey/projects/Etoile/Build
/home/andrey/projects/Etoile/Languages/LanguageKit
/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
./derived_src
/usr/GNUstep/Local/Library/Headers
/usr/GNUstep/System/Library/Headers
/usr/local/lib/clang/1.5/include
/usr/include/c++/4.4.3
/usr/include/c++/4.4.3/backward
/usr/include/c++/4.4.3/i686-redhat-linux
/usr/local/include
/usr/include
End of search list.
clang: Mangle.cpp:310: const clang::DeclContext* IgnoreLinkageSpecDecls(const
clang::DeclContext*): Assertion `cast<LinkageSpecDecl>(DC)->getLanguage() ==
LinkageSpecDecl::lang_cxx && "Unexpected linkage decl!"' failed.
0 clang 0x08fb04f2
1 clang 0x08fb03c3
2 0x00af1400 __kernel_sigreturn + 0
3 libc.so.6 0x0013c34a abort + 378
4 libc.so.6 0x00133bd8 __assert_fail + 248
5 clang 0x081b9d43
6 clang 0x081b9d99
7 clang 0x081bea14
8 clang 0x081be43e
9 clang 0x081baee3
10 clang 0x081bac28
11 clang 0x081ba032
12 clang 0x081b9b86
13 clang 0x081b9b18
14 clang 0x081bee7e
15 clang 0x0819e7c9
16 clang 0x0819e6f5
17 clang 0x081a021d
18 clang 0x081a3bad
19 clang 0x0819d3b6
20 clang 0x0805eaf1
21 clang 0x084474a6
22 clang 0x08448ed3
23 clang 0x082b600b
24 clang 0x086498ec
25 clang 0x082b45e2
26 clang 0x0807975c
27 clang 0x080793cd
28 clang 0x08064afd
29 clang 0x0804df69
30 clang 0x08052ded main + 232
31 libc.so.6 0x00126bb6 __libc_start_main + 230
32 clang 0x0804cb31
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -S
-disable-free -main-file-name LLVMCodeGen.mm -pic-level 2 -mdisable-fp-elim
-mconstructor-aliases -target-cpu pentium4 -v -g -resource-dir
/usr/local/lib/clang/1.5 -dependency-file
obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.d -MT
obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.o -MP -DGNU_RUNTIME_VERSION=1
-DGNU_RUNTIME_VERSION=1 -D_GNU_SOURCE -DGNU_RUNTIME_VERSION=1 -D_GNU_SOURCE
-DGNU_RUNTIME_VERSION=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -DGSWARN -DGSDIAGNOSE
-D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I/usr/lib/gcc/i686-redhat-linux/4.4.3/include -I/usr/local/include
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit
-I/home/andrey/projects/Etoile/Languages/LanguageKit/Headers
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers
-I/home/andrey/projects/Etoile/Build
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen
-I/home/andrey/projects/Etoile/Languages/LanguageKit/CodeGen/Headers
-I./derived_src -I. -I/home/andrey/GNUstep/Library/Headers
-I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers -O2
-Wall -Wno-import -Woverloaded-virtual -w -fconstant-string-class
NSConstantString -ferror-limit 19 -fmessage-length 0 -fno-rtti -fgnu-runtime
-fdiagnostics-show-option -o /tmp/cc-JTlMvF.s -x objective-c++ LLVMCodeGen.mm
1. <eof> parser at end of file
2. /usr/include/c++/4.4.3/bits/basic_string.h:1624:7: instantiating function
definition 'std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::data'
3. /usr/include/c++/4.4.3/bits/basic_string.h:1624:7: LLVM IR generation of
declaration 'std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::data'
4. /usr/include/c++/4.4.3/bits/basic_string.h:1624:7: Mangling declaration
'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::data'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
make[5]: *** [obj/LanguageKitCodeGen.obj/LLVMCodeGen.mm.o] Error 250
make[4]: *** [internal-framework-run-compile-submake] Error 2
make[3]: *** [LanguageKitCodeGen.all.framework.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2
--
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