duetto-beta-testers team mailing list archive
-
duetto-beta-testers team
-
Mailing list archive
-
Message #00016
Re: STL Trouble?
Hello,
No one seems to be able to repeat the crashing issue, so I thought I
would show what I am getting, here are some screen shots. I am on
Windows, so I am wondering if this has to do with compilation on the
server - side, since it is not supported.
Yep, you are right. This is how it looks on my Ubuntu 13.04 (x86_64)
machine:
---------------------------------8<---------------------------------
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[.... Backtrace follows ....]
Stack dump:
0. Program arguments: /opt/duetto/bin/clang-3.4 -cc1 -triple
duetto--webbrowser -S -disable-free -main-file-name fstream.cpp
-mrelocation-model static -mdisable-fp-elim -fmath-errno
-mconstructor-aliases -coverage-file
/home/val/private/duetto/fstream/fstream.js -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 -O3 -std=c++11 -fdeprecated-macro
-fno-dwarf-directory-asm -fdebug-compilation-dir
/home/val/private/duetto/fstream -ferror-limit 19 -fmessage-length 212
-mstackrealign -fno-rtti -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o fstream.js -x c++
fstream.cpp
1. /opt/duetto/include/c++/v1/__locale:56:35: current parser token ','
2. /opt/duetto/include/c++/v1/__locale:32:1
<Spelling=/opt/duetto/include/c++/v1/__config:327:37>: parsing namespace
'std'
3. /opt/duetto/include/c++/v1/__locale:32:1
<Spelling=/opt/duetto/include/c++/v1/__config:327:59>: parsing namespace
'__1'
4. /opt/duetto/include/c++/v1/__locale:46:1: parsing struct/union/class
body 'locale'
clang-3.4: error: unable to execute command: Segmentation fault (core
dumped)
clang-3.4: error: clang frontend command failed due to signal (use -v to
see invocation)
clang version 3.4
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: error: unable to execute command: Aborted (core dumped)
clang-3.4: note: diagnostic msg: Error generating preprocessed source(s).
---------------------------------8<---------------------------------
Source I'm trying to compile is attached, just in case it matters.
I've just missed 'Segmentation falut' bit in the middle of the output.
So the issue is reproducible in Linux, please file a bug report.
Regards,
Valentine
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main()
{
ifstream ifs("fstream.cpp");
string buffer;
while (getline(ifs, buffer)) {
cout << buffer << endl;
}
}
server: fstream.cpp
/opt/duetto/bin/clang++ -duetto-side=server -std=c++11 -O3 fstream.cpp -o fstream
client: fstream.cpp
/opt/duetto/bin/clang++ -target duetto -S -std=c++11 -O3 fstream.cpp -o fstream.js
clean:
rm fstream fstream.js
References