From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21071 invoked by alias); 14 Feb 2011 03:18:40 -0000 Received: (qmail 21063 invoked by uid 22791); 14 Feb 2011 03:18:37 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Feb 2011 03:18:30 +0000 From: "dongsheng.song at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/47726] New: language go can not build for mingw target X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: dongsheng.song at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 14 Feb 2011 03:21:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg01610.txt.bz2 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