[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 --- Comment #7 from Ian Lance Taylor --- Sorry, I'm not sure what is causing that error. Why don't you just compile GCC trunk?
[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 --- Comment #6 from martin --- Created attachment 42122 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42122&action=edit recompiled-gcc7.2-with-patch ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:867:7: error: type mismatch between switch value and case clause case _MSpanStack: ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:871:7: error: type mismatch between switch value and case clause case _MSpanInUse: ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:887:10: error: incompatible types in assignment (cannot use type mSpanState as type uint8) s.state = _MSpanFree ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:904:26: error: incompatible types in binary expression if t != nil && t.state == _MSpanFree { ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:912:12: error: incompatible types in assignment (cannot use type mSpanState as type uint8) t.state = _MSpanDead ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:918:26: error: incompatible types in binary expression if t != nil && t.state == _MSpanFree { ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:924:12: error: incompatible types in assignment (cannot use type mSpanState as type uint8) t.state = _MSpanDead ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:1023:13: error: incompatible types in assignment (cannot use type mSpanState as type uint8) span.state = _MSpanDead ^ make[4]: *** [Makefile:3331: runtime.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2746: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[2]: *** [Makefile:1344: all] Error 2 make[2]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[1]: *** [Makefile:18527: all-target-libgo] Error 2 make[1]: Leaving directory '/c/media/gcc-7.2.0-go' make: *** [Makefile:931: all] Error 2 nas-02-90-38:/media/gcc-7.2.0-go# nas-02-90-38:/media/gcc-7.2.0-go# /usr/local/bin/make >&log.log
[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 --- Comment #5 from martin --- I recompiled gcc 7.2.0 with your applied patch: I did: cd gcc-7.2.0/ patch gcc/go/gofrontend/types.cc < ../f9bad13.diff cd .. cd gcc-7.2.0-go/ ../gcc-7.2.0/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.2.0 --with-cpu=v7 --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm /usr/local/bin/make The error seems to be the same.
[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 martin changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from martin --- Thanks, I'll retry the last gcc 7.2. with your patch from https://go-review.googlesource.com/c/gofrontend/+/40701/2/go/types.cc#b6918
[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 --- Comment #3 from Ian Lance Taylor --- I'm sorry, I can't support a mix of different GCC sources. You are welcome to try to figure out what is going wrong, but I don't know. At a guess, you are using a version of libgo/match.sh that does not know about "aix" with sources that include AIX support. But I'm not really sure.
[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 --- Comment #2 from martin --- I looked at the bash history and I used the trunk source to compile gcc. I'm sorry for the wrong information.
[Bug go/82043] error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 --- Comment #1 from Ian Lance Taylor --- This can't be GCC 7 branch, because files like libgo/go/runtime/heapdump.go and libgo/go/runtime/os_aix.go don't exist in GCC 7 branch. They only exist on trunk.