Opened 18 years ago
Closed 18 years ago
#4951 closed defect (invalid)
Compile error on Gentoo x86_64 with tango/stc/stdarg.d
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
On Gentoo, with GCC 4.1.2 and the "d" use flag (which automagically compiles gcc with GDC 0.23) I did the following:
- ln -s /usr/bin/gcc /usr/bin/gdc
- Checkout svn to trango
- cd tango/lib
- ./build-gdc.sh
After finishing the configuration script, I got the following compile error (left some surrounding fluff for reference):
gdc -o dgccmain2.o -g -frelease -O2 -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_GLibC -fversion=GC_Use_Data_Fixed -nostdinc -pipe -I../../.. \
-c dgccmain2.d
gdc -o genobj.o -g -frelease -O2 -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_GLibC -fversion=GC_Use_Data_Fixed -nostdinc -pipe -I../../.. \
-c genobj.d
gdc -o invariant.o -g -frelease -O2 -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_GLibC -fversion=GC_Use_Data_Fixed -nostdinc -pipe -I../../.. \
-c invariant.d
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[24][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' make[2]: * [lifetime.o] Error 1 make[2]: Leaving directory `/home/slayer/code/grep/tango/lib/compiler/gdc' make[1]: * [all] Error 2 make[1]: Leaving directory `/home/slayer/code/grep/tango/lib/compiler/gdc' make: * [lib] Error 2
Oops, wrong spot.
SORRY! :(