Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tcecc] C++11 support? #79

Open
alekob opened this issue Mar 21, 2019 · 4 comments
Open

[tcecc] C++11 support? #79

alekob opened this issue Mar 21, 2019 · 4 comments
Labels
contributions welcome This is not in CPC's roadmap at the moment, but we are happy to review your pull requests.

Comments

@alekob
Copy link
Contributor

alekob commented Mar 21, 2019

Hi,
I'd like to compile C++11 code on a TTA system, stdc++ lib is necessary. As the installation procedure in TCE for LLVM differs from the "getting started" page (https://llvm.org/docs/GettingStarted.html), I'd like to ask how to install libcxx and libcxxabi to work with tcecc?

@pjaaskel
Copy link
Contributor

I don't think this has been tried by anyone yet. While I think most c++11 language features should just work, no one has ported a C++ standard library so far. Our group has focused on C and OpenCL C. It would be great if someone ported it though!

@pjaaskel pjaaskel added the contributions welcome This is not in CPC's roadmap at the moment, but we are happy to review your pull requests. label Mar 22, 2019
@alekob
Copy link
Contributor Author

alekob commented Mar 26, 2019

Tried to extend the installation script for LLVM 8.0 to compile libc++, libc++abi. The build process seems to work, but the compilation of the project's C++ code results in several errors:

/home/alex/apps/LLVM/8.0/include/c++/v1/__config:63:4: error: Unknown object file format

error Unknown object file format

^
/home/alex/apps/LLVM/8.0/include/c++/v1/__config:1172:6: error: "No thread API"

error "No thread API"

...
/home/alex/apps/LLVM/8.0/include/c++/v1/atomic:1855:16: error: use of undeclared identifier 'int_least64_t'
typedef atomic<int_least64_t> atomic_int_least64_t;
...

@hkultala
Copy link
Contributor

hkultala commented Aug 5, 2019

TCE does not yet support 64-bit simple data types. This is the reason the int_least64_t is not supported.

@alekob
Copy link
Contributor Author

alekob commented Aug 7, 2019

How about the version on branch "64bit"? Does it support simple 64 bit types or is there a way for a "software emulation" like "-swfp"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome This is not in CPC's roadmap at the moment, but we are happy to review your pull requests.
Projects
None yet
Development

No branches or pull requests

3 participants