"Internal error: backend\cod1.c 1895" when trying to build DMD/Druntime/Phobos from source

Walter Bright newshound2 at digitalmars.com
Mon Jan 31 14:30:27 PST 2011


Vladimir Panteleev wrote:
> On Mon, 31 Jan 2011 06:13:54 +0200, Walter Bright 
> <newshound2 at digitalmars.com> wrote:
> 
>> Vladimir Panteleev wrote:
>>> Compiling the source from the .zip still yields a broken dmd.exe. My 
>>> version and the one from the .zip seem to differ in many small ways. 
>>> The first difference is that in main(), the .zip version calls a 
>>> function to get the address of errno, while my .exe accesses a 
>>> variable directly.
>>
>> Check your dmc's errno.h. It should call a function.
> 
> It's declared as follows:
> 
> #if defined(_MT) || defined(_DLL) || __cplusplus
> extern int * __CLIB _errno(void);
> #define errno (*_errno())
> #else
> extern int __cdecl errno;
> #endif
> 
> So, which of _MT or _DLL or __cplusplus should be defined on my machine 
> but aren't?
> 

_MT and __cplusplus


More information about the Digitalmars-d mailing list