leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00043
[Bug 1247336] Re: Unable to include iostream, fstream or sstream
I don't think that pretending would be actually helpful for the user.
Even if it would make it easier to build a project using duetto, then
the user would need to track errors at runtime. On the other hand if
fstream is completely not supported the user will be notified by the
compiler on each use. I think that the point should not be to build a
C++ project without modification, but building a C++ project that
actually works with minimal modifications.
--
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Duetto.
https://bugs.launchpad.net/bugs/1247336
Title:
Unable to include iostream, fstream or sstream
Status in Duetto: C++ for the Web:
Confirmed
Bug description:
When I try to incluse iostream, fstream or sstream I got the following
errors:
s $ /opt/duetto/bin/clang -Os -std=c++11 -S -target duetto HelloClient.cpp -o HelloClient.js
In file included from HelloClient.cpp:5:
In file included from /opt/duetto/include/c++/v1/iostream:38:
In file included from /opt/duetto/include/c++/v1/ios:216:
In file included from /opt/duetto/include/c++/v1/__locale:18:
In file included from /opt/duetto/include/c++/v1/mutex:176:
In file included from /opt/duetto/include/c++/v1/__mutex_base:15:
In file included from /opt/duetto/include/c++/v1/chrono:268:
/opt/duetto/include/c++/v1/ratio:256:20: error: integer constant is larger than the largest unsigned integer type
typedef ratio<1LL, 1000000000000000000LL> atto;
^
/opt/duetto/include/c++/v1/ratio:257:23: error: integer constant is larger than the largest unsigned integer type
typedef ratio<1LL, 1000000000000000LL> femto;
^
/opt/duetto/include/c++/v1/ratio:258:26: error: integer constant is larger than the largest unsigned integer type
typedef ratio<1LL, 1000000000000LL> pico;
^
/opt/duetto/include/c++/v1/ratio:269:21: error: integer constant is larger than the largest unsigned integer type
typedef ratio< 1000000000000LL, 1LL> tera;
^
/opt/duetto/include/c++/v1/ratio:270:18: error: integer constant is larger than the largest unsigned integer type
typedef ratio< 1000000000000000LL, 1LL> peta;
^
/opt/duetto/include/c++/v1/ratio:271:15: error: integer constant is larger than the largest unsigned integer type
typedef ratio<1000000000000000000LL, 1LL> exa;
^
In file included from HelloClient.cpp:5:
In file included from /opt/duetto/include/c++/v1/iostream:38:
In file included from /opt/duetto/include/c++/v1/ios:216:
In file included from /opt/duetto/include/c++/v1/__locale:18:
In file included from /opt/duetto/include/c++/v1/mutex:176:
/opt/duetto/include/c++/v1/__mutex_base:37:5: error: unknown type name 'pthread_mutex_t'
pthread_mutex_t __m_;
^
/opt/duetto/include/c++/v1/__mutex_base:57:13: error: unknown type name 'pthread_mutex_t'
typedef pthread_mutex_t* native_handle_type;
^
/opt/duetto/include/c++/v1/__mutex_base:42:41: error: use of undeclared identifier 'PTHREAD_MUTEX_INITIALIZER'
constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {}
^
/opt/duetto/include/c++/v1/__mutex_base:304:5: error: unknown type name 'pthread_cond_t'
pthread_cond_t __cv_;
^
/opt/duetto/include/c++/v1/__mutex_base:348:13: error: unknown type name 'pthread_cond_t'
typedef pthread_cond_t* native_handle_type;
^
/opt/duetto/include/c++/v1/__mutex_base:308:44: error: use of undeclared identifier 'PTHREAD_COND_INITIALIZER'
constexpr condition_variable() : __cv_(PTHREAD_COND_INITIALIZER) {}
^
In file included from HelloClient.cpp:5:
In file included from /opt/duetto/include/c++/v1/iostream:38:
In file included from /opt/duetto/include/c++/v1/ios:216:
In file included from /opt/duetto/include/c++/v1/__locale:18:
/opt/duetto/include/c++/v1/mutex:192:5: error: unknown type name 'pthread_mutex_t'
pthread_mutex_t __m_;
^
/opt/duetto/include/c++/v1/mutex:207:13: error: unknown type name 'pthread_mutex_t'
typedef pthread_mutex_t* native_handle_type;
^
/opt/duetto/include/c++/v1/mutex:259:5: error: unknown type name 'pthread_t'
pthread_t __id_;
^
/opt/duetto/include/c++/v1/mutex:285:5: error: unknown type name 'pthread_t'
pthread_t __id = pthread_self();
^
/opt/duetto/include/c++/v1/mutex:285:22: error: use of undeclared identifier 'pthread_self'
pthread_t __id = pthread_self();
^
/opt/duetto/include/c++/v1/mutex:359:9: error: use of undeclared identifier 'sched_yield'
sched_yield();
^
/opt/duetto/include/c++/v1/mutex:368:9: error: use of undeclared identifier 'sched_yield'
sched_yield();
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
To manage notifications about this bug go to:
https://bugs.launchpad.net/duetto/+bug/1247336/+subscriptions