January 23, 2015
Hello Elie,

Just a little build script until cmake can be used properly:

#!/bin/bash
set -x

clang++ -std=c++11 -c showcase.cpp -o showcase.cpp.o
ar rcs libshowcase.a showcase.cpp.o
/bin/rm calypso_cache*
ldc2 -cpp-args -std=c++11 -Llibshowcase.a -L-lstdc++ showcase.d


I remove the the calypso_cache otherwise there will be an error
if a previous build failed and the C++ files get modified.

It looks like the 'undefined identifier size_t;' error is just
from testStruct. If I comment out all refs/uses to testStruct
then things compile and run fine. Good stuff.

Thanks,
Kelly

P.S. If I find a little time, I'll try to get up to speed on the
code base :)


On Friday, 23 January 2015 at 17:18:22 UTC, Elie Morisse wrote:
> Thanks for the feedback Kelly, you're probably the first person to give it a serious try, sorry for the bumpy ride :)
>
> Since I was focused on getting Ogre working and neither rebuilt druntime/phobos nor tested the showcase example against the latest commits they might have broken something.
> Also the README forgets to say how libshowcase.a should be built:
>
>   clang++ -std=c++11 -c showcase.cpp -o showcase.cpp.o
>   ar rcs libshowcase.a showcase.cpp.o
>
>   ldc2 -cpp-args -std=c++11 -Llibshowcase.a -L-lstdc++ showcase.d
>
> Adding this now.
>
> I'm going to fix the rest this afternoon (finally some free time), and also figure out why assistbuilder.cpp failed to compile against the latest Clang 3.5.
>
> Also going to setup a testing script to ensure not everything gets broken again by a commit.

January 23, 2015
On 2015-01-23 18:56, Elie Morisse wrote:

> It's planned to add Objective-C to Calypso, although I never used it and
> know little about it. Would you be interested in implementing support
> for its different flavors in Calypso, Jacob? You'd be welcome to the
> team :-)

For the time being I think I need to focus on getting the Objective-C support implemented in DMD. But after that, we'll see.

-- 
/Jacob Carlborg
January 23, 2015
Hello Elie,

The small patch for defining size_t works here. Thanks.

I just wanted to let people know that showcase.d should build fine (one deprecation warning, but not a big deal).

People might still need the small quick fixes for gen/cpp/assistbuilder.cpp, but just adding "clang::" in a couple spots shouldn't be too arduous for anybody if they really want to compile and play with Calypso.

Thanks,
Kelly
January 24, 2015
On Friday, 23 January 2015 at 23:06:16 UTC, Kelly wrote:
> People might still need the small quick fixes for gen/cpp/assistbuilder.cpp, but just adding "clang::" in a couple spots shouldn't be too arduous for anybody if they really want to compile and play with Calypso.

Weird, assistbuilder.cpp compiled fine here with up-to-date Clang 3.5. Did you checkout the 3.5 branch?
January 24, 2015
Nevermind it's just that CodeGen is ambiguous with clang::CodeGen although my compiler doesn't complain. Fixed.
January 29, 2015
On Saturday, 24 January 2015 at 00:51:49 UTC, Elie Morisse wrote:
> Nevermind it's just that CodeGen is ambiguous with clang::CodeGen although my compiler doesn't complain. Fixed.

Hi Elie.

We are really excited about your project, as it really opens up new possibilities and will certainly save many months of time.

I have struggled with building Calypso and tried various different recent release versions of clang to no avail.  (LDC/LLVM/clang build without problem).  I will post build errors shortly

Would there be any chance you could fork a version of clang that works with Calypso, and then link to it in the instructions?

Later it might also be worth using the D port of the dlang update.sh tool that I wrote so one can automate the process of downloading and building the various different pieces.  So many moving parts that it is easy for something to break.



Laeeth.
January 30, 2015
Hi Laeeth,

Could you post the errors and which compiler you are using? If you managed to build both LDC and Clang you should be pretty close to get Calypso working.

>Would there be any chance you could fork a version of clang that
works with Calypso, and then link to it in the instructions?

As said in the README the 3.5 branch of LLVM/Clang should work, it's stable and there hasn't been a single commit since December 8:

https://github.com/llvm-mirror/clang/commits/release_35
February 08, 2015
Small update: std::vector is now working.
  https://github.com/Syniurge/Calypso/blob/master/tests/calypso/libstdc%2B%2B/vector.d

I went back to simpler problems than getting Ogre to work and will focus on the C++ standard lib until the common class templates work.
February 08, 2015
On Sunday, 8 February 2015 at 16:49:44 UTC, Elie Morisse wrote:
> Small update: std::vector is now working.
>   https://github.com/Syniurge/Calypso/blob/master/tests/calypso/libstdc%2B%2B/vector.d

That is really cool.
February 08, 2015
On Sunday, 8 February 2015 at 20:56:31 UTC, Syro wrote:
> That is really cool.

Thanks, just got that tangled mess of templates that is std::string working too:

https://github.com/Syniurge/Calypso/blob/master/tests/calypso/libstdc%2B%2B/string.d