Re: Getting error in dmd testsuite

2019-01-06 Thread Thomas Mader via Digitalmars-d-learn
On Thursday, 28 December 2017 at 14:45:54 UTC, Thomas Mader wrote: gcc does not create the symbol at all on NixOS. I already created an issue for NixOS: https://github.com/NixOS/nixpkgs/issues/28896 I am not supposed to ask here but maybe someone knows about problems with gcc? I finally fou

Re: Getting error in dmd testsuite

2017-12-28 Thread Thomas Mader via Digitalmars-d-learn
On Sunday, 27 August 2017 at 14:04:18 UTC, Joakim wrote: That module tests linking with C++ files, looks like you have some symbols that don't match up. That's weird, because those normally work with gcc. For each of them, use the readelf command from binutils to compare the symbols generated

Re: druntime memory unittest fails

2017-12-28 Thread Thomas Mader via Digitalmars-d-learn
On Thursday, 28 December 2017 at 10:25:01 UTC, Seb wrote: On Thursday, 28 December 2017 at 10:23:38 UTC, Thomas Mader wrote: Hello, on NixOS the druntime memory unittest fails at 'assert(z is null);' (https://github.com/dlang/druntime/blob/v2.075.1/src/core/memory.d#L899) Does anyone have a

druntime memory unittest fails

2017-12-28 Thread Thomas Mader via Digitalmars-d-learn
Hello, on NixOS the druntime memory unittest fails at 'assert(z is null);' (https://github.com/dlang/druntime/blob/v2.075.1/src/core/memory.d#L899) Does anyone have a clue how that can happen? Thomas

Re: Define enum value at compile time via compiler argument?

2017-12-25 Thread Thomas Mader via Digitalmars-d-learn
On Monday, 25 December 2017 at 17:46:05 UTC, aliak wrote: On Monday, 25 December 2017 at 16:38:32 UTC, Thomas Mader wrote: On Monday, 25 December 2017 at 16:22:11 UTC, Mengu wrote: is it a relative path? if so: pragma(msg, __FILE_FULL_PATH__.split("/")[0..$-1].join("/")); https://run.d

Re: Define enum value at compile time via compiler argument?

2017-12-25 Thread Thomas Mader via Digitalmars-d-learn
On Monday, 25 December 2017 at 16:22:11 UTC, Mengu wrote: is it a relative path? if so: pragma(msg, __FILE_FULL_PATH__.split("/")[0..$-1].join("/")); https://run.dlang.io/is/gRUAD6 Nice idea but it is an absolute path. :-/

Define enum value at compile time via compiler argument?

2017-12-25 Thread Thomas Mader via Digitalmars-d-learn
Hello, I would like to set the path to a directory at compile time but it doesn't seem to be possible yet. I tried it with a -version=CustomPath argument and inside the version statement in the code I tried to read the value from the environment. Sadly this doesn't work because getenv can no

Getting error in dmd testsuite

2017-08-26 Thread Thomas Mader via Digitalmars-d-learn
Hello, I am building ldc on Nix (https://nixos.org/nix/) but keep getting an error while running the cppa.d test from the dmd testsuite (https://github.com/ldc-developers/dmd-testsuite). 1588: ... runnable/cppa.d -L-lstdc++ (-g) -O 1588: Test failed. The logged output: 1588:

Re: Has anyone created a D wrapper for wbemuuid.lib

2015-09-22 Thread Thomas Mader via Digitalmars-d-learn
On Tuesday, 22 September 2015 at 10:03:52 UTC, Thomas Mader wrote: Do I miss something? Does anyone have wrapped this lib? This was also asked on stackoverflow some time ago. [1] Wonder if something happend since then. [1] http://stackoverflow.com/questions/24051606/can-i-use-routines-from-co

Has anyone created a D wrapper for wbemuuid.lib

2015-09-22 Thread Thomas Mader via Digitalmars-d-learn
I looked at some of the windows API wrapper projects for D on github [1][2], but none of them seems to have wrapped wbemuuid.lib right now. Do I miss something? Does anyone have wrapped this lib? Thomas [1] http://code.dlang.org/packages/windows-headers [2] https://github.com/smjgordon/binding

Re: Faster ways to redirect stdout of child process to file

2014-08-15 Thread Thomas Mader via Digitalmars-d-learn
I found out that the redirect was not responsible for the CPU time, it was some other code part which was responsible for it and totally unrelated to the redirect. I also saw that a redirect in my case is much simpler by using spawnProcess: auto logFile = File("errors.log", "w"); auto pid =

Faster ways to redirect stdout of child process to file

2014-08-11 Thread Thomas Mader via Digitalmars-d-learn
I use auto pipes = pipeProcess( cmd, Redirect.stdout | Redirect.stderr ); to redirect stdout of the newly created subprocess via pipes to a file. The redirect itself happens in a newly created thread (because I need to wait for the subprocess to finish to take the exact elapsed time

Re: Something like Python's psutils for D?

2014-07-13 Thread Thomas Mader via Digitalmars-d-learn
On Sunday, 13 July 2014 at 01:01:16 UTC, Ellery Newcomer wrote: would psutils itself be acceptable? https://bitbucket.org/ariovistus/pyd I haven't thought about this possibility, thanks.

Re: Something like Python's psutils for D?

2014-07-12 Thread Thomas Mader via Digitalmars-d-learn
I also need to get the user and system time of a process, doesn't seem to be available in Phobos. (e.g. getrusage in Linux but platform independent)

Something like Python's psutils for D?

2014-07-12 Thread Thomas Mader via Digitalmars-d-learn
The Subject says it all, is something like psutils available in D? [1] I need it to measure memory usage of a process. [1] https://github.com/giampaolo/psutil thank you Thomas