View previous topic :: View next topic |
Author |
Message |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sun Aug 15, 2010 4:37 am Post subject: |
|
|
It works now, changeset 507. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
jaysistar
Joined: 30 Jun 2010 Posts: 31
|
Posted: Sun Aug 15, 2010 2:34 pm Post subject: |
|
|
It looks like it compiles fine now. Now there's only 1 issue left on the mac: SDL apps all give the following output:
$ ./test_sdl_app
Memory allocation failed
This doesn't happen on Linux or Windows, only on Mac OS X.
Since this problem is detailed earlier in this thread, I won't give further detail here.
I'll try to dig into the code; if I find anything, then I'll give details on those findings. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Aug 15, 2010 8:40 pm Post subject: |
|
|
jaysistar wrote: | I'll try to dig into the code; if I find anything, then I'll give details on those findings. |
Thanks much. I feel helpless sometimes not having a Mac to work with. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Aug 16, 2010 1:55 am Post subject: |
|
|
jaysistar wrote: | It looks like it compiles fine now. Now there's only 1 issue left on the mac: SDL apps all give the following output:
$ ./test_sdl_app
Memory allocation failed
This doesn't happen on Linux or Windows, only on Mac OS X.
Since this problem is detailed earlier in this thread, I won't give further detail here.
I'll try to dig into the code; if I find anything, then I'll give details on those findings. |
It's only for D2 and it's already reported as ticket #57. I tried to build druntime and phobos as debug builds but I got an assert error early in the runtime start up code, before any of the user code had a chance to run. |
|
Back to top |
|
|
jaysistar
Joined: 30 Jun 2010 Posts: 31
|
Posted: Thu Aug 26, 2010 10:50 pm Post subject: |
|
|
In the latest SVN checkout, I'm getting something different on the Mac. When I run a small program that uses SDL and OpenGL I get the following errors:
Code: | $ ./test_gl
object.Exception: Cyclic dependency in module derelict.sdl.macinit.NSApplication
----------------
5 test_gl 0x00004bae D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 334
6 test_gl 0x00004c5f D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
7 test_gl 0x00004c5f D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
8 test_gl 0x00004c5f D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
9 test_gl 0x00004bae D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 334
10 test_gl 0x00004a54 _moduleTlsCtor + 204
11 test_gl 0x00004742 _moduleCtor + 122
12 test_gl 0x0000d168 D2rt6dmain24mainUiPPaZi6runAllMFZv + 28
13 test_gl 0x0000d076 D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
14 test_gl 0x0000d004 main + 168
15 test_gl 0x00001dfd start + 53 |
I've tried taking out various pieces of static this() functions, and I did get the app to actually print to stdout, but then crash (Sorry, I forgot to capture the errors before I reverted back to the source on the server.). I'll keep digging, but could you let me know what you think about the stack trace and what might be happening? |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Fri Aug 27, 2010 6:44 am Post subject: |
|
|
the Cyclic dependency error happens when two modules containing module constructors import each other. |
|
Back to top |
|
|
|