Notice! at 2009-11-12 Go is not ported for Windows. below, just try!
see http://golang.org/doc/install.html for official info.
Windows MinGW install log 2009-11-12
MinGW
MinGW 5.1.6
http://sourceforge.net/projects/mingw/
http://sourceforge.net/projects/mingw/files/
install as d:\mingw
MSYS
MSYS-1.0.11.exe
Others
mingw32-gmp-4.3.1-1.zip mpfr-2.3.2.tar.bz2 [MSYS regex]-[regex-1.20090805-1] libregex-1.20090805-1-msys-1.0.11-dll-1.tar.lzma [MSYS flex]-[flex-2.5.35-1] flex-2.5.35-1-msys-1.0.11-bin.tar.lzma [MSYS bison]-[bison-2.4.1-1] bison-2.4.1-1-msys-1.0.11-bin.tar.lzma [MinGW libiconv]-[libiconv-1.13.1-1] libcharset-1.13.1-1-mingw32-dll-1.tar.lzma svn.exe gcc gccgo
get gccgo
D:\MinGW\svn\bin\svn.exe checkout svn://gcc.gnu.org/svn/gcc/branches/gccgogccgo
zip file 118MB 2009-11-11 gccgo/
compile
--- msys.bat cd /d/MinGW/ mkdir workdir cd workdir (configure) ../gccgo/configure --prefix=/mingw \ --build=mingw32 --host=mingw32 --target=mingw32 \ --enable-languages=c,c++,go --enable-threads=win32 \ --enable-shared --enable-fully-dynamic-strings \ --enable-sjlj-exceptions --enable-version-specific-runtime-libs \ --enable-libgomp --enable-libstdcxx-debug \ --disable-bootstrap --disable-win32-registry --disable-nls --disable-werror \ --with-cpu-32=core2 --with-arch-32=core2 --with-tune-32=core2 \ --with-gmp=/mingw --with-mpfr=/mingw --with-ppl=/mingw \ --with-cloog=/mingw --with-host-libstdcxx='-lstdc++' \ --with-build-time-tools=/mingw/bin \ --with-gmp=/d/MinGW/ --with-mpfr=/d/MinGW/
:
:
FAILED:around ../../gccgo/libstdc++-v3/include
log
make[1]: Entering directory `/d/mingw/objdir' make[2]: Entering directory `/d/mingw/objdir/libiberty' make[3]: Entering directory `/d/mingw/objdir/libiberty/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/d/mingw/objdir/libiberty/testsuite' make[2]: Leaving directory `/d/mingw/objdir/libiberty' make[2]: Entering directory `/d/mingw/objdir/fixincludes' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/d/mingw/objdir/fixincludes' make[2]: Entering directory `/d/mingw/objdir/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/d/mingw/objdir/intl' make[2]: Entering directory `/d/mingw/objdir/build-mingw32/libiberty' make[3]: Entering directory `/d/mingw/objdir/build-mingw32/libiberty/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/d/mingw/objdir/build-mingw32/libiberty/testsuite' make[2]: Leaving directory `/d/mingw/objdir/build-mingw32/libiberty' make[2]: Entering directory `/d/mingw/objdir/build-mingw32/fixincludes' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/d/mingw/objdir/build-mingw32/fixincludes' make[2]: Entering directory `/d/mingw/objdir/zlib' true "AR_FLAGS=rc" "CC_FOR_BUILD=mingw32-gcc" "CFLAGS=-g -O2 -D__USE_MINGW_ACCESS" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/bin/install -c" "INSTALL_DATA=/bin/install -c -m 644" "INSTALL_PROGRAM=/bin/install -c" "INSTALL_SCRIPT=/bin/install -c" "LDFLAGS=-Wl,--stack,8388608" "LIBCFLAGS=-g -O2 -D__USE_MINGW_ACCESS" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/mingw" "infodir=/mingw/share/info" "libdir=/mingw/lib" "prefix=/mingw" "tooldir=/mingw/mingw32" "AR=ar" "AS=as" "CC=mingw32-gcc" "CXX=mingw32-g++" "LD=d:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/ld.exe" "LIBCFLAGS=-g -O2 -D__USE_MINGW_ACCESS" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make make[2]: Leaving directory `/d/mingw/objdir/zlib' make[2]: Entering directory `/d/mingw/objdir/libcpp' test -f config.h || (rm -f stamp-h1 && make stamp-h1) make[2]: Leaving directory `/d/mingw/objdir/libcpp' make[2]: Entering directory `/d/mingw/objdir/libdecnumber' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/d/mingw/objdir/libdecnumber' make[2]: Entering directory `/d/mingw/objdir/gcc' mingw32-g++ -c -I ../../gccgo/gcc/../elfcpp -I. -Igo -I../../gccgo/gcc -I../../gccgo/gcc/go -I../../gccgo/gcc/../include -I../../gccgo/gcc/../libcpp/include -I/MinGW//include -I/usr/local/include -I../../gccgo/gcc/../libdecnumber -I../../gccgo/gcc/../libdecnumber/dpd -I../libdecnumber -g -O2 -D__USE_MINGW_ACCESS -DIN_GCC -DGO_DEBUGGING_INFO -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -g -O2 ../../gccgo/gcc/go/dataflow.cc -o go/dataflow.o In file included from ../../gccgo/gcc/go/dataflow.cc:7: ../../gccgo/gcc/go/go-system.h:14:29: tr1/unordered_map: No such file or directory In file included from ../../gccgo/gcc/go/dataflow.cc:9: ../../gccgo/gcc/go/gogo.h:9:29: tr1/unordered_set: No such file or directory In file included from ../../gccgo/gcc/go/dataflow.cc:9: ../../gccgo/gcc/go/gogo.h:670: error: `std::tr1' has not been declared ../../gccgo/gcc/go/gogo.h:670: error: ISO C++ forbids declaration of `unordered_map' with no type ../../gccgo/gcc/go/gogo.h:670: error: expected `;' before '<' token ../../gccgo/gcc/go/gogo.h:674: error: `std::tr1' has not been declared ../../gccgo/gcc/go/gogo.h:674: error: ISO C++ forbids declaration of `unordered_map' with no type ../../gccgo/gcc/go/gogo.h:674: error: expected `;' before '<' token ../../gccgo/gcc/go/gogo.h:690: error: ISO C++ forbids declaration of `Map_descriptors' with no type ../../gccgo/gcc/go/gogo.h:690: error: expected `;' before '*' token ../../gccgo/gcc/go/gogo.h:692: error: ISO C++ forbids declaration of `Type_descriptor_decls' with no type ../../gccgo/gcc/go/gogo.h:692: error: expected `;' before '*' token ../../gccgo/gcc/go/gogo.h:920: error: `std::tr1' has not been declared ../../gccgo/gcc/go/gogo.h:920: error: ISO C++ forbids declaration of `unordered_map' with no type ../../gccgo/gcc/go/gogo.h:920: error: expected `;' before '<' token ../../gccgo/gcc/go/gogo.h:951: error: `Labels' does not name a type ../../gccgo/gcc/go/gogo.h:1763: error: `std::tr1' has not been declared ../../gccgo/gcc/go/gogo.h:1763: error: ISO C++ forbids declaration of `unordered_map' with no type ../../gccgo/gcc/go/gogo.h:1763: error: expected `;' before '<' token ../../gccgo/gcc/go/gogo.h:1903: error: `Contour' has not been declared ../../gccgo/gcc/go/gogo.h:1903: error: ISO C++ forbids declaration of `const_iterator' with no type ../../gccgo/gcc/go/gogo.h:1903: error: expected `;' before "const_declarations_iterator" ../../gccgo/gcc/go/gogo.h:1905: error: `const_declarations_iterator' does not name a type ../../gccgo/gcc/go/gogo.h:1909: error: `const_declarations_iterator' does not name a type ../../gccgo/gcc/go/gogo.h:1930: error: expected `;' before '(' token ../../gccgo/gcc/go/gogo.h:1940: error: `Contour' does not name a type ../../gccgo/gcc/go/gogo.h: In member function `Named_object* Bindings::add_named_object(Named_object*)': ../../gccgo/gcc/go/gogo.h:1856: error: 'class Bindings' has no member named 'add_named_object_to_contour' ../../gccgo/gcc/go/gogo.h:1856: error: 'class Bindings' has no member named 'bindings_' ../../gccgo/gcc/go/gogo.h: In member function `size_t Bindings::size_declarations() const': ../../gccgo/gcc/go/gogo.h:1916: error: 'const class Bindings' has no member named 'bindings_' ../../gccgo/gcc/go/gogo.h: In member function `bool Bindings::empty_declarations() const': ../../gccgo/gcc/go/gogo.h:1921: error: 'const class Bindings' has no member named 'bindings_' ../../gccgo/gcc/go/gogo.h: In member function `Named_object* Bindings::first_declaration()': ../../gccgo/gcc/go/gogo.h:1926: error: 'class Bindings' has no member named 'bindings_' ../../gccgo/gcc/go/gogo.h:1926: error: 'class Bindings' has no member named 'bindings_' ../../gccgo/gcc/go/gogo.h: At global scope: ../../gccgo/gcc/go/gogo.h:2179: error: `std::tr1' has not been declared ../../gccgo/gcc/go/gogo.h:2179: error: ISO C++ forbids declaration of `unordered_set' with no type ../../gccgo/gcc/go/gogo.h:2179: error: expected `;' before '<' token ../../gccgo/gcc/go/gogo.h:2185: error: ISO C++ forbids declaration of `Types_seen' with no type ../../gccgo/gcc/go/gogo.h:2185: error: expected `;' before '*' token ../../gccgo/gcc/go/gogo.h: In constructor `Traverse::Traverse(unsigned int)': ../../gccgo/gcc/go/gogo.h:2123: error: class `Traverse' does not have any field named `types_seen_' In file included from ../../gccgo/gcc/go/dataflow.cc:11: ../../gccgo/gcc/go/statements.h: At global scope: ../../gccgo/gcc/go/statements.h:1063: error: `std::tr1' has not been declared ../../gccgo/gcc/go/statements.h:1063: error: ISO C++ forbids declaration of `unordered_set' with no type ../../gccgo/gcc/go/statements.h:1063: error: expected `;' before '<' token ../../gccgo/gcc/go/statements.h:1121: error: `Case_constants' has not been declared ../../gccgo/gcc/go/statements.h:1121: error: ISO C++ forbids declaration of `case_constants' with no type Error 1 make[2]: Leaving directory `/d/mingw/objdir/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/d/mingw/objdir' make: *** [all] Error 2