-
Notifications
You must be signed in to change notification settings - Fork 10
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
compiler segfault in showcase.d #32
Comments
No idea here, sorry. You're probably the first person to try it on OS X. A class and its methods were previously correctly emitted, since the following is a dump of a thunk generated by Calypso: void* __tmp1800 = void;
, __tmp1800 = cast(void*)this , __tmp1800 += -16L;
return (cast(DCXXclass)__tmp1800).hello(ceres); so not everything is broken, but I've no idea what goes wrong with the function template instance. The segfaulting line would be helpful to figure out what's happening, could you rebuild Calypso with -DCMAKE_BUILD_TYPE=RelWithDebInfo? |
with
while compiling Calypso. |
There's some weird stuff going on OS X.. You may be able to gather more info by debugging the ldc2 command, first by retrieving the command line for the generation of atomic.o with And then if your debugger is gdb (unlikely but I'm not familiar with LLDB): gdb build/bin/ldc2 -- [ldc2 args during the compilation of atomic.o] In gdb:
It would be very interesting to know where that malloc call comes from. If LDC 0.15.2 works on OS X then it's probably due to a Calypso modification, but again I'm clueless. |
Hello @Syniurge and @John-Colvin, It looks like your error might be because the build line you used is missing a couple things. Here is my 'build.sh' file:
So really you should just need the '-cpp-args -std=c++11' option to build the showcase demo (and -L-lstdc++ I guess :) ). It builds and works here with Calypso from git today and OS X 10.10.3 with clang/llvm 3.6.2. |
Hi Kelly, neat that Calypso is working at least partially for you on OS X! -std=c++11 hasn't been needed for a while for showcase.d, it just prevents the warnings, so I'm not sure what goes wrong on John's setup, why ldc2 built with |
out of memoryIIRC
could be caused by building ldc using too much memory, depending on options (eg: release builds use more memory, require
|
OS X 10.11.1, LLVM 3.6.2
The text was updated successfully, but these errors were encountered: