Thanks a lot for your help
--
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Duetto.
https://bugs.launchpad.net/bugs/1295695
Title:
Installation from 0.9.4.1 tarball fails on Mac OS X 10.9.2
Status in Duetto: C++ for the Web:
Fix Released
Bug description:
The duetto installation generated by running
$ sudo tar xvf duetto-macosx-0.9.4.1.tar.bz2 duetto
while `PWD = /opt` appears broken. When running the "Hello, World"
example I get:
~/Code/duetto% /opt/duetto/bin/clang++ -O3 -target duetto HelloClient.cpp -o
HelloClient.js
In file included from HelloClient.cpp:1:
In file included from /opt/duetto/include/client/duetto/client.h:24:
In file included from /opt/duetto/include/client/duetto/types.h:24:
In file included from /opt/duetto/include/c++/v1/utility:146:
In file included from /opt/duetto/include/c++/v1/__tuple:15:
In file included from /opt/duetto/include/c++/v1/cstddef:44:
/opt/duetto/bin/../lib/clang/3.4/include/stddef.h:34:26: error: variably
modified type
declaration not allowed at file scope
typedef __PTRDIFF_TYPE__ ptrdiff_t;
^
In file included from HelloClient.cpp:1:
In file included from /opt/duetto/include/client/duetto/client.h:24:
In file included from /opt/duetto/include/client/duetto/types.h:24:
In file included from /opt/duetto/include/c++/v1/utility:146:
In file included from /opt/duetto/include/c++/v1/__tuple:15:
/opt/duetto/include/c++/v1/cstddef:55:21: error: variably modified type
declaration not allowed
at file scope
typedef long double max_align_t;
^
In file included from HelloClient.cpp:1:
In file included from /opt/duetto/include/client/duetto/client.h:24:
In file included from /opt/duetto/include/client/duetto/types.h:24:
In file included from /opt/duetto/include/c++/v1/utility:146:
In file included from /opt/duetto/include/c++/v1/__tuple:16:
/opt/duetto/include/c++/v1/type_traits:152:16: error: non-type template
parameter of variably
modified type 'bool'
template <bool _Bp, class _If, class _Then>
^
/opt/duetto/include/c++/v1/type_traits:157:15: error: non-type template
parameter of variably
modified type 'bool'
template <bool, class _Tp = void> struct _LIBCPP_TYPE_VIS enable_if {};
^
/opt/duetto/include/c++/v1/type_traits:177:27: error: variably modified type
'bool' cannot be
used as a template argument
typedef integral_constant<bool, true> true_type;
^
/opt/duetto/include/c++/v1/type_traits:178:27: error: variably modified type
'bool' cannot be
used as a template argument
typedef integral_constant<bool, false> false_type;
^
/opt/duetto/include/c++/v1/type_traits:182:75: error: base specifier must
name a class
template <class _Tp> struct _LIBCPP_TYPE_VIS is_const : public
false_type {};
~~~~~~~^~~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:183:75: error: base specifier must
name a class
template <class _Tp> struct _LIBCPP_TYPE_VIS is_const<_Tp const> : public
true_type {};
~~~~~~~^~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:187:81: error: base specifier must
name a class
template <class _Tp> struct _LIBCPP_TYPE_VIS is_volatile :
public false_type {};
~~~~~~~^~~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:188:81: error: base specifier must
name a class
template <class _Tp> struct _LIBCPP_TYPE_VIS is_volatile<_Tp volatile> :
public true_type {};
~~~~~~~^~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:203:35: error: variably modified type
'typename
remove_const<_Tp>::type' cannot be used as a template argument
{typedef typename remove_volatile<typename remove_const<_Tp>::type>::type
type;};
^
/opt/duetto/include/c++/v1/type_traits:203:70: error: expected a qualified
name after 'typename'
{typedef typename remove_volatile<typename remove_const<_Tp>::type>::type
type;};
^
/opt/duetto/include/c++/v1/type_traits:203:74: error: expected ';' at end of
declaration list
{typedef typename remove_volatile<typename remove_const<_Tp>::type>::type
type;};
^
/opt/duetto/include/c++/v1/type_traits:207:54: error: base specifier must
name a class
template <class _Tp> struct __is_void : public false_type {};
~~~~~~~^~~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:208:54: error: base specifier must
name a class
template <> struct __is_void<void> : public true_type {};
~~~~~~~^~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:211:24: error: variably modified type
'typename remove_cv<_Tp>::type' cannot be used as a template argument
: public __is_void<typename remove_cv<_Tp>::type> {};
^
/opt/duetto/include/c++/v1/type_traits:215:61: error: base specifier must
name a class
template <class _Tp> struct ____is_nullptr_t : public false_type {};
~~~~~~~^~~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:216:66: error: base specifier must
name a class
template <> struct ____is_nullptr_t<nullptr_t> : public true_type {};
~~~~~~~^~~~~~~~~
/opt/duetto/include/c++/v1/type_traits:219:31: error: variably modified type
'typename remove_cv<_Tp>::type' cannot be used as a template argument
: public ____is_nullptr_t<typename remove_cv<_Tp>::type> {};
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
0 clang-3.4 0x000000010095c518
llvm::sys::PrintStackTrace(__sFILE*) + 40
1 clang-3.4 0x000000010095ca44 SignalHandler(int) + 532
2 libsystem_platform.dylib 0x00007fff89a855aa _sigtramp + 26
3 libsystem_platform.dylib 0x8002c12601c98c0d _sigtramp + 2015442557
4 clang-3.4 0x000000010096fabe
clang::ASTContext::getVariableArrayDecayedType(clang::QualType) const + 318
5 clang-3.4 0x000000010096e292
clang::ASTContext::getFunctionType(clang::QualType,
llvm::ArrayRef<clang::QualType>, clang::FunctionProtoType::ExtProtoInfo const&)
const + 610
6 clang-3.4 0x00000001010c471f
GetFullTypeForDeclarator((anonymous namespace)::TypeProcessingState&,
clang::QualType, clang::TypeSourceInfo*) + 8255
7 clang-3.4 0x00000001010c06fd
clang::Sema::GetTypeForDeclarator(clang::Declarator&, clang::Scope*) + 573
8 clang-3.4 0x0000000100eafc17
clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&,
llvm::MutableArrayRef<clang::TemplateParameterList*>) + 1431
9 clang-3.4 0x000000010103ac75
clang::Sema::ActOnStartOfFunctionTemplateDef(clang::Scope*,
llvm::MutableArrayRef<clang::TemplateParameterList*>, clang::Declarator&) + 53
10 clang-3.4 0x0000000100dff14e
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
1742
11 clang-3.4 0x0000000100df4409
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 3993
12 clang-3.4 0x0000000100df3136
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 854
13 clang-3.4 0x0000000100df2c3b
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 235
14 clang-3.4 0x0000000100d9efa7
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 535
15 clang-3.4 0x0000000100dfd846
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1350
16 clang-3.4 0x0000000100dafe87
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 551
17 clang-3.4 0x0000000100daf6dc
clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&,
clang::SourceLocation) + 4108
18 clang-3.4 0x0000000100d9ef7d
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 493
19 clang-3.4 0x0000000100dfd846
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1350
20 clang-3.4 0x0000000100dfd27e
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 318
21 clang-3.4 0x0000000100d93d66 clang::ParseAST(clang::Sema&,
bool, bool) + 438
22 clang-3.4 0x0000000100c274cf
clang::CodeGenAction::ExecuteAction() + 79
23 clang-3.4 0x0000000100d160b8
clang::FrontendAction::Execute() + 88
24 clang-3.4 0x0000000100cf2abd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 861
25 clang-3.4 0x000000010095f143
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3571
26 clang-3.4 0x0000000100007afc cc1_main(char const**, char
const**, char const*, void*) + 668
27 clang-3.4 0x0000000100006d0f main + 7839
28 clang-3.4 0x0000000100004e02 _start + 224
29 clang-3.4 0x0000000100004d21 start + 33
Stack dump:
0. Program arguments: /opt/duetto/bin/clang-3.4 -cc1 -triple
duetto--webbrowser -emit-llvm-bc -disable-free -disable-llvm-verifier
-main-file-name HelloClient.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -mconstructor-aliases -resource-dir
/opt/duetto/bin/../lib/clang/3.4 -internal-isystem /opt/duetto/include/c++/v1
-internal-isystem /opt/duetto/bin/../lib/clang/3.4/include
-internal-externc-isystem /opt/duetto/include -internal-externc-isystem
/opt/duetto/include/client -O3 -fdeprecated-macro -fno-dwarf-directory-asm
-fdebug-compilation-dir /Users/jnotarstefano/Code/duetto -ferror-limit 19
-fmessage-length 97 -mstackrealign -fno-rtti -fno-threadsafe-statics
-fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o /var/folders/yb/12ysnq_x2r76_f4zyfwnk6n80000gn/T/HelloClient-ee51bf.o -x c++
HelloClient.cpp
1. /opt/duetto/include/c++/v1/type_traits:1340:1: current parser token '{'
2. /opt/duetto/include/c++/v1/type_traits:150:1
<Spelling=/opt/duetto/include/c++/v1/__config:327:37>: parsing namespace 'std'
clang-3.4: error: unable to execute command: Segmentation fault: 11
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
Duetto 0.9.4.1-1 clang version 3.4 (based on LLVM 3.4svn)
Target: duetto--webbrowser
Thread model: posix
clang-3.4: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.4: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.4: note: diagnostic msg:
/var/folders/yb/12ysnq_x2r76_f4zyfwnk6n80000gn/T/HelloClient-8bed38.cpp
clang-3.4: note: diagnostic msg:
/var/folders/yb/12ysnq_x2r76_f4zyfwnk6n80000gn/T/HelloClient-8bed38.sh
clang-3.4: note: diagnostic msg:
********************
When built from source, duetto works as expected. Please let me know
which other details of my machine are you interested in.
To manage notifications about this bug go to:
https://bugs.launchpad.net/duetto/+bug/1295695/+subscriptions
--
Mailing list: https://launchpad.net/~leaningtech-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~leaningtech-dev
More help : https://help.launchpad.net/ListHelp