[phobos] Bug somewhere in core.posix.sys.time

Masahiro Nakagawa repeatedly at gmail.com
Sat May 22 13:00:41 PDT 2010


This problem has been reported in d.learn.

http://lists.puremagic.com/pipermail/digitalmars-d-learn/2010-May/017087.html

Other modules also have same problem(e.g. core.sys.posix.pthread,  
std.windows.*).


On Sun, 23 May 2010 02:45:38 +0900, Andrei Alexandrescu  
<andrei at erdani.com> wrote:

> I tried to build the HTML documentation with
>
> make html
>
> and got:
>
> wine dmd -version=ddoc -d -c -o- ../docsrc/std.ddoc  
> -Df../web/2.0/phobos/std_gregorian.html std/gregorian.d
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys\posix\signal.d(25):  
> Error: identifier 'siginfo_t' is not defined
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys\posix\signal.d(25):  
> Error: siginfo_t is used as a type
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys\posix\signal.d(195):  
> Error: identifier 'sigset_t' is not defined
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys\posix\signal.d(195):  
> Error: sigset_t is used as a type
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys\posix\signal.d(195):  
> Error: variable core.sys.posix.signal.sigaction_t.sa_mask voids have no  
> value
> make: *** [../web/2.0/phobos/std_gregorian.html] Error 1
>
> I reduced the problem down to this definition of std.gregorian (which is  
> the culprit):
>
> module std.gregorian;
> import core.sys.posix.time;
>
> So the problem is core.sys.posix.time. Since that contains "posix" in  
> its name, does that imply it's not working on Windows? If so, you may  
> want to insert a pragma error on version windows that leaves a nice  
> error message behind.
>
> Is that possible?
>

Some posix modules may work on Windows if user uses INTERIX(I didn't try).
So, I think module selection using version statement on user side is  
better than pragma insertion to each modules.


More information about the phobos mailing list