Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #287 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

errors rebuild-ing tango unit test

Reported by: fawzi Assigned to: lindquist
Priority: major Milestone:
Component: backend Version: hg tip
Keywords: Cc:

Description

I tried to compile tango unit tests with

rebuild -debug -w -d -g -L-ldl -L-lz -L-lbz2 -d-debug=UnitTest -full -clean -unittest -d-version=UnitTest runUnitTest_ldc.d

and ldc did not stop writing debug output.

with

rebuild -L-ldl -L-lz -L-lbz2 -d-debug=UnitTest -full -clean -unittest runUnitTest_ldc.d

the output was more reasonable, it almost succeded, but gave an error on the main module:

runUnitTest_ldc.d: Error: module runUnitTest_ldc invalid linkage type for global declaration
[1 x %object.Interface]* @_D5tango4core7Variant12__unittest67FZv1B16__interfaceInfosZ
invalid linkage type for global declaration
[1 x %object.Interface]* @_D5tango4core7Variant12__unittest67FZv1C16__interfaceInfosZ
invalid linkage type for global declaration
[1 x %object.Interface]* @_D5tango4core7Variant12__unittest67FZv1J16__interfaceInfosZ
Broken module found, compilation terminated.

recompiling just that without -unittest succeded

rebuild -L-ldl -L-lz -L-lbz2 -d-debug=UnitTest runUnitTest_ldc.d

the module runUnitTest_ldc.d (which I attach) which imports pretty much all tango modules...

Attachments

runUnitTest_ldc.d (13.7 kB) - added by fawzi on 05/08/09 10:40:21.
unittest file

Change History

05/08/09 10:40:21 changed by fawzi

  • attachment runUnitTest_ldc.d added.

unittest file

05/21/09 03:09:14 changed by ChristianK

  • owner changed from ChristianK to lindquist.
  • component changed from unspecified to backend.

The runUnitTest_ldc.d does not work with tango trunk anymore (module RuntimeTraits? cannot read file 'tango/core/RuntimeTraits.d'), but I could reproduce the error with the unittest.sh script.

05/21/09 04:56:46 changed by ChristianK

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1403].

Copyright © 2008, LDC Development Team.