LDC2 Status

Andrew Wiley debio264 at gmail.com
Thu Feb 24 07:49:31 PST 2011


On Thu, Feb 24, 2011 at 12:56 AM, Alexey Prokhin
<alexey.prokhin at yandex.ru> wrote:
> I use cmake to compile druntime and phobos:
> $ cd ldc2_build_dir
> $ cmake -DRUNTIME_DIR=path_to_druntime -DPHOBOS2_DIR=path_to_phobos .
> $ make phobos2 (or 'make runtime' if you want to build only druntime)
>

I tried building on ARM just for the heck of it, and ldc2 compiles
successfully, but when I compile druntime, odd things happen.
Specifically, looking at the version blocks in core/stdc/stdargs.d, I
should be getting a static assert failure because my platform is
unsupported, but instead I'm seeing this:

$ ldc2  core/stdc/stdarg.d
core/stdc/stdio.d(345): Error: undefined identifier va_list
core/stdc/stdio.d(345): Error: va_list is used as a type
core/stdc/stdio.d(346): Error: undefined identifier va_list
core/stdc/stdio.d(346): Error: va_list is used as a type
core/stdc/stdio.d(347): Error: undefined identifier va_list
core/stdc/stdio.d(347): Error: va_list is used as a type
core/stdc/stdio.d(348): Error: undefined identifier va_list
core/stdc/stdio.d(348): Error: va_list is used as a type
core/stdc/stdio.d(349): Error: undefined identifier va_list
core/stdc/stdio.d(349): Error: va_list is used as a type
core/stdc/stdio.d(350): Error: undefined identifier va_list
core/stdc/stdio.d(350): Error: va_list is used as a type
core/stdc/stdio.d(405): Error: undefined identifier va_list
core/stdc/stdio.d(405): Error: va_list is used as a type
core/stdc/wchar_.d(37): Error: undefined identifier va_list
core/stdc/wchar_.d(37): Error: va_list is used as a type
core/stdc/wchar_.d(38): Error: undefined identifier va_list
core/stdc/wchar_.d(38): Error: va_list is used as a type
core/stdc/wchar_.d(39): Error: undefined identifier va_list
core/stdc/wchar_.d(39): Error: va_list is used as a type
core/stdc/wchar_.d(40): Error: undefined identifier va_list
core/stdc/wchar_.d(40): Error: va_list is used as a type
core/stdc/wchar_.d(41): Error: undefined identifier va_list
core/stdc/wchar_.d(41): Error: va_list is used as a type
core/stdc/wchar_.d(42): Error: undefined identifier va_list
core/stdc/wchar_.d(42): Error: va_list is used as a type


This is odd because stdarg contains no import statements. Is the
compiler generating references to the other modules somehow, and if
so, why do I get these errors instead of the unsupported platform
error?


More information about the Digitalmars-d mailing list