[Bug libgomp/90527] New: alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90527 Bug ID: 90527 Summary: alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’ Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 46376 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46376&action=edit config.log of libgomp the exact version of GCC: gcc-9.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-9.1.0/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-9.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] make[5]: Entering directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' /bin/sh ./libtool --tag=CC --mode=compile /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/xgcc -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/config/posix -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/../include -Wall -Werror -Wc,-pthread -g -O2 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c -o alloc.lo ../../../gcc-9.1.0/libgomp/alloc.c libtool: compile: /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/xgcc -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/config/posix -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/../include -Wall -pthread -Werror -g -O2 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../../../gcc-9.1.0/libgomp/alloc.c -fPIC -DPIC -o .libs/alloc.o ../../../gcc-9.1.0/libgomp/alloc.c: In function ‘gomp_aligned_alloc’: ../../../gcc-9.1.0/libgomp/alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’ [-Werror=implicit-function-declaration] 72 | if (posix_memalign (&ret, al, size) != 0) | ^~ cc1: all warnings being treated as errors make[5]: *** [Makefile:787: alloc.lo] Error 1 make[5]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' make[4]: *** [Makefile:1010: all-recursive] Error 1 make[4]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' make[3]: *** [Makefile:614: all] Error 2 make[3]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp'
[Bug libgomp/90527] alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90527 --- Comment #2 from martin --- Sad to hear. The system is quite old. >uname -a 2.6.17.14 ldd (GNU libc) 2.3.2
[Bug libgomp/90527] alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90527 martin changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |WORKSFORME --- Comment #4 from martin --- Thanks, the applied patch works.
[Bug go/90614] New: gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90614 Bug ID: 90614 Summary: gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w) Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Created attachment 46405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46405&action=edit config.log libgo the exact version of GCC: gcc-9.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-9.1.0/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-9.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] /bin/sh ./libtool --tag=CC --mode=compile /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/xgcc -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.1.0/libgo -I ../../../gcc-9.1.0/libgo/runtime -I../../../gcc-9.1.0/libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-9.1.0/libgo/../libgcc -I ../../../gcc-9.1.0/libgo/../libbacktrace -I ../../gcc/include -g -O2 -c -o syscall/wait.lo ../../../gcc-9.1.0/libgo/go/syscall/wait.c libtool: compile: /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/xgcc -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.1.0/libgo -I ../../../gcc-9.1.0/libgo/runtime -I../../../gcc-9.1.0/libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-9.1.0/libgo/../libgcc -I ../../../gcc-9.1.0/libgo/../libbacktrace -I ../../gcc/include -g -O2 -c ../../../gcc-9.1.0/libgo/go/syscall/wait.c -fPIC -DPIC -o syscall/.libs/wait.o ../../../gcc-9.1.0/libgo/go/syscall/wait.c: In function ‘Continued’: ../../../gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] 54 | Continued (uint32_t *w) | ~~^ cc1: all warnings being treated as errors make[4]: *** [Makefile:2888: syscall/wait.lo] Error 1 make[4]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2235: all-recursive] Error 1 make[3]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgo' make[2]: *** [
[Bug go/90614] gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90614 --- Comment #1 from martin --- Created attachment 46406 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46406&action=edit libgo gen-sysinfo.go
[Bug go/90614] gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90614 --- Comment #2 from martin --- Created attachment 46408 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46408&action=edit wait.h in /usr/include/
[Bug go/90614] gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90614 --- Comment #3 from martin --- Created attachment 46409 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46409&action=edit wait.h /usr/include/sys/
[Bug go/90614] gcc-9.1.0/libgo/go/syscall/wait.c:54:22: error: unused parameter ‘w’ [-Werror=unused-parameter] Continued (uint32_t *w)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90614 --- Comment #7 from martin --- (In reply to Ian Lance Taylor from comment #6) > Fixed on trunk and GCC 9 branch. Many thanks!
[Bug go/90645] New: sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fdopendir'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90645 Bug ID: 90645 Summary: sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fdopendir' Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- the exact version of GCC: gcc-9.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-9.1.0/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-9.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] make[2]: Entering directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/gotools' /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/gccgo -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -g -O2 -I ../sparc-unknown-linux-gnu/libgo -static-libstdc++ -static-libgcc -L ../sparc-unknown-linux-gnu/libgo -L ../sparc-unknown-linux-gnu/libgo/.libs -o go ../../gcc-9.1.0/gotools/../libgo/go/cmd/go/alldocs.go ../../gcc-9.1.0/gotools/../libgo/go/cmd/go/go11.go ../../gcc-9.1.0/gotools/../libgo/go/cmd/go/main.go ../sparc-unknown-linux-gnu/libgo/libgotool.a ../sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fdopendir' ../sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `__sync_bool_compare_and_swap_4' ../sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `__tls_get_addr' ../sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `__go_openat' ../sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fstatat64' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:821: go] Error 1 make[2]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/gotools' make[1]: *** [Makefile:15520: all-gotools] Error 2 make[1]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled' make: *** [Makefile:993: all] Error 2 ldd -r /backup/fes-readynasduo/gcc-9.1.0-compiled/gcc/gccgo libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x2002c000) libm.so.6 => /lib/libm.so.6 (0x20124000) libc.so.6 => /lib/libc.so.6 (0x201b8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2000) /backup/fes-readynasduo/gcc-9.1.0-compiled/gcc/gccgo --version gccgo (GCC) 9.1.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Not sure which information is important for this bug.
[Bug go/90645] sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fdopendir'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90645 --- Comment #2 from martin --- Created attachment 46419 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46419&action=edit usr\include\bits ldd --version ldd (GNU libc) 2.3.2 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
[Bug go/90645] sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fdopendir'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90645 --- Comment #5 from martin --- Are there any chances to get gccgo build on this machine by the following options? - crosscompiling - update libc
[Bug go/90645] sparc-unknown-linux-gnu/libgo/.libs/libgo.so: undefined reference to `fdopendir'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90645 --- Comment #8 from martin --- Thanks for the clarification.
[Bug bootstrap/87013] New: xgcc: fatal error: no input files
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87013 Bug ID: 87013 Summary: xgcc: fatal error: no input files Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de Target Milestone: --- Created attachment 44556 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44556&action=edit config.log of gcc-8.2.0-compiled\sparc-linux\libgcc he exact version of GCC: gcc-8.2.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-8.2.0/configure --prefix=/opt/gcc-8.2/ --enable-languages=c,c++,go --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-doc --host=sparc-linux --build=sparc-linux --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --disable-libcilkrts --disable-libitm --disable-libitm CC=/opt/gcc-7.3/bin/gcc CXX=/opt/gcc-7.3/bin/g++ && /usr/local/bin/make ## - ## ## Platform. ## ## - ## hostname = nas-02-90-38 uname -m = padre uname -r = 2.6.17.14ReadyNAS uname -s = Linux uname -v = #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] esac mv tmp2-tm.texi tmp-tm.texi /bin/sh ../../gcc-8.2.0/gcc/../move-if-change tmp-tm.texi tm.texi if [ xinfo = xinfo ]; then \ makeinfo --split-size=500 --split-size=500 --split-size=500 --no-split -I . -I ../../gcc-8.2.0/gcc/doc \ -I ../../gcc-8.2.0/gcc/doc/include -o doc/gccint.info ../../gcc-8.2.0/gcc/doc/gccint.texi; \ fi if [ xinfo = xinfo ]; then \ makeinfo --split-size=500 --split-size=500 --split-size=500 --no-split -I ../../gcc-8.2.0/gcc/doc \ -I ../../gcc-8.2.0/gcc/doc/include -o doc/gccinstall.info ../../gcc-8.2.0/gcc/doc/install.texi; \ fi if [ xinfo = xinfo ]; then \ makeinfo --split-size=500 --split-size=500 --split-size=500 --no-split -I . -I ../../gcc-8.2.0/gcc/doc \ -I ../../gcc-8.2.0/gcc/doc/include -o doc/cppinternals.info ../../gcc-8.2.0/gcc/doc/cppinternals.texi; \ fi echo timestamp > gcc.pod perl ../../gcc-8.2.0/gcc/../contrib/texi2pod.pl ../../gcc-8.2.0/gcc/doc/invoke.texi > gcc.pod echo timestamp > doc/gcc.1 (pod2man --center="GNU" --release="gcc-8.2.0" --date=2018-07-26 --section=1 gcc.pod > doc/gcc.1.T$$ && \ mv -f doc/gcc.1.T$$ doc/gcc.1) || \ (rm -f doc/gcc.1.T$$ && exit 1) cp doc/gcc.1 doc/g++.1 /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=../../gcc-8.2.0/gcc/testsuite/selftests -fself-test: 40032 pass(es) in 7.23 seconds echo timestamp > s-selftest-c rm gcc.pod make[3]: Leaving directory '/c/media/gcc-8.2.0-compiled/gcc' mkdir -p -- sparc-linux/libgcc Checking multilib configuration for libgcc... Configuring stage 1 in sparc-linux/libgcc configure: creating cache ./config.cache checking build system type... sparc-unknown-linux-gnu checking host system type... sparc-unknown-linux-gnu checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... mawk checking for sparc-linux-ar... ar checking for sparc-linux-lipo... lipo checking for sparc-linux-nm... /media/gcc-8.2.0-compiled/./gcc/nm checking for sparc-linux-ranlib... ranlib checking for sparc-linux-strip... strip checking whether ln -s works... yes checking for sparc-linux-gcc... /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/lib/ -isystem /opt/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-linux/sys-include checking for suffix of object files... configure: error: in `/media/gcc-8.2.0-compiled/sparc-linux/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [Makefile:18005: configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory '/c/media/gcc-8.2.0-compiled' make[1]: *** [Makefile:23279: stage1-bubble] Error 2 make[1]: Leaving directory '/c/media/gcc-8.2.0-compiled' make: *** [Makefile:941: all] Error 2
[Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87013 --- Comment #2 from martin --- Created attachment 44565 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44565&action=edit conftest.s Attached is the generated conftest.s file of the command > /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ > -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/lib/ -isystem > /opt/gcc-8.2/sparc-linux/include -isystem > /opt/gcc-8.2/sparc-linux/sys-include-c -g -O2 -save-temps conftest.c I'm afraid I don't have any assembler tools installed (Only the gcc 7.2 enviroment for C and C++) Let me know, if you need more information.
[Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87013 --- Comment #7 from martin --- Created attachment 44584 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44584&action=edit gcc\config.log Hi, sry for the delayed answer. I wanted to make sure that the compiler passed the related point, but I don't know how to verify this (the machine is still compiling). So I assume the patch is working. I attached the config.log.
[Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87013 martin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #8 from martin --- Passed related point. Confirmed working. Thanks Alex for the patch!
[Bug bootstrap/87141] New: configure:14586: error: Could not determine word size.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87141 Bug ID: 87141 Summary: configure:14586: error: Could not determine word size. Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de Target Milestone: --- Created attachment 44625 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44625&action=edit config he exact version of GCC: gcc-8.2.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-8.2.0/configure --prefix=/opt/gcc-8.2/ --enable-languages=c,c++,go --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-doc --host=sparc-linux --build=sparc-linux --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --disable-libcilkrts --disable-libitm --disable-libitm CC=/opt/gcc-7.3/bin/gcc CXX=/opt/gcc-7.3/bin/g++ && /usr/local/bin/make ## - ## ## Platform. ## ## - ## hostname = nas-02-90-38 uname -m = padre uname -r = 2.6.17.14ReadyNAS uname -s = Linux uname -v = #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug (stage3); /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] checking if /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/lib/ -isystem /opt/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-linux/sys-includesupports -c -o file.o... (cached) yes checking whether the /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/lib/ -isystem /opt/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-linux/sys-includelinker (/media/gcc-8.2.0-compiled/./gcc/collect-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for thread model used by GCC... posix checking for ANSI C header files... (cached) yes checking whether string.h and strings.h may both be included... yes looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes checking for uintptr_t... yes checking for int_least32_t... yes checking for int_fast32_t... yes checking for uint64_t... yes checking what to include in gstdint.h... stdint.h (already complete) checking fenv.h usability... yes checking fenv.h presence... yes checking for fenv.h... yes checking for 1 byte integer... yes checking for 2 byte integer... yes checking for 4 byte integer... yes checking for 8 byte integer... yes checking for 16 byte integer... no checking for __atomic_load/store for size 1... yes checking for __atomic_load/store for size 2... yes checking for __atomic_load/store for size 4... yes checking for __atomic_load/store for size 8... yes checking for __atomic_load/store for size 16... no checking for __atomic_test_and_set for size 1... yes checking for __atomic_test_and_set for size 2... yes checking for __atomic_test_and_set for size 4... yes checking for __atomic_test_and_set for size 8... yes checking for __atomic_test_and_set for size 16... no checking for __atomic_exchange for size 1... yes checking for __atomic_exchange for size 2... yes checking for __atomic_exchange for size 4... yes checking for __atomic_exchange for size 8... no checking for __atomic_exchange for size 16... no checking for __atomic_compare_exchange for size 1... yes checking for __atomic_compare_exchange for size 2... yes checking for __atomic_compare_exchange for size 4... yes checking for __atomic_compare_exchange for size 8... no checking for __atomic_compare_exchange for size 16... no checking for __atomic_fetch_add for size 1... yes checking for __atomic_fetch_add for size 2... yes checking for __atomic_fetch_add for size 4... yes checking for __atomic_fetch_add for size 8... no checking for __atomic_fetch_add for size 16... no checking for __atomic_fetch_op for size 1... yes checking for __atomic_fetch_op for size 2... yes checking for __atomic_fetch_op for size 4... yes checking for __atomic_fetch_op for size 8... no checking for __atomic_fetch_op for size 16... no checking whether byte ordering is bigendian... yes checking for the word size... configure: error: Could not determine word size. make[1]: *** [Makefile:22655: configure-target-libatomic] Error 1 make[1]: Leavin
[Bug bootstrap/87141] configure:14586: error: Could not determine word size.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87141 --- Comment #2 from martin --- >Can you even execute a simple hello world you compile yourself? Yes (using /opt/gcc-7.3/bin/gcc). >here (x86_64-linux) 126 is ENOKEY. Looks like somehow your platform requires signed executables? No, I already compiled many libraries and executables like libmpc,libgnutls, curl,wget and never had any issues which mention to sign the executables.
[Bug bootstrap/87141] configure:14586: error: Could not determine word size.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87141 --- Comment #3 from martin --- Created attachment 44633 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44633&action=edit config.log of root gcc dir
[Bug bootstrap/87141] configure:14586: error: Could not determine word size.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87141 --- Comment #4 from martin --- @Richard Biener do you need more information for this issue?
[Bug go/88060] New: ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88060 Bug ID: 88060 Summary: ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utim esnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’ Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Created attachment 45021 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45021&action=edit libgo config log Configure: gcc-compiled8# ../gcc-8.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-8.2/ --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --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 System:Sparc Error: libtool: compile: /backup/gcc-compiled8/./gcc/gccgo -B/backup/gcc-compiled8/./gcc/ -B/opt/gcc-8.2/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-8.2/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-8.2/sparc-unknown-linux-gnu/include -isystem /opt/gcc-8.2/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=syscall ../../../gcc-8.2.0/libgo/go/syscall/dirent.go ../../../gcc-8.2.0/libgo/go/syscall/endian_big.go ../../../gcc-8.2.0/libgo/go/syscall/env_unix.go ../../../gcc-8.2.0/libgo/go/syscall/errstr_linux.go ../../../gcc-8.2.0/libgo/go/syscall/exec_linux.go ../../../gcc-8.2.0/libgo/go/syscall/exec_unix.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_posix.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_posix_largefile.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_support.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_uname.go ../../../gcc-8.2.0/libgo/go/syscall/libcall_wait4.go ../../../gcc-8.2.0/libgo/go/syscall/lsf_linux.go ../../../gcc-8.2.0/libgo/go/syscall/msan0.go ../../../gcc-8.2.0/libgo/go/syscall/net.go ../../../gcc-8.2.0/libgo/go/syscall/netlink_linux.go ../../../gcc-8.2.0/libgo/go/syscall/setuidgid_linux.go ../../../gcc-8.2.0/libgo/go/syscall/sleep_select.go ../../../gcc-8.2.0/libgo/go/syscall/sockcmsg_linux.go ../../../gcc-8.2.0/libgo/go/syscall/sockcmsg_unix.go ../../../gcc-8.2.0/libgo/go/syscall/socket.go ../../../gcc-8.2.0/libgo/go/syscall/socket_linux.go ../../../gcc-8.2.0/libgo/go/syscall/socket_linux_type.go ../../../gcc-8.2.0/libgo/go/syscall/socket_posix.go ../../../gcc-8.2.0/libgo/go/syscall/str.go ../../../gcc-8.2.0/libgo/go/syscall/syscall.go ../../../gcc-8.2.0/libgo/go/syscall/syscall_errno.go ../../../gcc-8.2.0/libgo/go/syscall/syscall_linux.go ../../../gcc-8.2.0/libgo/go/syscall/syscall_unix.go ../../../gcc-8.2.0/libgo/go/syscall/timestruct.go libcalls.go sysinfo.go syscall_arch.go epoll.go -fPIC -o .libs/syscall.o ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’ err = utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) ^ ../../../gcc-8.2.0/libgo/go/syscall/socket_linux.go:173:22: error: reference to undefined name ‘SizeofIPv6MTUInfo’ vallen := Socklen_t(SizeofIPv6MTUInfo) ^ ../../../gcc-8.2.0/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type ‘IPv6MTUInfo’ func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { ^ ../../../gcc-8.2.0/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type ‘IPv6MTUInfo’ make[4]: *** [Makefile:3324: syscall.lo] Error 1 make[4]: Leaving directory '/c/backup/gcc-compiled8/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2690: all-recursive] Error 1 make[3]: Leaving directory '/c/backup/gcc-compiled8/sparc-unknown-linux-gnu/libgo' make[2]: *** [Makefile:1415: all] Error 2 make[2]: Leaving directory '/c/backup/gcc-compiled8/sparc-unknown-linux-gnu/libgo' make[1]: *** [Makefile:19279: all-target-libgo] Error 2
[Bug go/88060] ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88060 martin changed: What|Removed |Added CC||mfe at live dot de --- Comment #2 from martin --- Created attachment 45023 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45023&action=edit gen-sysinfo.go (In reply to Ian Lance Taylor from comment #1) > Can you attach the contents of sparc-unknown-linux-gnu/libgo/gen-sysinfo.go > from your build directory? > > Does the C header file on your system define AT_FDCWD? (It > normally comes from .) If not, why not? Where is it > defined? I found the file in /usr/include/fcntl.h which does not define AT_FDCWD. The content of it: /* Copyright (C) 1991,1992,1994-2001,2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* * POSIX Standard: 6.5 File Control Operations */ #ifndef _FCNTL_H #define _FCNTL_H1 #include /* This must be early so can define types winningly. */ __BEGIN_DECLS /* Get the definitions of O_*, F_*, FD_*: all the numbers and flag bits for `open', `fcntl', et al. */ #include /* For XPG all symbols from should also be available. */ #ifdef __USE_XOPEN # include #endif #ifdef __USE_MISC # ifndef R_OK /* Verbatim from . Ugh. */ /* Values for the second argument to access. These may be OR'd together. */ # define R_OK 4 /* Test for read permission. */ # define W_OK 2 /* Test for write permission. */ # define X_OK 1 /* Test for execute permission. */ # define F_OK 0 /* Test for existence. */ # endif #endif /* Use misc. */ /* XPG wants the following symbols. */ #ifdef __USE_XOPEN /* has the same definitions. */ # define SEEK_SET 0 /* Seek from beginning of file. */ # define SEEK_CUR 1 /* Seek from current position. */ # define SEEK_END 2 /* Seek from end of file. */ #endif /* XPG */ /* Do the file control operation described by CMD on FD. The remaining arguments are interpreted depending on CMD. This function is a cancellation point and therefore not marked with __THROW. */ extern int fcntl (int __fd, int __cmd, ...); /* Open FILE and return a new file descriptor for it, or -1 on error. OFLAG determines the type of access used. If O_CREAT is on OFLAG, the third argument is taken as a `mode_t', the mode of the created file. This function is a cancellation point and therefore not marked with __THROW. */ #ifndef __USE_FILE_OFFSET64 extern int open (__const char *__file, int __oflag, ...); #else # ifdef __REDIRECT extern int __REDIRECT (open, (__const char *__file, int __oflag, ...), open64); # else # define open open64 # endif #endif #ifdef __USE_LARGEFILE64 extern int open64 (__const char *__file, int __oflag, ...); #endif /* Create and open FILE, with mode MODE. This takes an `int' MODE argument because that is what `mode_t' will be widened to. This function is a cancellation point and therefore not marked with __THROW. */ #ifndef __USE_FILE_OFFSET64 extern int creat (__const char *__file, __mode_t __mode); #else # ifdef __REDIRECT extern int __REDIRECT (creat, (__const char *__file, __mode_t __mode), creat64); # else # define creat creat64 # endif #endif #ifdef __USE_LARGEFILE64 extern int creat64 (__const char *__file, __mode_t __mode); #endif #if !defined F_LOCK && (defined __USE_MISC || (defined __USE_XOPEN_EXTENDED \ && !defined __USE_POSIX)) /* NOTE: These declarations also appear in ; be sure to keep both files consistent. Some systems have them there and some here, and some software depends on the macros being defined without including both. */ /* `lockf' is a simpler interface to the locking facilities of `fcntl'. LEN is always relative to the current file position. The CMD argument is one of the following. */ # define F_ULOCK 0 /* Unlock a previously locked region. */ #
[Bug go/88060] ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88060 --- Comment #3 from martin --- Created attachment 45024 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45024&action=edit /usr/include/bits/fcntl.h I found also: /usr/include/asm-sparc/fcntl.h /usr/include/asm/fcntl.h /usr/include/asm-generic/fcntl.h /usr/include/asm-sparc64/fcntl.h /usr/include/linux/fcntl.h /usr/include/bits/fcntl.h /usr/include/fcntl.h /usr/include/sys/fcntl.h Attache is the content of /usr/include/bits/fcntl.h
[Bug go/88060] ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88060 --- Comment #4 from martin --- Created attachment 45025 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45025&action=edit /usr/include/linux/fcntl.h I found the AT_FDCWD in the file /usr/include/linux/fcntl.h
[Bug go/88060] ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88060 --- Comment #7 from martin --- (In reply to Ian Lance Taylor from comment #6) > Which version of glibc are you running on your system? Which Linux kernel > version? I'm running the kernel 2.6.17.14. ldd --version ldd (GNU libc) 2.3.2 uname -a Linux fes-a120d19nas 2.6.17.14ReadyNAS #1 Wed Jun 20 20:08:20 PDT 2012 padre unknown
[Bug go/88060] ../../../gcc-8.2.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88060 --- Comment #10 from martin --- (In reply to Ian Lance Taylor from comment #9) > These problems should be fixed. Thanks for the info. Thanks for fixing. I applied the changes from your commit to the mksysinfo.sh in my source folder. It seems that compiling go is one step further. Unfortunately it hit a new error. I create a new issue for that.
[Bug go/88135] New: error: reference to undefined identifier ‘syscall.WEXITED’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88135 Bug ID: 88135 Summary: error: reference to undefined identifier ‘syscall.WEXITED’ Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Created attachment 45053 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45053&action=edit applied path to mksysinfo Configure: gcc-compiled8# ../gcc-8.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-8.2/ --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --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 /bin/mkdir -p .; files=`echo ../../../gcc-8.2.0/libgo/go/os/dir.go ../../../gcc-8.2.0/libgo/go/os/dir_gccgo.go ../../../gcc-8.2.0/libgo/go/os/dir_largefile.go ../../../gcc-8.2.0/libgo/go/os/dir_libc_gccgo.go ../../../gcc-8.2.0/libgo/go/os/dir_unix.go ../../../gcc-8.2.0/libgo/go/os/env.go ../../../gcc-8.2.0/libgo/go/os/error.go ../../../gcc-8.2.0/libgo/go/os/error_posix.go ../../../gcc-8.2.0/libgo/go/os/error_unix.go ../../../gcc-8.2.0/libgo/go/os/exec.go ../../../gcc-8.2.0/libgo/go/os/exec_posix.go ../../../gcc-8.2.0/libgo/go/os/exec_unix.go ../../../gcc-8.2.0/libgo/go/os/executable.go ../../../gcc-8.2.0/libgo/go/os/executable_procfs.go ../../../gcc-8.2.0/libgo/go/os/file.go ../../../gcc-8.2.0/libgo/go/os/file_posix.go ../../../gcc-8.2.0/libgo/go/os/file_unix.go ../../../gcc-8.2.0/libgo/go/os/getwd.go ../../../gcc-8.2.0/libgo/go/os/path.go ../../../gcc-8.2.0/libgo/go/os/path_unix.go ../../../gcc-8.2.0/libgo/go/os/pipe_linux.go ../../../gcc-8.2.0/libgo/go/os/proc.go ../../../gcc-8.2.0/libgo/go/os/stat.go ../../../gcc-8.2.0/libgo/go/os/stat_atim.go ../../../gcc-8.2.0/libgo/go/os/stat_unix.go ../../../gcc-8.2.0/libgo/go/os/sticky_notbsd.go ../../../gcc-8.2.0/libgo/go/os/str.go ../../../gcc-8.2.0/libgo/go/os/sys.go ../../../gcc-8.2.0/libgo/go/os/sys_linux.go ../../../gcc-8.2.0/libgo/go/os/sys_unix.go ../../../gcc-8.2.0/libgo/go/os/types.go ../../../gcc-8.2.0/libgo/go/os/types_unix.go ../../../gcc-8.2.0/libgo/go/os/wait_waitid.go errors.gox internal/poll.gox internal/testlog.gox io.gox runtime.gox sync/atomic.gox sync.gox syscall.gox time.gox | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO --mode=compile /backup/gcc-compiled8/./gcc/gccgo -B/backup/gcc-compiled8/./gcc/ -B/opt/gcc-8.2/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-8.2/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-8.2/sparc-unknown-linux-gnu/include -isystem /opt/gcc-8.2/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=`echo os.lo | sed -e 's/.lo$//' -e 's|golang_org|vendor/golang_org|'` -o os.lo $files libtool: compile: /backup/gcc-compiled8/./gcc/gccgo -B/backup/gcc-compiled8/./gcc/ -B/opt/gcc-8.2/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-8.2/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-8.2/sparc-unknown-linux-gnu/include -isystem /opt/gcc-8.2/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=os ../../../gcc-8.2.0/libgo/go/os/dir.go ../../../gcc-8.2.0/libgo/go/os/dir_gccgo.go ../../../gcc-8.2.0/libgo/go/os/dir_largefile.go ../../../gcc-8.2.0/libgo/go/os/dir_libc_gccgo.go ../../../gcc-8.2.0/libgo/go/os/dir_unix.go ../../../gcc-8.2.0/libgo/go/os/env.go ../../../gcc-8.2.0/libgo/go/os/error.go ../../../gcc-8.2.0/libgo/go/os/error_posix.go ../../../gcc-8.2.0/libgo/go/os/error_unix.go ../../../gcc-8.2.0/libgo/go/os/exec.go ../../../gcc-8.2.0/libgo/go/os/exec_posix.go ../../../gcc-8.2.0/libgo/go/os/exec_unix.go ../../../gcc-8.2.0/libgo/go/os/executable.go ../../../gcc-8.2.0/libgo/go/os/executable_procfs.go ../../../gcc-8.2.0/libgo/go/os/file.go ../../../gcc-8.2.0/libgo/go/os/file_posix.go ../../../gcc-8.2.0/libgo/go/os/file_unix.go ../../../gcc-8.2.0/libgo/go/os/getwd.go ../../../gcc-8.2.0/libgo/go/os/path.go ../../../gcc-8.2.0/libgo/go/os/path_unix.go ../../../gcc-8.2.0/libgo/go/os/pipe_linux.go ../../../gcc-8.2.0/libgo/go/os/proc.go ../../../gcc-8.2.0/libgo/go/os/stat.go ../../../gcc-8.2.0/libgo/go/os/stat_atim.go ../../../gcc-8.2.0/libgo/go/os/stat_unix.go ../../../gcc-8.2.0/libgo/go/os/sticky_notbsd.go ../../../gcc-8.2.0/libgo/go/os/str.go ../../../gcc-8.2.0/libgo/go/os/sys.go ../../../gcc-8.2.0/libgo/go/os/sys_linux.go ../../../gcc-8.2.0/libgo/go/os/sys_unix.go ../../../gcc-8.2.0/libgo/go/os/types.go ../../../gcc-8.2.0/libgo/go/os/types_unix.go ../../../gcc-8.2.0/libgo/go/os/wait_waitid.go -fPIC -o .libs/os.o ../../../gcc-8.2.0/libgo/go/os/wait_waitid.go:31:113: error: reference to u
[Bug go/88135] error: reference to undefined identifier ‘syscall.WEXITED’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88135 --- Comment #1 from martin --- Created attachment 45054 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45054&action=edit gen-sysinfo
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #6 from martin --- Thanks!
[Bug go/81528] New: libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81528 Bug ID: 81528 Summary: libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://netgear.nas-central.org/wiki/Category:ReadyNasDUO) the options given when GCC was configured/built: ../gcc-5.4.0/configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --enable-__cxa_atexit --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --build=sparc-linux --host=sparc-linux --target=sparc-linux the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] ll/libcall_uname.go ../../../gcc-5.4.0/libgo/go/syscall/netlink_linux.go ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go ../../../gcc-5.4.0/libgo/go/syscall/libcall_linux_utimesnano.go ../../../gcc-5.4.0/libgo/go/syscall/libcall_linux.go libcalls.go sysinfo.go syscall_arch.go -fPIC -o .libs/syscall.o ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:69:8: error: use of undefined type ‘SockFprog’ var p SockFprog ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:70:3: error: reference to field ‘Len’ in object which has no fields or methods p.Len = uint16(len(i)) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:71:3: error: reference to field ‘Filter’ in object which has no fields or methods p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:71:15: error: reference to undefined name ‘SockFilter’ p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:71:14: error: expected pointer p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-5.4.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’ err = utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ make[4]: *** [Makefile:5857: syscall.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-5.4.0-compiled/sparc-linux/libgo' make[3]: *** [Makefile:4119: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-5.4.0-compiled/sparc-linux/libgo' make[2]: *** [Makefile:2371: all] Error 2 make[2]: Leaving directory '/c/media/gcc-5.4.0-compiled/sparc-linux/libgo' make[1]: *** [Makefile:17088: all-target-libgo] Error 2 make[1]: Leaving directory '/c/media/gcc-5.4.0-compiled' make: *** [Makefile:903: all] Error 2
[Bug sanitizer/81579] New: sanitizer_platform_limits_linux.cc:37:15: error: conflicting declaration ‘typedef __gid_t __kernel_gid_t’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81579 Bug ID: 81579 Summary: sanitizer_platform_limits_linux.cc:37:15: error: conflicting declaration ‘typedef __gid_t __kernel_gid_t’ Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: $ ../gcc-7.1.0/configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++ --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex ## - ## ## Platform. ## ## - ## hostname = nas-02-90-38 uname -m = padre uname -r = 2.6.17.14ReadyNAS uname -s = Linux uname -v = #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] er/../libstdc++-v3/libsupc++ -std=gnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I ../../../../gcc-7.1.0/libsanitizer/../libbacktrace -I ../libbacktrace -I ../../../../gcc-7.1.0/libsanitizer/../include -include ../../../../gcc-7.1.0/libsanitizer/libbacktrace/backtrace-rename.h -g -O2 -D_GNU_SOURCE -MT sanitizer_platform_limits_linux.lo -MD -MP -MF .deps/sanitizer_platform_limits_linux.Tpo -c ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc -fPIC -DPIC -o .libs/sanitizer_platform_limits_linux.o ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:37:15: error: conflicting declaration ‘typedef __gid_t __kernel_gid_t’ #define gid_t __kernel_gid_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:19:32: note: previous declaration as ‘typedef short unsigned int __kernel_gid_t’ typedef unsigned short __kernel_gid_t; ^~ ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:34:16: error: conflicting declaration ‘typedef __mode_t __kernel_mode_t’ #define mode_t __kernel_mode_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:21:32: note: previous declaration as ‘typedef short unsigned int __kernel_mode_t’ typedef unsigned short __kernel_mode_t; ^~~ ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:35:17: error: conflicting declaration ‘typedef __nlink_t __kernel_nlink_t’ #define nlink_t __kernel_nlink_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:23:32: note: previous declaration as ‘typedef short int __kernel_nlink_t’ typedef short __kernel_nlink_t; ^~~~ ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:36:15: error: conflicting declaration ‘typedef __uid_t __kernel_uid_t’ #define uid_t __kernel_uid_t ^ In file included from /usr/include/asm/posix_types.h:11:0, from /usr/include/linux/posix_types.h:46, from ../../../../gcc-7.1.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:29: /usr/include/asm-sparc/posix_types.h:18:32: note: previous declaration as ‘typedef short unsigned int __kernel_uid_t’ typedef unsigned short __kernel_uid_t; ^~ make[4]: *** [Makefile:523: sanitizer_platform_limits_linux.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-7.1.0-compiled/sparc-unknown-linux-gnu/libsanitizer/sanitizer_common'
[Bug other/81732] New: Error: Architecture mismatch on "rd".
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81732 Bug ID: 81732 Summary: Error: Architecture mismatch on "rd". Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: gcc-7.1.0-compiled# ../gcc-7.1.0/configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++ --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --disable-doc the compiler output (error messages, warnings, etc.); [...] /../../gcc-7.1.0/libcilkrts/runtime/config/sparc/os-unix-sysdep.c -fPIC -DPIC -o .libs/os-unix-sysdep.o /tmp/ccmVqkfg.s: Assembler messages: /tmp/ccmVqkfg.s:15: Error: Architecture mismatch on "rd". /tmp/ccmVqkfg.s:15: (Requires v9|v9a|v9b; requested architecture is sparclite.) /tmp/ccmVqkfg.s:16: Error: Architecture mismatch on "srlx". /tmp/ccmVqkfg.s:16: (Requires v9|v9a|v9b; requested architecture is sparclite.) /tmp/ccmVqkfg.s:34: Error: Architecture mismatch on "rd". /tmp/ccmVqkfg.s:34: (Requires v9|v9a|v9b; requested architecture is sparclite.) /tmp/ccmVqkfg.s:37: Error: Architecture mismatch on "rd". /tmp/ccmVqkfg.s:37: (Requires v9|v9a|v9b; requested architecture is sparclite.) /tmp/ccmVqkfg.s:40: Error: Architecture mismatch on "rd". /tmp/ccmVqkfg.s:40: (Requires v9|v9a|v9b; requested architecture is sparclite.) /tmp/ccmVqkfg.s:43: Error: Architecture mismatch on "rd". /tmp/ccmVqkfg.s:43: (Requires v9|v9a|v9b; requested architecture is sparclite.) make[2]: *** [Makefile:684: os-unix-sysdep.lo] Error 1 make[2]: Leaving directory '/c/media/gcc-7.1.0-compiled/sparc-unknown-linux-gnu/libcilkrts' make[1]: *** [Makefile:15512: all-target-libcilkrts] Error 2 make[1]: Leaving directory '/c/media/gcc-7.1.0-compiled' Is there a way to disable "libcilkrts" ?
[Bug sanitizer/81579] sanitizer_platform_limits_linux.cc:37:15: error: conflicting declaration ‘typedef __gid_t __kernel_gid_t’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81579 --- Comment #2 from martin --- I used the gcc-7.1.0.tar.gz tarball from the gnu download section
[Bug go/81946] New: runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 Bug ID: 81946 Summary: runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Hi, I was able to build gcc 7.1.0 with the enabled languages c and c++. Unfortunately building the last gcc 7.2. with enabling the language go results in "runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type" the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: nas-02-90-38:/media/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 ## - ## ## Platform. ## ## - ## hostname = nas-02-90-38 uname -m = padre uname -r = 2.6.17.14ReadyNAS uname -s = Linux uname -v = #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] libtool: compile: /media/gcc-7.2.0-go/./gcc/gccgo -B/media/gcc-7.2.0-go/./gcc/ -B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=runtime -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime ../../../gcc-7.2.0/libgo/go/runtime/alg.go ../../../gcc-7.2.0/libgo/go/runtime/cgo_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/chan.go ../../../gcc-7.2.0/libgo/go/runtime/compiler.go ../../../gcc-7.2.0/libgo/go/runtime/cpuprof.go ../../../gcc-7.2.0/libgo/go/runtime/cputicks.go ../../../gcc-7.2.0/libgo/go/runtime/debug.go ../../../gcc-7.2.0/libgo/go/runtime/env_posix.go ../../../gcc-7.2.0/libgo/go/runtime/error.go ../../../gcc-7.2.0/libgo/go/runtime/extern.go ../../../gcc-7.2.0/libgo/go/runtime/ffi.go ../../../gcc-7.2.0/libgo/go/runtime/hash32.go ../../../gcc-7.2.0/libgo/go/runtime/hashmap.go ../../../gcc-7.2.0/libgo/go/runtime/hashmap_fast.go ../../../gcc-7.2.0/libgo/go/runtime/iface.go ../../../gcc-7.2.0/libgo/go/runtime/lfstack.go ../../../gcc-7.2.0/libgo/go/runtime/lfstack_32bit.go ../../../gcc-7.2.0/libgo/go/runtime/lock_futex.go ../../../gcc-7.2.0/libgo/go/runtime/mcache.go ../../../gcc-7.2.0/libgo/go/runtime/mprof.go ../../../gcc-7.2.0/libgo/go/runtime/msan0.go ../../../gcc-7.2.0/libgo/go/runtime/mstats.go ../../../gcc-7.2.0/libgo/go/runtime/netpoll.go ../../../gcc-7.2.0/libgo/go/runtime/netpoll_epoll.go ../../../gcc-7.2.0/libgo/go/runtime/os_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/os_linux.go ../../../gcc-7.2.0/libgo/go/runtime/panic.go ../../../gcc-7.2.0/libgo/go/runtime/print.go ../../../gcc-7.2.0/libgo/go/runtime/proc.go ../../../gcc-7.2.0/libgo/go/runtime/race0.go ../../../gcc-7.2.0/libgo/go/runtime/rdebug.go ../../../gcc-7.2.0/libgo/go/runtime/runtime.go ../../../gcc-7.2.0/libgo/go/runtime/runtime1.go ../../../gcc-7.2.0/libgo/go/runtime/runtime2.go ../../../gcc-7.2.0/libgo/go/runtime/select.go ../../../gcc-7.2.0/libgo/go/runtime/sema.go ../../../gcc-7.2.0/libgo/go/runtime/signal_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/signal_sighandler.go ../../../gcc-7.2.0/libgo/go/runtime/signal_unix.go ../../../gcc-7.2.0/libgo/go/runtime/sigqueue.go ../../../gcc-7.2.0/libgo/go/runtime/sizeclasses.go ../../../gcc-7.2.0/libgo/go/runtime/slice.go ../../../gcc-7.2.0/libgo/go/runtime/string.go ../../../gcc-7.2.0/libgo/go/runtime/stubs.go ../../../gcc-7.2.0/libgo/go/runtime/stubs2.go ../../../gcc-7.2.0/libgo/go/runtime/symtab.go ../../../gcc-7.2.0/libgo/go/runtime/time.go ../../../gcc-7.2.0/libgo/go/runtime/trace.go ../../../gcc-7.2.0/libgo/go/runtime/traceback_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/type.go ../../../gcc-7.2.0/libgo/go/runtime/typekind.go ../../../gcc-7.2.0/libgo/go/runtime/unaligned2.go ../../../gcc-7.2.0/libgo/go/runtime/utf8.go ../../../gcc-7.2.0/libgo/go/runtime/write_err.go runtime_sysinfo.go sigtab.go -o runtime.o >/dev/null 2>&1 rm -f runtime.inc.tmp2 grep -v "#define _" runtime.inc.tmp | grep -v "#define [cm][01234] " > runtime.inc.tmp2 for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \ grep "#define $pattern" runtime.inc.tmp >> runtime.inc.tmp2; \ done /bin/sh ../../../gcc-7.2.0/libgo/mvifdiff.sh runtime.inc.tmp2 runtime.inc echo timestamp > s-runtim
[Bug go/81946] runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 --- Comment #2 from martin --- Created attachment 42031 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42031&action=edit generated runtime.inc contains the incomplete type __sem_lock.
[Bug go/81946] runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 --- Comment #3 from martin --- The ‘__sem_lock’ struct is contained in: struct semt { struct __pthread_fastlock __sem_lock; int32_t __sem_value; void* __sem_waiting; };
[Bug go/81946] runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 --- Comment #5 from martin --- I'm sorry for the trouble, I thought Bugfix 81449 is contained in the gcc 7.2. release of Aug 14, 2017.
[Bug go/81946] runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 --- Comment #7 from martin --- Thanks for letting me know. I appreciate it.
[Bug go/81966] New: runtime.inc:362:10: error: duplicate member ‘_’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966 Bug ID: 81966 Summary: runtime.inc:362:10: error: duplicate member ‘_’ Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Hi, regarding https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81946 I untared the last gcc 7.2.0 source. I removed the libgo folder and replaced it with the libgo folder from the svn trunk source. the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: nas-02-90-38:/media/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 ## - ## ## Platform. ## ## - ## hostname = nas-02-90-38 uname -m = padre uname -r = 2.6.17.14ReadyNAS uname -s = Linux uname -v = #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] time/write_err.go runtime_sysinfo.go sigtab.go -o runtime.o >/dev/null 2>&1 rm -f runtime.inc.tmp2 runtime.inc.tmp3 grep -v "#define _" runtime.inc.tmp | grep -v "#define [cm][01234] " | grep -v "#define empty " > runtime.inc.tmp2 for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \ grep "#define $pattern" runtime.inc.tmp >> runtime.inc.tmp2; \ done for TYPE in _Complex_lock _Reader_lock semt; do \ sed -e '/struct '${TYPE}' {/,/^}/s/^.*$//' runtime.inc.tmp2 > runtime.inc.tmp3; \ mv runtime.inc.tmp3 runtime.inc.tmp2; \ done sed -e 's/sigset/sigset_go/' runtime.inc.tmp2 > runtime.inc.tmp3 /bin/sh ../../../gcc-7.2.0/libgo/mvifdiff.sh runtime.inc.tmp3 runtime.inc rm -f runtime.inc.tmp2 runtime.inc.tmp3 echo timestamp > s-runtime-inc /media/gcc-7.2.0-go/./gcc/xgcc -B/media/gcc-7.2.0-go/./gcc/ -B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include-DHAVE_CONFIG_H -I. -I../../../gcc-7.2.0/libgo -I ../../../gcc-7.2.0/libgo/runtime -I../../../gcc-7.2.0/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.2.0/libgo/../libgcc -I ../../../gcc-7.2.0/libgo/../libbacktrace -I ../../gcc/include -fPIC -g -O2 -MT libgobegin_a-go-main.o -MD -MP -MF .deps/libgobegin_a-go-main.Tpo -c -o libgobegin_a-go-main.o `test -f 'runtime/go-main.c' || echo '../../../gcc-7.2.0/libgo/'`runtime/go-main.c In file included from ../../../gcc-7.2.0/libgo/runtime/runtime.h:108:0, from ../../../gcc-7.2.0/libgo/runtime/go-main.c:17: ./runtime.inc:362:10: error: duplicate member ‘_’ uint8_t _[64]; ^ Generated runtime.inc from line 347 to 363: struct gcControllerState { int64_t scanWork; int64_t bgScanCredit; int64_t assistTime; int64_t dedicatedMarkTime; int64_t fractionalMarkTime; int64_t idleMarkTime; int64_t markStartTime; int64_t dedicatedMarkWorkersNeeded; double assistWorkPerByte; double assistBytesPerWork; double fractionalUtilizationGoal; double triggerRatio; uint8_t _[64]; int64_t fractionalMarkWorkersNeeded; uint8_t _[64]; };
[Bug go/81966] runtime.inc:362:10: error: duplicate member ‘_’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81966 --- Comment #2 from martin --- I copied the folder of svn://gcc.gnu.org/svn/gcc/trunk/libgo/ to the gcc-7.2.0/libgo folder. When I'm using the trunk it should contain the patch? Shouldn't that work?
[Bug go/82043] New: error: redefinition of ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043 Bug ID: 82043 Summary: error: redefinition of ... Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Created attachment 42088 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42088&action=edit /usr/local/bin/make >&log.log the exact version of GCC: gcc-7.2.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../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 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] make[2]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libatomic' make[2]: Entering directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' /usr/local/bin/make "AR_FLAGS=rc" "CC_FOR_BUILD=/opt/gcc-7.1/bin/gcc" "CC_FOR_TARGET=/media/gcc-7.2.0-go/./gcc/xgcc -B/media/gcc-7.2.0-go/./gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "GOC_FOR_TARGET=/media/gcc-7.2.0-go/./gcc/gccgo -B/media/gcc-7.2.0-go/./gcc/" "GOC=/media/gcc-7.2.0-go/./gcc/gccgo -B/media/gcc-7.2.0-go/./gcc/ -B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.2.0/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.2.0/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.2.0/sparc-unknown-linux-gnu/sys-include " "GOCFLAGS=-O2 -g" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/usr/local/bin/make" "MAKEINFO=makeinfo --split-size=500 --split-size=500 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/opt/gcc-7.2.0" "infodir=/opt/gcc-7.2.0/share/info" "libdir=/opt/gcc-7.2.0/lib" "includedir=/opt/gcc-7.2.0/include" "prefix=/opt/gcc-7.2.0" "tooldir=/opt/gcc-7.2.0/sparc-unknown-linux-gnu" "gxx_include_dir=" "AR=ar" "AS=/media/gcc-7.2.0-go/./gcc/as" "LD=/media/gcc-7.2.0-go/./gcc/collect-ld" "RANLIB=ranlib" "NM=/media/gcc-7.2.0-go/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=-Werror" all-recursive make[3]: Entering directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[4]: Entering directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' /bin/mkdir -p .; files=`echo ../../../gcc-7.2.0/libgo/go/runtime/alg.go ../../../gcc-7.2.0/libgo/go/runtime/cgo_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/cgocall.go ../../../gcc-7.2.0/libgo/go/runtime/chan.go ../../../gcc-7.2.0/libgo/go/runtime/compiler.go ../../../gcc-7.2.0/libgo/go/runtime/cpuprof.go ../../../gcc-7.2.0/libgo/go/runtime/cputicks.go ../../../gcc-7.2.0/libgo/go/runtime/debug.go ../../../gcc-7.2.0/libgo/go/runtime/env_posix.go ../../../gcc-7.2.0/libgo/go/runtime/error.go ../../../gcc-7.2.0/libgo/go/runtime/extern.go ../../../gcc-7.2.0/libgo/go/runtime/ffi.go ../../../gcc-7.2.0/libgo/go/runtime/hash32.go ../../../gcc-7.2.0/libgo/go/runtime/hashmap.go ../../../gcc-7.2.0/libgo/go/runtime/hashmap_fast.go ../../../gcc-7.2.0/libgo/go/runtime/heapdump.go ../../../gcc-7.2.0/libgo/go/runtime/iface.go ../../../gcc-7.2.0/libgo/go/runtime/lfstack.go ../../../gcc-7.2.0/libgo/go/runtime/lfstack_32bit.go ../../../gcc-7.2.0/libgo/go/runtime/lock_futex.go ../../../gcc-7.2.0/libgo/go/runtime/malloc.go ../../../gcc-7.2.0/libgo/go/runtime/mbarrier.go ../../../gcc-7.2.0/libgo/go/runtime/mbitmap.go ../../../gcc-7.2.0/libgo/go/runtime/mcache.go ../../../gcc-7.2.0/libgo/go/runtime/mcentral.go ../../../gcc-7.2.0/libgo/go/runtime/mem_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/mfinal.go ../../../gcc-7.2.0/libgo/go/runtime/mfixalloc.go ../../../gcc-7.2.0/libgo/go/runtime/mgc.go ../../../gcc-7.2.0/libgo/go/runtime/mgc_gccgo.go ../../../gcc-7.2.0/libgo/go/runtime/mgcmark.go ../../../gcc-7.2.0/libgo/go/runtime/mgcsweep.go ../../../gcc-7.2.0/libgo/go/runtime/mgcswee
[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 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 #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 --- 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/82208] New: exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82208 Bug ID: 82208 Summary: exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE' Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- I used: /gcc-trunk-compiled# ../gcc-trunk/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-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm --disable-nls The error occurred with: /usr/local/bin/make The error message: scall/libcall_uname.go ../../../gcc-trunk/libgo/go/syscall/libcall_wait4.go ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go ../../../gcc-trunk/libgo/go/syscall/msan0.go ../../../gcc-trunk/libgo/go/syscall/netlink_linux.go ../../../gcc-trunk/libgo/go/syscall/setuidgid_linux.go ../../../gcc-trunk/libgo/go/syscall/sleep_select.go ../../../gcc-trunk/libgo/go/syscall/sockcmsg_linux.go ../../../gcc-trunk/libgo/go/syscall/sockcmsg_unix.go ../../../gcc-trunk/libgo/go/syscall/socket.go ../../../gcc-trunk/libgo/go/syscall/socket_linux.go ../../../gcc-trunk/libgo/go/syscall/socket_linux_type.go ../../../gcc-trunk/libgo/go/syscall/socket_posix.go ../../../gcc-trunk/libgo/go/syscall/str.go ../../../gcc-trunk/libgo/go/syscall/syscall.go ../../../gcc-trunk/libgo/go/syscall/syscall_errno.go ../../../gcc-trunk/libgo/go/syscall/syscall_linux.go ../../../gcc-trunk/libgo/go/syscall/syscall_unix.go ../../../gcc-trunk/libgo/go/syscall/timestruct.go libcalls.go sysinfo.go syscall_arch.go epoll.go -fPIC -o .libs/syscall.o ../../../gcc-trunk/libgo/go/syscall/exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE' _, _, err1 = RawSyscall(SYS_UNSHARE, sys.Unshareflags, 0, 0) ^ ../../../gcc-trunk/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name '_AT_FDCWD' err = utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:74:8: error: use of undefined type 'SockFprog' var p SockFprog ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:75:3: error: reference to field 'Len' in object which has no fields or methods p.Len = uint16(len(i)) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:76:3: error: reference to field 'Filter' in object which has no fields or methods p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:76:15: error: reference to undefined name 'SockFilter' p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:76:14: error: expected pointer p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-trunk/libgo/go/syscall/socket_linux.go:173:22: error: reference to undefined name 'SizeofIPv6MTUInfo' vallen := Socklen_t(SizeofIPv6MTUInfo) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' ../../../gcc-trunk/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type 'IPv6MTUInfo' func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { ^ ../../../gcc-trunk/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type 'IPv6MTUInfo' make[4]: *** [Makefile:3213: syscall.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-trunk-compiled/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2629: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-trunk-compiled/sparc-unknown-linux-gnu/libgo' Do you need any more informations?
[Bug go/82208] exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82208 --- Comment #1 from martin --- I used the gcc-trunk source: nas-02-90-38:/media/gcc-trunk# /opt/svn-1.9.7/bin/svn info Path: . Working Copy Root Path: /c/media/gcc-trunk URL: svn://gcc.gnu.org/svn/gcc/trunk Relative URL: ^/trunk Repository Root: svn://gcc.gnu.org/svn/gcc Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4 Revision: 251751 Node Kind: directory Schedule: normal Last Changed Author: law Last Changed Rev: 251751 Last Changed Date: 2017-09-05 22:20:25 -0700 (Tue, 05 Sep 2017) Compiling gcc on the readynas duo takes up to 4-5 days.
[Bug go/82208] exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82208 --- Comment #2 from martin --- Created attachment 42175 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42175&action=edit make log make log
[Bug go/81421] New: Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 Bug ID: 81421 Summary: Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://netgear.nas-central.org/wiki/Category:ReadyNasDUO) the options given when GCC was configured/built: configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] /bin/mkdir -p container; dir=`echo container/heap.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo container/heap.lo.dep | sed -e 's/.dep$//'` $files > container/heap.lo.dep.tmp; if ! cmp container/heap.lo.dep.tmp container/heap.lo.dep >/dev/null 2>/dev/null; then rm -f `echo container/heap.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f container/heap.lo.dep.tmp container/heap.lo.dep /bin/mkdir -p compress; dir=`echo compress/zlib.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo compress/zlib.lo.dep | sed -e 's/.dep$//'` $files > compress/zlib.lo.dep.tmp; if ! cmp compress/zlib.lo.dep.tmp compress/zlib.lo.dep >/dev/null 2>/dev/null; then rm -f `echo compress/zlib.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f compress/zlib.lo.dep.tmp compress/zlib.lo.dep /bin/mkdir -p compress; dir=`echo compress/lzw.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo compress/lzw.lo.dep | sed -e 's/.dep$//'` $files > compress/lzw.lo.dep.tmp; if ! cmp compress/lzw.lo.dep.tmp compress/lzw.lo.dep >/dev/null 2>/dev/null; then rm -f `echo compress/lzw.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f compress/lzw.lo.dep.tmp compress/lzw.lo.dep /bin/mkdir -p compress; dir=`echo compress/gzip.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo compress/gzip.lo.dep | sed -e 's/.dep$//'` $files > compress/gzip.lo.dep.tmp; if ! cmp compress/gzip.lo.dep.tmp compress/gzip.lo.dep >/dev/null 2>/dev/null; then rm -f `echo compress/gzip.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f compress/gzip.lo.dep.tmp compress/gzip.lo.dep /bin/mkdir -p compress; dir=`echo compress/flate.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo compress/flate.lo.dep | sed -e 's/.dep$//'` $files > compress/flate.lo.dep.tmp; if ! cmp compress/flate.lo.dep.tmp compress/flate.lo.dep >/dev/null 2>/dev/null; then rm -f `echo compress/flate.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f compress/flate.lo.dep.tmp compress/flate.lo.dep /bin/mkdir -p compress; dir=`echo compress/bzip2.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo compress/bzip2.lo.dep | sed -e 's/.dep$//'` $files > compress/bzip2.lo.dep.tmp; if ! cmp compress/bzip2.lo.dep.tmp compress/bzip2.lo.dep >/dev/null 2>/dev/null; then rm -f `echo compress/bzip2.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f compress/bzip2.lo.dep.tmp compress/bzip2.lo.dep /bin/mkdir -p cmd/internal; dir=`echo cmd/internal/browser.lo.dep | sed -e 's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo cmd/internal/browser.lo.dep | sed
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 martin changed: What|Removed |Added CC||mfe at live dot de --- Comment #2 from martin --- Created attachment 41739 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41739&action=edit runtime.lo.dep I'll added the requested file.
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #4 from martin --- Created attachment 41751 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41751&action=edit output of make -d
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #5 from martin --- Thanks. I did your suggested steps but it still fails. In comment 4 I attached the ouput of "make -d"?
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #7 from martin --- /media/gcc-7.1.0 is my source dir nas-02-90-38:/media/gcc-7.1.0# libgo/match.sh --goarch=sparc --goos=linux --srcdir=/media/gcc-7.1.0/libgo/go/runtime --extrafiles="runtime_sysinfo.go sigtab.go" --tag=libffi /media/gcc-7.1.0/libgo/go/runtime/alg.go /media/gcc-7.1.0/libgo/go/runtime/cgo_gccgo.go /media/gcc-7.1.0/libgo/go/runtime/cgocheck.go /media/gcc-7.1.0/libgo/go/runtime/chan.go /media/gcc-7.1.0/libgo/go/runtime/compiler.go /media/gcc-7.1.0/libgo/go/runtime/cpuprof.go /media/gcc-7.1.0/libgo/go/runtime/cputicks.go /media/gcc-7.1.0/libgo/go/runtime/debug.go /media/gcc-7.1.0/libgo/go/runtime/env_posix.go /media/gcc-7.1.0/libgo/go/runtime/error.go /media/gcc-7.1.0/libgo/go/runtime/extern.go /media/gcc-7.1.0/libgo/go/runtime/fastlog2.go /media/gcc-7.1.0/libgo/go/runtime/fastlog2table.go /media/gcc-7.1.0/libgo/go/runtime/ffi.go /media/gcc-7.1.0/libgo/go/runtime/hash32.go /media/gcc-7.1.0/libgo/go/runtime/hash64.go /media/gcc-7.1.0/libgo/go/runtime/hashmap.go /media/gcc-7.1.0/libgo/go/runtime/hashmap_fast.go /media/gcc-7.1.0/libgo/go/runtime/iface.go /media/gcc-7.1.0/libgo/go/runtime/lfstack.go /media/gcc-7.1.0/libgo/go/runtime/lfstack_32bit.go /media/gcc-7.1.0/libgo/go/runtime/lfstack_64bit.go /media/gcc-7.1.0/libgo/go/runtime/lock_futex.go /media/gcc-7.1.0/libgo/go/runtime/lock_sema.go /media/gcc-7.1.0/libgo/go/runtime/mcache.go /media/gcc-7.1.0/libgo/go/runtime/mkfastlog2table.go /media/gcc-7.1.0/libgo/go/runtime/mksizeclasses.go /media/gcc-7.1.0/libgo/go/runtime/mprof.go /media/gcc-7.1.0/libgo/go/runtime/msan0.go /media/gcc-7.1.0/libgo/go/runtime/mstats.go /media/gcc-7.1.0/libgo/go/runtime/mstkbar.go /media/gcc-7.1.0/libgo/go/runtime/netpoll.go /media/gcc-7.1.0/libgo/go/runtime/netpoll_epoll.go /media/gcc-7.1.0/libgo/go/runtime/netpoll_kqueue.go /media/gcc-7.1.0/libgo/go/runtime/netpoll_stub.go /media/gcc-7.1.0/libgo/go/runtime/os_gccgo.go /media/gcc-7.1.0/libgo/go/runtime/os_linux.go /media/gcc-7.1.0/libgo/go/runtime/os_linux_ppc64x.go /media/gcc-7.1.0/libgo/go/runtime/panic.go /media/gcc-7.1.0/libgo/go/runtime/print.go /media/gcc-7.1.0/libgo/go/runtime/proc.go /media/gcc-7.1.0/libgo/go/runtime/race0.go /media/gcc-7.1.0/libgo/go/runtime/rdebug.go /media/gcc-7.1.0/libgo/go/runtime/runtime.go /media/gcc-7.1.0/libgo/go/runtime/runtime1.go /media/gcc-7.1.0/libgo/go/runtime/runtime2.go /media/gcc-7.1.0/libgo/go/runtime/select.go /media/gcc-7.1.0/libgo/go/runtime/sema.go /media/gcc-7.1.0/libgo/go/runtime/signal_gccgo.go /media/gcc-7.1.0/libgo/go/runtime/signal_sighandler.go /media/gcc-7.1.0/libgo/go/runtime/signal_unix.go /media/gcc-7.1.0/libgo/go/runtime/sigqueue.go /media/gcc-7.1.0/libgo/go/runtime/sizeclasses.go /media/gcc-7.1.0/libgo/go/runtime/slice.go /media/gcc-7.1.0/libgo/go/runtime/stack.go /media/gcc-7.1.0/libgo/go/runtime/string.go /media/gcc-7.1.0/libgo/go/runtime/stubs.go /media/gcc-7.1.0/libgo/go/runtime/stubs2.go /media/gcc-7.1.0/libgo/go/runtime/symtab.go /media/gcc-7.1.0/libgo/go/runtime/time.go /media/gcc-7.1.0/libgo/go/runtime/trace.go /media/gcc-7.1.0/libgo/go/runtime/traceback_gccgo.go /media/gcc-7.1.0/libgo/go/runtime/type.go /media/gcc-7.1.0/libgo/go/runtime/typekind.go /media/gcc-7.1.0/libgo/go/runtime/unaligned1.go /media/gcc-7.1.0/libgo/go/runtime/unaligned2.go /media/gcc-7.1.0/libgo/go/runtime/utf8.go /media/gcc-7.1.0/libgo/go/runtime/vdso_none.go /media/gcc-7.1.0/libgo/go/runtime/write_err.go runtime_sysinfo.go sigtab.go nas-02-90-38:/media/gcc-7.1.0# sed '/^package /q' < /media/gcc-7.1.0/libgo/go/runtime/mksizeclasses.go | grep '^// +build ' | cat The last command didn't produce any output.
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #9 from martin --- The OS is based on debian with some custom modification from Netgear. I thought I "upgraded" all neccessary libraries for gcc 7.1.0. ldconfig -V ldconfig (GNU libc) 2.3.2 sed --version GNU sed version 4.1.5 grep --version egrep (GNU grep) 2.4.2 If upgrading sed and grep helps to solve the issue, I can do so. Would I then have to reconfigure and recompile the whole gcc-7.1.0 or could I try to continue the process with make? Thanks.
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #11 from martin --- nas-02-90-38:/media/gcc-7.1.0/libgo# sed Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]... -n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if extension supplied) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often --help display this help and exit --version output version information and exit If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read. E-mail bug reports to: bonz...@gnu.org . Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #13 from martin --- Thanks for the fast reply. It prints: nas-02-90-38:/media/gcc-7.1.0/libgo# sed '/^package /q' < /media/gcc-7.1.0/libgo/go/runtime/mksizeclasses.go // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore // Generate tables for small malloc size classes. // // See malloc.go for overview. // // The size classes are chosen so that rounding an allocation // request up to the next size class wastes at most 12.5% (1.125x). // // Each size class has its own page count that gets allocated // and chopped up when new objects of the size class are needed. // That page count is chosen so that chopping up the run of // pages into objects of the given size wastes at most 12.5% (1.125x) // of the memory. It is not necessary that the cutoff here be // the same as above. // // The two sources of waste multiply, so the worst possible case // for the above constraints would be that allocations of some // size might have a 26.6% (1.266x) overhead. // In practice, only one of the wastes comes into play for a // given size (sizes < 512 waste mainly on the round-up, // sizes > 512 waste mainly on the page chopping). // // TODO(rsc): Compute max waste for any given size. package main nas-02-90-38:/media/gcc-7.1.0/libgo#
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #15 from martin --- You are right! I did: sed '/^package /q' < /media/gcc-7.1.0/libgo/go/runtime/mksizeclasses.go > FILE /go/runtime/mksizeclasses.go > FILE The grep command "grep '^// +build ' FILE" printed nothing. Also egrep and fgrep are symlinks to grep: /bin/grep whereis egrep egrep: /bin/egrep ls /bin/egrep -lah lrwxrwxrwx1 root root Jun 29 11:42 /bin/egrep -> grep ls /bin/fgrep -lah lrwxrwxrwx1 root root Jun 29 11:42 /bin/fgrep -> grep The command env doesn't list GREP_OPTIONS.
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 --- Comment #16 from martin --- For clarification the duplicate of "/go/runtime/mksizeclasses.go > FILE" was a copy paste mistake.
[Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81421 martin changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #18 from martin --- Thanks for your hint. I reinstalled grep which fixed the issue. grep/egrep/fgrep is now on version 2.15 and the symlinks disappeared.
[Bug go/81449] New: runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81449 Bug ID: 81449 Summary: runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://netgear.nas-central.org/wiki/Category:ReadyNasDUO) the options given when GCC was configured/built: configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] /media/gcc-7.1-compiled/./gcc/xgcc -B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include-DHAVE_CONFIG_H -I. -I../../../gcc-7.1.0/libgo -I ../../../gcc-7.1.0/libgo/runtime -I../../../gcc-7.1.0/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.1.0/libgo/../libgcc -I ../../../gcc-7.1.0/libgo/../libbacktrace -I ../../gcc/include -fPIC -g -O2 -MT libgobegin_a-go-main.o -MD -MP -MF .deps/libgobegin_a-go-main.Tpo -c -o libgobegin_a-go-main.o `test -f 'runtime/go-main.c' || echo '../../../gcc-7.1.0/libgo/'`runtime/go-main.c In file included from ../../../gcc-7.1.0/libgo/runtime/runtime.h:113:0, from ../../../gcc-7.1.0/libgo/runtime/go-main.c:17: ./runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type struct __pthread_fastlock __sem_lock; ^~ make[4]: *** [Makefile:1580: libgobegin_a-go-main.o] Error 1 make[4]: Leaving directory '/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2746: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo' make[2]: *** [Makefile:1344: all] Error 2 make[2]: Leaving directory '/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo' make[1]: *** [Makefile:20030: all-target-libgo] Error 2 make[1]: Leaving directory '/c/media/gcc-7.1-compiled' make: *** [Makefile:934: all] Error 2 If this bug is related to #81421, I apologize for the inconvenience and I will set the bug status to invalid.
[Bug go/81449] runtime.inc:782:28: error: field ‘__sem_lock’ has incomplete type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81449 --- Comment #1 from martin --- Created attachment 41761 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41761&action=edit runtime.inc
[Bug go/81451] New: missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 Bug ID: 81451 Summary: missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’ Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Created attachment 41765 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41765&action=edit futex of host system the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] /bin/sh ./libtool --tag=CC --mode=compile /media/gcc-7.1-compiled/./gcc/xgcc -B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include-DHAVE_CONFIG_H -I. -I../../../gcc-7.1.0/libgo -I ../../../gcc-7.1.0/libgo/runtime -I../../../gcc-7.1.0/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.1.0/libgo/../libgcc -I ../../../gcc-7.1.0/libgo/../libbacktrace -I ../../gcc/include -g -O2 -MT thread-linux.lo -MD -MP -MF .deps/thread-linux.Tpo -c -o thread-linux.lo `test -f 'runtime/thread-linux.c' || echo '../../../gcc-7.1.0/libgo/'`runtime/thread-linux.c libtool: compile: /media/gcc-7.1-compiled/./gcc/xgcc -B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-7.1.0/libgo -I ../../../gcc-7.1.0/libgo/runtime -I../../../gcc-7.1.0/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-7.1.0/libgo/../libgcc -I ../../../gcc-7.1.0/libgo/../libbacktrace -I ../../gcc/include -g -O2 -MT thread-linux.lo -MD -MP -MF .deps/thread-linux.Tpo -c ../../../gcc-7.1.0/libgo/runtime/thread-linux.c -fPIC -DPIC -o .libs/thread-linux.o In file included from ../../../gcc-7.1.0/libgo/runtime/thread-linux.c:12:0: /usr/include/linux/futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’ asmlinkage long sys_futex(u32 __user *uaddr, int op, int val, ^~~~ make[4]: *** [Makefile:1944: thread-linux.lo] Error 1 I'm not sure, but it looks like gcc is expecting a newer version of futex.h than the host system can provide? I attached the futex header of the host system which is running the Linux kernel 2.6.17.14. Maybe --disable-linux-futex would fix the issue? Is it possible to add manual the configure parameter --disable-linux-futex afterwards to the libgo dictionary without reconfiguring and recompiling the current gcc?
[Bug go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451 --- Comment #3 from martin --- >You should just remove the #include and carry on. Thanks, that worked for me.
[Bug go/56827] Building Go support for gcc 4.8.0 fails on Linux: undefined type ‘SockFilter’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56827 martin changed: What|Removed |Added CC||mfe at live dot de --- Comment #3 from martin --- I think I ran into the same issue? the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] ruct.go libcalls.go sysinfo.go syscall_arch.go epoll.go -fPIC -o .libs/syscall.o ../../../gcc-7.1.0/libgo/go/syscall/exec_linux.go:197:27: error: reference to undefined name ‘SYS_UNSHARE’ _, _, err1 = RawSyscall(SYS_UNSHARE, sys.Unshareflags, 0, 0) ^ ../../../gcc-7.1.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’ err = utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type ‘SockFilter’ func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type ‘SockFilter’ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:74:8: error: use of undefined type ‘SockFprog’ var p SockFprog ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:75:3: error: reference to field ‘Len’ in object which has no fields or methods p.Len = uint16(len(i)) ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:76:3: error: reference to field ‘Filter’ in object which has no fields or methods p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:76:15: error: reference to undefined name ‘SockFilter’ p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:76:14: error: expected pointer p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-7.1.0/libgo/go/syscall/socket_linux.go:173:22: error: reference to undefined name ‘SizeofIPv6MTUInfo’ vallen := Socklen_t(SizeofIPv6MTUInfo) ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type ‘SockFilter’ func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type ‘SockFilter’ ../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type ‘SockFilter’ ../../../gcc-7.1.0/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type ‘IPv6MTUInfo’ func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { ^ ../../../gcc-7.1.0/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type ‘IPv6MTUInfo’ make[4]: *** [Makefile:3331: syscall.lo] Error 1
[Bug go/82348] New: make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348 Bug ID: 82348 Summary: make[4]: Circular runtime.lo <- bytes.gox dependency dropped. Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- Configure: gcc-compiled# ../gcc-trunk/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-8 --with-cpu=v7 --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm --disable-nls System:Sparc Error: make[3]: Entering directory '/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo' make[4]: Entering directory '/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo' /bin/mkdir -p .; files=`echo ../../../gcc-trunk/libgo/go/errors/errors.go | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO --mode=compile /backup/ReadyNASDuoSparc/gcc-compiled/./gcc/gccgo -B/backup/ReadyNASDuoSparc/gcc-compiled/./gcc/ -B/opt/gcc-8/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-8/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-8/sparc-unknown-linux-gnu/include -isystem /opt/gcc-8/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=`echo errors.lo | sed -e 's/.lo$//' -e 's|golang_org|vendor/golang_org|'` -o errors.lo $files libtool: compile: /backup/ReadyNASDuoSparc/gcc-compiled/./gcc/gccgo -B/backup/ReadyNASDuoSparc/gcc-compiled/./gcc/ -B/opt/gcc-8/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-8/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-8/sparc-unknown-linux-gnu/include -isystem /opt/gcc-8/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=errors ../../../gcc-trunk/libgo/go/errors/errors.go -fPIC -o .libs/errors.o libtool: compile: /backup/ReadyNASDuoSparc/gcc-compiled/./gcc/gccgo -B/backup/ReadyNASDuoSparc/gcc-compiled/./gcc/ -B/opt/gcc-8/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-8/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-8/sparc-unknown-linux-gnu/include -isystem /opt/gcc-8/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=errors ../../../gcc-trunk/libgo/go/errors/errors.go -o errors.o >/dev/null 2>&1 f="errors.o"; if test ! -f $f; then f="./.libs/errors.o"; fi; objcopy -j .go_export $f errors.s-gox.tmp; /bin/sh ../../../gcc-trunk/libgo/mvifdiff.sh errors.s-gox.tmp `echo errors.s-gox | sed -e 's/s-gox/gox/'` echo timestamp > errors.s-gox make[4]: Circular runtime.lo <- bytes.gox dependency dropped. make[4]: Circular fmt.lo <- io.gox dependency dropped. make[4]: *** No rule to make target 'internal/cpu.gox', needed by 'math.lo'. Stop. make[4]: Leaving directory '/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2693: all-recursive] Error 1 make[3]: Leaving directory '/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo' make[2]: *** [Makefile:1397: all] Error 2 make[2]: Leaving directory '/c/backup/ReadyNASDuoSparc/gcc-compiled/sparc-unknown-linux-gnu/libgo' make[1]: *** [Makefile:20236: all-target-libgo] Error 2 make[1]: Leaving directory '/c/backup/ReadyNASDuoSparc/gcc-compiled' make: *** [Makefile:945: all] Error 2 I would like to ask, whether gcc-compiled/gcc/gccgo is the final go compiler or it is previous generated compiler from bootstrapping.
[Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348 --- Comment #3 from martin --- As suggested (in another bugreport) I built gcc from the gcc-trunk source without any local modification. I compiled gcc from the following revision: >gcc-trunk# svn info >Path: . >URL: svn://gcc.gnu.org/svn/gcc/trunk >Repository Root: svn://gcc.gnu.org/svn/gcc >Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4 >Revision: 253004 >Node Kind: directory >Schedule: normal >Last Changed Author: jakub >Last Changed Rev: 253004 >Last Changed Date: 2017-09-20 11:04:22 +0200 (Wed, 20 Sep 2017) I also can ensure that I did not modify any local files of the gcc source files, which I checked with `svn status`, or any other generated gcc build files. Anyway, I understand your concerns, and I will proceed as you described.
[Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348 --- Comment #5 from martin --- Created attachment 42266 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42266&action=edit math.lo.dep I looked up the required cpu.gox file. It does neither exist in the source tree, or in the built folder (my built folder is named as gcc-compiled). >find gcc-trunk/ -name cpu.gox #no result >find gcc-compiled/ -name cpu.gox #no result
[Bug go/82348] make[4]: Circular runtime.lo <- bytes.gox dependency dropped.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348 --- Comment #7 from martin --- I tried to follow your instructions: 1.) remove math.o.dep > /gcc-compiled/sparc-unknown-linux-gnu/libgo# rm math.lo.dep 2.) run `make math.lo.dep` > gcc-compiled/sparc-unknown-linux-gnu/libgo# make math.lo.dep > /bin/mkdir -p .; dir=`echo math.lo.dep | sed -e 's/.lo.dep$//'`; > files=`/bin/sh ../../../gcc-trunk/libgo/match.sh --goarch=sparc --goos=linux > --srcdir=../../../gcc-trunk/libgo/go/$dir --extrafiles="" `; /bin/sh > ../../../gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` > $files > math.lo.dep.tmp; if ! cmp math.lo.dep.tmp math.lo.dep >/dev/null > 2>/dev/null; then rm -f `echo math.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f > math.lo.dep.tmp math.lo.dep > make: 'math.lo.dep' is up to date. The output of the generated math.lo.dep seems to be working in this particular situation. The math.lo.dep does not contain cpu.gox > gcc-compiled/sparc-unknown-linux-gnu/libgo# cat math.lo.dep > math.lo: ../../../gcc-trunk/libgo/go/math/abs.go > ../../../gcc-trunk/libgo/go/math/acosh.go > ../../../gcc-trunk/libgo/go/math/asin.go > ../../../gcc-trunk/libgo/go/math/asinh.go > ../../../gcc-trunk/libgo/go/math/atan.go > ../../../gcc-trunk/libgo/go/math/atan2.go > ../../../gcc-trunk/libgo/go/math/atanh.go > ../../../gcc-trunk/libgo/go/math/bits.go > ../../../gcc-trunk/libgo/go/math/cbrt.go > ../../../gcc-trunk/libgo/go/math/const.go > ../../../gcc-trunk/libgo/go/math/copysign.go > ../../../gcc-trunk/libgo/go/math/dim.go > ../../../gcc-trunk/libgo/go/math/erf.go > ../../../gcc-trunk/libgo/go/math/exp.go > ../../../gcc-trunk/libgo/go/math/expm1.go > ../../../gcc-trunk/libgo/go/math/floor.go > ../../../gcc-trunk/libgo/go/math/frexp.go > ../../../gcc-trunk/libgo/go/math/gamma.go > ../../../gcc-trunk/libgo/go/math/hypot.go > ../../../gcc-trunk/libgo/go/math/j0.go ../../../gcc-trunk/libgo/go/math/j1.go > ../../../gcc-trunk/libgo/go/math/jn.go > ../../../gcc-trunk/libgo/go/math/ldexp.go > ../../../gcc-trunk/libgo/go/math/lgamma.go > ../../../gcc-trunk/libgo/go/math/log.go > ../../../gcc-trunk/libgo/go/math/log10.go > ../../../gcc-trunk/libgo/go/math/log1p.go > ../../../gcc-trunk/libgo/go/math/logb.go > ../../../gcc-trunk/libgo/go/math/mod.go > ../../../gcc-trunk/libgo/go/math/modf.go > ../../../gcc-trunk/libgo/go/math/nextafter.go > ../../../gcc-trunk/libgo/go/math/pow.go > ../../../gcc-trunk/libgo/go/math/pow10.go > ../../../gcc-trunk/libgo/go/math/remainder.go > ../../../gcc-trunk/libgo/go/math/signbit.go > ../../../gcc-trunk/libgo/go/math/sin.go > ../../../gcc-trunk/libgo/go/math/sincos.go > ../../../gcc-trunk/libgo/go/math/sinh.go > ../../../gcc-trunk/libgo/go/math/sqrt.go > ../../../gcc-trunk/libgo/go/math/tan.go > ../../../gcc-trunk/libgo/go/math/tanh.go > ../../../gcc-trunk/libgo/go/math/unsafe.go 3.) Here, I'm unsure if the command was executed in the correct folder (gcc-compiled contains the generated built files), because the output looks weird to me. > /gcc-compiled/sparc-unknown-linux-gnu/libgo# /bin/sh > ../../../gcc-trunk/libgo/match.sh --goarch=sparc --goos=linux > --srcdir=../../../gcc-trunk/libgo/go/$dir --extrafiles="" > ../../../gcc-trunk/libgo/match.sh: line 1: *.go: No such file or directory > ../../../gcc-trunk/libgo/go//*.go 4.) I executed this command in the gcc source folder > ./gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files > sh: ./gcc-trunk/libgo/godeps.sh: Permission denied > chmod 777 ./gcc-trunk/libgo/godeps.sh > ./gcc-trunk/libgo/godeps.sh `echo math.lo.dep | sed -e 's/.dep$//'` $files > math.lo: