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

Ticket #314 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

can't compile Tango on linux/ppc

Reported by: Carlos Assigned to: sean
Priority: blocker Milestone:
Component: Core Functionality Version:
Keywords: Cc:

Description

rev 1856, gdc 0.23

gdc -o lifetime.o -g -frelease -O2  -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_GLibC -fversion=GC_Use_Data_Fixed -nostdinc -fversion=Posix -I.. -I../.. -I../../.. -I . -I ./../../gc/gdc -I ./. -c lifetime.d
lifetime.d:139: function lifetime.cr_finalize (void*,bool) does not match parameter types (Object)
lifetime.d:139: Error: cannot implicitly convert expression (*p) of type object.Object to void*
lifetime.d:154: function lifetime.gc_free (void*) does not match parameter types (Object)
lifetime.d:154: Error: cannot implicitly convert expression (*p) of type object.Object to void*

Change History

03/09/07 21:54:54 changed by Carlos

Changeset 1867:

gdc -o lifetime.o -g -frelease -O2 -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_GLibC -fversion=GC_Use_Data_Fixed -nostdinc -pipe -I../../..   \
        -c lifetime.d
../../../tango/stdc/stdarg.d:21: Error: cannot have out or inout parameter of type ubyte[12][1]
../../../tango/stdc/stdarg.d:815: template instance tango.stdc.stdarg.va_start!(uint) error instantiating
lifetime.d:815: Error: cannot change reference to static array 'va'

03/10/07 13:14:04 changed by sean

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

I believe this was fixed by my and Gregor's changes from the other day. See changesets [1856], [1857], and [1860].

03/10/07 20:09:58 changed by Carlos

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

Well, changeset 1874 still gives that error.

03/11/07 13:41:26 changed by sean

Here's line 139 of lifetime.d as of my last set of changes:

cr_finalize(cast(void*) *p);

This doesn't match the errors:

lifetime.d:139: function lifetime.cr_finalize (void*,bool) does not match parameter types (Object) lifetime.d:139: Error: cannot implicitly convert expression (*p) of type object.Object to void*

Is it possible you have some files altered and an "svn up" isn't catching the changes?

03/15/07 23:44:56 changed by Carlos

I just manually checked lifetime.d. Line 139 is the same.
I just noticed something, though: since the first time I reported this, the error is no longer line 139 but 815.

03/16/07 14:59:01 changed by sean

Hopefully, this has been fixed in changeset [1915]. Please verify and let me know if I can close the ticket.

03/16/07 15:58:59 changed by Carlos

No go. Different errors, though:

gdc -o lifetime.o -g -frelease -O2 -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_GLibC -fversion=GC_Use_Data_Fixed -nostdinc -pipe -I../../..   \
        -c lifetime.d
../../../std/c/stdarg.di:14: Error: identifier 'va_list' is not defined
../../../std/c/stdarg.di:14: Error: va_list is used as a type
../../../std/c/stdarg.di:14: Error: cannot have parameter of type void
../../../std/c/stdarg.di: variable std.c.stdarg.va_start!(uint).va_start.ap voids have no value
../../../std/c/stdarg.di:815: template instance std.c.stdarg.va_start!(uint) error instantiating
lifetime.d:815: function std.c.stdarg.va_start!(uint).va_start (void,uint) does not match parameter types (ubyte[12][1],uint)
lifetime.d:815: Error: cannot implicitly convert expression (va) of type ubyte[12][1] to void
lifetime.d:815: Error: cast(void)va is not an lvalue

03/16/07 16:13:26 changed by sean

Okay, hopefully changeset [1918] will address this. Please try again.

03/16/07 16:30:54 changed by sean

And one more time! Please try commit [1919].

03/16/07 16:32:57 changed by sean

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

03/16/07 17:24:36 changed by Carlos

It compiles now. Thanks!