Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #561 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Can't use DMD 1.020 for compiling

Reported by: Anders Assigned to: larsivi
Priority: major Milestone: 0.99.2 RC5
Component: Tango Version: 0.99 RC3 Xammy
Keywords: Cc:

Description

Building Tango on Linux with DMD 1.020 fails.

./build-dmd.sh works, but ./build-tango.sh complains with:

tango/core/Thread.di(163): variable tango.core.Thread.Thread.PRIORITY_MIN missing initializer in static constructor for const variable
tango/core/Thread.di(167): variable tango.core.Thread.Thread.PRIORITY_MAX missing initializer in static constructor for const variable
tango/core/Thread.di(562): variable tango.core.Thread.PAGESIZE missing initializer in static constructor for const variable
ar: tango.net.SocketListener.o: No such file or directory
rm: cannot remove `tango.net.SocketListener.o': No such file or directory

etc.

Change History

08/05/07 04:11:59 changed by larsivi

  • owner changed from kris to sean.
  • milestone changed from 1.0 to 0.99.1 RC4.

08/06/07 22:02:35 changed by sean

  • status changed from new to assigned.

09/05/07 14:55:40 changed by sean

  • milestone changed from 0.99.1 RC4 to 0.99.2 RC5.

This is waiting on a compiler fix.

09/05/07 14:59:32 changed by kris

Is there an interim workaround?

10/04/07 14:49:07 changed by sean

I think so. build-dmd.sh could append the decl for a static ctor to that file using echo.

10/04/07 16:11:04 changed by kris

that sounds like a good interim workaround

10/05/07 01:45:03 changed by sean

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

Temp fix added in changeset [2622].

10/05/07 05:20:00 changed by larsivi

  • status changed from closed to reopened.
  • resolution deleted.

This fix is bogus, as the static this {} still are there. The only working workaround is removing -inline from build-tango.sh for the problematic versions.

10/05/07 05:20:20 changed by larsivi

  • owner changed from sean to larsivi.
  • status changed from reopened to new.

10/05/07 05:37:56 changed by larsivi

(In [2628]) Removed hack to work around dmd bug, it was not the correct fix. refs #561

10/05/07 05:40:23 changed by larsivi

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

(In [2629]) Added workaround check for bug in DMD 1.020 and 1.021, closes #561