Tango Problems..

Rémy Mouëza via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 31 08:39:44 PDT 2014


 From what I understand in the error message, the linker cannot find a 
druntime function: void core.stdc.stdarg.va_end(void*).

I would advise to check that the druntime lib is in the import path.
In your the dmd repository, you should have a dmd.conf file containing 
something like:
[Environment64]
DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/druntime/import 
-L-L%@P%/../lib64 -L--export-dynamic

(%@P% means the compiler path).
This should help you to fix your command line adding for instance:
-I/usr/local/lib/dmd/druntime/

In my dmd installation (2.066.0), the druntime is contained in 
libphobos.a/libphobos.so. Are you linking with libphobos?



On 08/31/2014 03:53 PM, seany wrote:
> I have several files, which I am trying to import as modules to a
> central file.
>
> However, whyile trying to complie with
> dmd -L-ltango-dmd <list of files space separated>
>
> However, I am getting this error :
>
> /usr/lib/libtango-dmd.a(tango-io-Stdout-release.o): In function
> `_D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput6formatMFxAaYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput':
>
> ./tango/io/Stdout.d:(.text._D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput6formatMFxAaYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput+0x12b):
> undefined reference to `_D4core4stdc6stdarg6va_endFPvZv'
> /usr/lib/libtango-dmd.a(tango-io-Stdout-release.o): In function
> `_D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput8formatlnMFxAaYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput':
>
> ./tango/io/Stdout.d:(.text._D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput8formatlnMFxAaYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput+0x130):
> undefined reference to `_D4core4stdc6stdarg6va_endFPvZv'
> /usr/lib/libtango-dmd.a(tango-io-Stdout-release.o): In function
> `_D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput5printMFYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput':
>
> ./tango/io/Stdout.d:(.text._D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput5printMFYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput+0x131):
> undefined reference to `_D4core4stdc6stdarg6va_endFPvZv'
> /usr/lib/libtango-dmd.a(tango-io-Stdout-release.o): In function
> `_D5tango4text7convert6Layout13__T6LayoutTaZ6Layout6sprintMFAaAxaYAa':
> ./tango/io/Stdout.d:(.text._D5tango4text7convert6Layout13__T6LayoutTaZ6Layout6sprintMFAaAxaYAa+0x125):
> undefined reference to `_D4core4stdc6stdarg6va_endFPvZv'
> /usr/lib/libtango-dmd.a(tango-io-Stdout-release.o): In function
> `_D5tango4text7convert6Layout13__T6LayoutTaZ6Layout7convertMFAxaYAa':
> ./tango/io/Stdout.d:(.text._D5tango4text7convert6Layout13__T6LayoutTaZ6Layout7convertMFAxaYAa+0x11e):
> undefined reference to `_D4core4stdc6stdarg6va_endFPvZv'
> /usr/lib/libtango-dmd.a(tango-io-Stdout-release.o):./tango/io/Stdout.d:(.text._D5tango4text7convert6Layout13__T6LayoutTaZ6Layout7convertMFDFAxaZmAxaYk+0x114):
> more undefined references to `_D4core4stdc6stdarg6va_endFPvZv' follow
>
> I tried a small hellow owrld file, the same problem.
>
> Yes, the 64 bit linux system updated today, and since then, this is a
> problem - how do I start to look for cause and solve?



More information about the Digitalmars-d-learn mailing list