public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/47726] New: language go can not build for mingw target
@ 2011-02-14  3:21 dongsheng.song at gmail dot com
  2011-05-01 22:41 ` [Bug go/47726] " vanboxem.ruben at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dongsheng.song at gmail dot com @ 2011-02-14  3:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47726

           Summary: language go can not build for mingw target
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: go
        AssignedTo: ian@airs.com
        ReportedBy: dongsheng.song@gmail.com


When I building language go with the following configuration:

export BUILD_TRIPLET=i686-pc-linux-gnu
export TARGET_TRIPLET=i686-w64-mingw32
${GCC_SOURCE_DIR}/configure --prefix=${CROSS_PREFIX}
--with-sysroot=${CROSS_PREFIX} \
    --build=${BUILD_TRIPLET} --host=${BUILD_TRIPLET} --target=${TARGET_TRIPLET}
--enable-targets=all \
    --with-arch-32=x86-64 --with-tune-32=generic \
    --with-arch-64=x86-64 --with-tune-64=generic --with-fpmath=sse \
    --enable-fully-dynamic-string --disable-nls \
    --enable-languages=c,c++,fortran,objc,obj-c++,go \
    --enable-libgomp --enable-libssp --enable-lto
--enable-cloog-backend=ppl-legacy

Then make failed. I think this maybe due to libgo invade the traditional 
C name-space in the header file 'libgo/runtime/malloc.h', could we change 
the header name to 'libgo/runtime/go-malloc.h' ?

make failed with the following errors:

make[4]: Entering directory
`/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc/i686-w64-mingw32/libgo'
/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc/./gcc/xgcc
-B/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc/./gcc/
-L/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib
-L/home/oracle/gcc-4.6-windows_i686-linux/mingw/lib -isystem
/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/include -isystem
/home/oracle/gcc-4.6-windows_i686-linux/mingw/include
-B/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/bin/
-B/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib/ -isystem
/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/include -isystem
/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/sys-include   
-DHAVE_CONFIG_H -I. -I/home/oracle/vcs/svn/gcc/trunk/libgo  -I
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime
-I/home/oracle/vcs/svn/gcc/trunk/libgo/../libffi/include -I../libffi/include  
-fexceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual
-Werror -minline-all-stringops -I /home/oracle/vcs/svn/gcc/trunk/libgo/../gcc
-I ../../gcc/include -g -O2 -MT go-main.o -MD -MP -MF .deps/go-main.Tpo -c -o
go-main.o `test -f 'runtime/go-main.c' || echo
'/home/oracle/vcs/svn/gcc/trunk/libgo/'`runtime/go-main.c
In file included from
/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/include/stdlib.h:635:0,
                 from /home/oracle/vcs/svn/gcc/trunk/libgo/runtime/go-main.c:9:
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:98:1: error: unknown type
name 'uintptr'
In file included from
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:116:0,
                 from
/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/include/stdlib.h:635,
                 from /home/oracle/vcs/svn/gcc/trunk/libgo/runtime/go-main.c:9:
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:36:1: error: unknown
type name 'bool'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:36:58: error: unknown
type name 'uintptr'
In file included from
/home/oracle/gcc-4.6-windows_i686-linux/i686-w64-mingw32/include/stdlib.h:635:0,
                 from /home/oracle/vcs/svn/gcc/trunk/libgo/runtime/go-main.c:9:
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:138:24: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:139:31: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:140:33: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:153:2: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:155:27: error: unknown
type name 'byte'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:158:2: error: unknown
type name 'byte'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:159:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:160:2: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:161:2: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:164:41: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:164:101: error: unknown
type name 'byte'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:164:109: error: expected
';', ',' or ')' before 'void'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:174:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:175:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:176:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:177:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:178:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:179:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:183:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:184:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:185:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:186:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:187:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:191:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:192:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:193:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:194:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:195:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:196:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:197:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:198:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:202:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:203:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:204:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:205:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:206:2: error: unknown
type name 'bool'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:207:2: error: unknown
type name 'bool'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:212:3: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:213:3: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:214:3: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:235:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:236:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:237:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:238:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:248:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:249:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:255:2: error: unknown
type name 'uint64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:256:2: error: unknown
type name 'int64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:257:2: error: unknown
type name 'int64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:258:2: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:261:28: error: unknown
type name 'MCache'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:261:39: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:261:56: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:261:70: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:262:26: error: unknown
type name 'MCache'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:262:46: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:262:63: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:263:32: error: unknown
type name 'MCache'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:279:2: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:281:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:282:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:283:2: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:285:3: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:286:3: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:290:52: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:296:1: error: unknown
type name 'bool'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:304:2: error: expected
specifier-qualifier-list before 'Lock'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:311:41: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:312:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:312:47: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:313:45: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:320:2: error: expected
specifier-qualifier-list before 'Lock'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:347:38: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:347:53: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:347:70: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:348:45: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:351:32: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:351:49: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:351:62: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:351:77: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:353:24: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:353:38: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:353:51: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:353:63: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:354:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:354:32: error: unknown
type name 'byte'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:354:45: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:354:71: error: unknown
type name 'uint32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:355:17: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:358:31: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:359:29: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:377:34: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:378:32: error: unknown
type name 'uintptr'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:379:38: error: unknown
type name 'byte'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:379:46: error: unknown
type name 'int64'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:388:1: error: unknown
type name 'int32'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:399:40: error: unknown
type name 'bool'
In file included from
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/go-main.c:22:0:
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:94:2: error:
redeclaration of enumerator 'PageShift'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:94:2: note: previous
definition of 'PageShift' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:95:2: error:
redeclaration of enumerator 'PageSize'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:95:2: note: previous
definition of 'PageSize' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:96:2: error:
redeclaration of enumerator 'PageMask'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:96:2: note: previous
definition of 'PageMask' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:98:17: error: conflicting
types for 'PageID'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:98:17: note: previous
declaration of 'PageID' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:103:2: error:
redeclaration of enumerator 'NumSizeClasses'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:103:2: note: previous
definition of 'NumSizeClasses' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:104:2: error:
redeclaration of enumerator 'MaxSmallSize'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:104:2: note: previous
definition of 'MaxSmallSize' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:106:2: error:
redeclaration of enumerator 'FixAllocChunk'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:106:2: note: previous
definition of 'FixAllocChunk' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:107:2: error:
redeclaration of enumerator 'MaxMCacheListLen'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:107:2: note: previous
definition of 'MaxMCacheListLen' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:108:2: error:
redeclaration of enumerator 'MaxMCacheSize'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:108:2: note: previous
definition of 'MaxMCacheSize' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:109:2: error:
redeclaration of enumerator 'MaxMHeapList'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:109:2: note: previous
definition of 'MaxMHeapList' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:110:2: error:
redeclaration of enumerator 'HeapAllocChunk'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:110:2: note: previous
definition of 'HeapAllocChunk' was here
In file included from
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:116:0,
                 from
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/go-main.c:22:
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:13:2: error:
redeclaration of enumerator 'MHeapMap_Level1Bits'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:13:2: note: previous
definition of 'MHeapMap_Level1Bits' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:14:2: error:
redeclaration of enumerator 'MHeapMap_Level2Bits'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:14:2: note: previous
definition of 'MHeapMap_Level2Bits' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:16:2: error:
redeclaration of enumerator 'MHeapMap_TotalBits'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:16:2: note: previous
definition of 'MHeapMap_TotalBits' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:20:2: error:
redeclaration of enumerator 'MHeapMap_Level1Mask'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:20:2: note: previous
definition of 'MHeapMap_Level1Mask' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:21:2: error:
redeclaration of enumerator 'MHeapMap_Level2Mask'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:21:2: note: previous
definition of 'MHeapMap_Level2Mask' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:24:8: error:
redefinition of 'struct MHeapMap'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:87:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:30:8: error:
redefinition of 'struct MHeapMapNode2'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:8:16: note:
originally defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:37:8: error:
conflicting types for 'runtime_MHeapMap_Get'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:37:8: note: previous
declaration of 'runtime_MHeapMap_Get' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:38:8: error:
conflicting types for 'runtime_MHeapMap_GetMaybe'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:38:8: note: previous
declaration of 'runtime_MHeapMap_GetMaybe' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:39:6: error:
conflicting types for 'runtime_MHeapMap_Set'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/mheapmap32.h:39:6: note: previous
declaration of 'runtime_MHeapMap_Set' was here
In file included from
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/go-main.c:22:0:
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:120:8: error:
redefinition of 'struct MLink'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:90:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:151:8: error:
redefinition of 'struct FixAlloc'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:84:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:171:8: error:
redefinition of 'struct MStats'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:89:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:245:8: error:
redefinition of 'struct MCacheList'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:244:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:252:8: error:
redefinition of 'struct MCache'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:252:8: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:268:2: error:
redeclaration of enumerator 'MSpanInUse'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:268:2: note: previous
definition of 'MSpanInUse' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:269:2: error:
redeclaration of enumerator 'MSpanFree'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:269:2: note: previous
definition of 'MSpanFree' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:270:2: error:
redeclaration of enumerator 'MSpanListHead'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:270:2: note: previous
definition of 'MSpanListHead' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:271:2: error:
redeclaration of enumerator 'MSpanDead'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:271:2: note: previous
definition of 'MSpanDead' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:273:8: error:
redefinition of 'struct MSpan'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:88:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:296:6: error: conflicting
types for 'runtime_MSpanList_IsEmpty'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:296:6: note: previous
declaration of 'runtime_MSpanList_IsEmpty' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:302:8: error:
redefinition of 'struct MCentral'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:85:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:318:8: error:
redefinition of 'struct MHeap'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:86:16: note: originally
defined here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:349:8: error: conflicting
types for 'runtime_MHeap_Lookup'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:349:8: note: previous
declaration of 'runtime_MHeap_Lookup' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:350:8: error: conflicting
types for 'runtime_MHeap_LookupMaybe'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:350:8: note: previous
declaration of 'runtime_MHeap_LookupMaybe' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:363:2: error:
redeclaration of enumerator 'RefcountOverhead'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:363:2: note: previous
definition of 'RefcountOverhead' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:365:2: error:
redeclaration of enumerator 'RefFree'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:365:2: note: previous
definition of 'RefFree' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:366:2: error:
redeclaration of enumerator 'RefStack'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:366:2: note: previous
definition of 'RefStack' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:367:2: error:
redeclaration of enumerator 'RefNone'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:367:2: note: previous
definition of 'RefNone' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:368:2: error:
redeclaration of enumerator 'RefSome'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:368:2: note: previous
definition of 'RefSome' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:369:2: error:
redeclaration of enumerator 'RefNoPointers'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:369:2: note: previous
definition of 'RefNoPointers' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:370:2: error:
redeclaration of enumerator 'RefHasFinalizer'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:370:2: note: previous
definition of 'RefHasFinalizer' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:371:2: error:
redeclaration of enumerator 'RefProfiled'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:371:2: note: previous
definition of 'RefProfiled' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:372:2: error:
redeclaration of enumerator 'RefNoProfiling'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:372:2: note: previous
definition of 'RefNoProfiling' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:373:2: error:
redeclaration of enumerator 'RefFlags'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:373:2: note: previous
definition of 'RefFlags' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:384:2: error:
redeclaration of enumerator 'MProf_None'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:384:2: note: previous
definition of 'MProf_None' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:385:2: error:
redeclaration of enumerator 'MProf_Sample'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:385:2: note: previous
definition of 'MProf_Sample' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:386:2: error:
redeclaration of enumerator 'MProf_All'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:386:2: note: previous
definition of 'MProf_All' was here
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:391:8: error:
redefinition of 'struct Finalizer'
/home/oracle/vcs/svn/gcc/trunk/libgo/runtime/malloc.h:390:16: note: originally
defined here
make[4]: *** [go-main.o] Error 1
make[4]: Leaving directory
`/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc/i686-w64-mingw32/libgo'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc/i686-w64-mingw32/libgo'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc/i686-w64-mingw32/libgo'
make[1]: *** [all-target-libgo] Error 2
make[1]: Leaving directory
`/home/oracle/tmp/gcc-4.6-windows_i686-linux-obj/gcc'
make: *** [all] Error 2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug go/47726] language go can not build for mingw target
  2011-02-14  3:21 [Bug go/47726] New: language go can not build for mingw target dongsheng.song at gmail dot com
@ 2011-05-01 22:41 ` vanboxem.ruben at gmail dot com
  2012-02-14 19:49 ` ian at airs dot com
  2021-08-30  2:41 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: vanboxem.ruben at gmail dot com @ 2011-05-01 22:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47726

Ruben Van Boxem <vanboxem.ruben at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vanboxem.ruben at gmail dot
                   |                            |com

--- Comment #1 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 2011-05-01 22:38:55 UTC ---
I can confirm this problem. I concur with Dongsheng's proposal.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug go/47726] language go can not build for mingw target
  2011-02-14  3:21 [Bug go/47726] New: language go can not build for mingw target dongsheng.song at gmail dot com
  2011-05-01 22:41 ` [Bug go/47726] " vanboxem.ruben at gmail dot com
@ 2012-02-14 19:49 ` ian at airs dot com
  2021-08-30  2:41 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ian at airs dot com @ 2012-02-14 19:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47726

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |SUSPENDED
   Last reconfirmed|                            |2012-02-14
     Ever Confirmed|0                           |1

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2012-02-14 19:49:32 UTC ---
Thanks for reporting the bug.  The gccgo compiler does not yet support Windows.
 A bunch of work will be required in the libgo library to make this work.  I
don't know changes will be required in the compiler, if any.  I hope that
somebody will work on this but I do not expect to have time to do it myself.

The other Go compiler (http://golang.org/) does work on Windows.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug go/47726] language go can not build for mingw target
  2011-02-14  3:21 [Bug go/47726] New: language go can not build for mingw target dongsheng.song at gmail dot com
  2011-05-01 22:41 ` [Bug go/47726] " vanboxem.ruben at gmail dot com
  2012-02-14 19:49 ` ian at airs dot com
@ 2021-08-30  2:41 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30  2:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47726

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
           Severity|critical                    |normal

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-30  2:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14  3:21 [Bug go/47726] New: language go can not build for mingw target dongsheng.song at gmail dot com
2011-05-01 22:41 ` [Bug go/47726] " vanboxem.ruben at gmail dot com
2012-02-14 19:49 ` ian at airs dot com
2021-08-30  2:41 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).