Thread overview | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 21, 2012 [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
As we resume our regularly scheduled breakage of DLLs on Win32 with druntime changes.
..\dmd testmydll -version=DYNAMIC_LOAD
testmydll
Start Dynamic Link...
DLL_PROCESS_ATTACH
static this for mydll
object.Error: assert(0) or HLT instruction
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime
|
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | The bad commit happened sometime since March 14. Brad, can we somehow get the DLL tests into the test suite? I'm apparently the only one who runs them. On 3/21/2012 1:23 AM, Walter Bright wrote: > As we resume our regularly scheduled breakage of DLLs on Win32 with druntime changes. > > ..\dmd testmydll -version=DYNAMIC_LOAD > > testmydll > Start Dynamic Link... > DLL_PROCESS_ATTACH > static this for mydll > object.Error: assert(0) or HLT instruction > _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | There should be nothing that prevents anyone from adding tests to the suite. You don't need me to do it. I don't do windows code if I can avoid it. On 3/21/2012 1:38 AM, Walter Bright wrote: > The bad commit happened sometime since March 14. > > Brad, can we somehow get the DLL tests into the test suite? I'm apparently the only one who runs them. > > On 3/21/2012 1:23 AM, Walter Bright wrote: >> As we resume our regularly scheduled breakage of DLLs on Win32 with druntime changes. >> >> ..\dmd testmydll -version=DYNAMIC_LOAD >> >> testmydll >> Start Dynamic Link... >> DLL_PROCESS_ATTACH >> static this for mydll >> object.Error: assert(0) or HLT instruction >> > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | I was hoping to delegate! On 3/21/2012 2:19 AM, Brad Roberts wrote: > There should be nothing that prevents anyone from adding tests to the suite. You don't need me to do it. I don't do > windows code if I can avoid it. > _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Delegate away, but to someone who actually develops on windows. On 3/21/2012 2:53 AM, Walter Bright wrote: > I was hoping to delegate! > > On 3/21/2012 2:19 AM, Brad Roberts wrote: >> There should be nothing that prevents anyone from adding tests to the suite. You don't need me to do it. I don't do windows code if I can avoid it. >> > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Zitat von Walter Bright <walter@digitalmars.com>: > As we resume our regularly scheduled breakage of DLLs on Win32 with druntime changes. > > ..\dmd testmydll -version=DYNAMIC_LOAD > > testmydll > Start Dynamic Link... > DLL_PROCESS_ATTACH > static this for mydll > object.Error: assert(0) or HLT instruction > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime You're apparently not referring to this HTML-unittest http://dlang.org/dll.html#Dcode. None of it compiles, but once it is made compiling it works. Start Dynamic Link... DLL_PROCESS_ATTACH static this for mydll Hello world! DLL_PROCESS_DETACH static ~this for mydll Please post a correct way to setup a Windows dmd-dev toolchain, how to run unittest... . test.d imports mydll.d and needs mydll's ModuleInfo, thus dynamic loading is not possible. Have you linked the module twice? _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | The way to compile it doesn't fit into the test harness you created. On 3/21/2012 3:26 AM, Brad Roberts wrote: > Delegate away, but to someone who actually develops on windows. > > On 3/21/2012 2:53 AM, Walter Bright wrote: >> I was hoping to delegate! >> >> On 3/21/2012 2:19 AM, Brad Roberts wrote: >>> There should be nothing that prevents anyone from adding tests to the suite. You don't need me to do it. I don't do >>> windows code if I can avoid it. >>> >> _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to dawg | On 3/21/2012 5:23 AM, dawg@dawgfoto.de wrote: > > > You're apparently not referring to this HTML-unittest > http://dlang.org/dll.html#Dcode. None of it compiles, > but once it is made compiling it works. > > Start Dynamic Link... > DLL_PROCESS_ATTACH > static this for mydll > Hello world! > DLL_PROCESS_DETACH > static ~this for mydll > > Please post a correct way to setup a Windows dmd-dev toolchain, how to run unittest... . > > test.d imports mydll.d and needs mydll's ModuleInfo, thus dynamic loading > is not possible. Have you linked the module twice? > I'm running the same test suite for years for DLLs. No, it is not linking things twice. Historically, it breaks badly every time someone tweaks the druntime startup code. _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | You can run arbitrary .sh files, so anything can be scripted. On 3/21/2012 10:08 AM, Walter Bright wrote: > The way to compile it doesn't fit into the test harness you created. > > On 3/21/2012 3:26 AM, Brad Roberts wrote: >> Delegate away, but to someone who actually develops on windows. >> >> On 3/21/2012 2:53 AM, Walter Bright wrote: >>> I was hoping to delegate! >>> >>> On 3/21/2012 2:19 AM, Brad Roberts wrote: >>>> There should be nothing that prevents anyone from adding tests to the suite. You don't need me to do it. I don't do windows code if I can avoid it. >>>> >>> > _______________________________________________ > D-runtime mailing list > D-runtime@puremagic.com > http://lists.puremagic.com/mailman/listinfo/d-runtime _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
March 21, 2012 Re: [D-runtime] Arghhh, DLLs broken on Win32 *again*! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | Nobody liked my .sh version of the win32 tests :-) On 3/21/2012 10:18 AM, Brad Roberts wrote: > You can run arbitrary .sh files, so anything can be scripted. > > On 3/21/2012 10:08 AM, Walter Bright wrote: >> The way to compile it doesn't fit into the test harness you created. >> >> On 3/21/2012 3:26 AM, Brad Roberts wrote: >>> Delegate away, but to someone who actually develops on windows. >>> >>> On 3/21/2012 2:53 AM, Walter Bright wrote: >>>> I was hoping to delegate! >>>> >>>> On 3/21/2012 2:19 AM, Brad Roberts wrote: >>>>> There should be nothing that prevents anyone from adding tests to the suite. You don't need me to do it. I don't do >>>>> windows code if I can avoid it. >>>>> >>>> _______________________________________________ D-runtime mailing list D-runtime@puremagic.com http://lists.puremagic.com/mailman/listinfo/d-runtime |
Copyright © 1999-2021 by the D Language Foundation