public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "lancethepants at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug go/101246] gccgo cross-compiler targeting arm fails to build with gcc 11. Missing structs in runtime.inc. Using uclibc-ng Date: Mon, 28 Jun 2021 20:36:21 +0000 [thread overview] Message-ID: <bug-101246-4-X3EFLyzoh0@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101246-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101246 --- Comment #2 from Lance Fredrickson <lancethepants at gmail dot com> --- echo timestamp > unicode.s-gox f="runtime.o"; if test ! -f $f; then f="./.libs/runtime.o"; fi; /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/objcopy -j .go_export $f runtime.s-gox.tmp; /bin/bash ../../../libgo/mvifdiff.sh runtime.s-gox.tmp `echo runtime.s-gox | sed -e 's/s-gox/gox/'` /bin/bash ../../../libgo/mkruntimeinc.sh /bin/bash ../../../libgo/mvifdiff.sh tmp-runtime.inc runtime.inc echo timestamp > s-runtime-inc /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/ -B/opt/tomatoware/arm-soft-mmc/arm-tomato ware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-li nux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wall -Wextra -Wwr ite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -fPIC -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_ BITS=64 -O2 -g0 -DNDEBUG -MT runtime/libgobegin_a-go-main.o -MD -MP -MF runtime/.deps/libgobegin_a-go-main.Tpo -c -o runtime/libgobegin_a-go-main.o `test -f 'runtime/go-main.c' || echo '../../../libgo/'`runtime/go-main.c /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/ -B/opt/tomatoware/arm-soft-mmc/arm-tomato ware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-li nux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wall -Wextra -Wwr ite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -fPIC -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_ BITS=64 -O2 -g0 -DNDEBUG -MT runtime/libgolibbegin_a-go-libmain.o -MD -MP -MF runtime/.deps/libgolibbegin_a-go-libmain.Tpo -c -o runtime/libgolibbegin_a-go-libmain.o `test -f 'runtime/go-libmain.c' || echo '../../../libgo/'`runtime/go- libmain.c depbase=`echo runtime/aeshash.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/bash ./libtool --tag=CC --mode=compile /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/. /gcc/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexcep tions -fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -D_LARGEFILE_SOU RCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DNDEBUG -MT runtime/aeshash.lo -MD -MP -MF $depbase.Tpo -c -o runtime/aeshash.lo ../../../libgo/runtime/aeshash.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=`echo runtime/go-assert.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/bash ./libtool --tag=CC --mode=compile /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/. /gcc/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexcep tions -fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -D_LARGEFILE_SOU RCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DNDEBUG -MT runtime/go-assert.lo -MD -MP -MF $depbase.Tpo -c -o runtime/go-assert.lo ../../../libgo/runtime/go-assert.c &&\ mv -f $depbase.Tpo $depbase.Plo echo timestamp > runtime.s-gox depbase=`echo runtime/go-caller.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/bash ./libtool --tag=CC --mode=compile /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/. /gcc/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexcep tions -fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -D_LARGEFILE_SOU RCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DNDEBUG -MT runtime/go-caller.lo -MD -MP -MF $depbase.Tpo -c -o runtime/go-caller.lo ../../../libgo/runtime/go-caller.c &&\ mv -f $depbase.Tpo $depbase.Plo In file included from ../../../libgo/runtime/runtime.h:105, from ../../../libgo/runtime/go-libmain.c:18: ./runtime.inc:1357:29: error: field ‘__state’ has incomplete type 1357 | struct ___mbstate_t __state; | ^~~~~~~ ./runtime.inc:1360:33: error: field ‘__lock’ has incomplete type 1360 | struct _pthread_mutex_t __lock; | ^~~~~~ In file included from ../../../libgo/runtime/runtime.h:105, from ../../../libgo/runtime/go-main.c:17: ./runtime.inc:1357:29: error: field ‘__state’ has incomplete type 1357 | struct ___mbstate_t __state; | ^~~~~~~ ./runtime.inc:1360:33: error: field ‘__lock’ has incomplete type 1360 | struct _pthread_mutex_t __lock; | ^~~~~~ libtool: compile: /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/ -B/opt/tomatoware/arm$ soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-m$ c/arm-tomatoware-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wal$ -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_O$ FSET_BITS=64 -O2 -g0 -DNDEBUG -MT runtime/go-assert.lo -MD -MP -MF runtime/.deps/go-assert.Tpo -c ../../../libgo/runtime/go-assert.c -fPIC -DPIC -o runtime/.libs/go-assert.o make[6]: *** [Makefile:1541: runtime/libgolibbegin_a-go-libmain.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[6]: *** [Makefile:1527: runtime/libgobegin_a-go-main.o] Error 1 libtool: compile: /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/ -B/opt/tomatoware/arm$ soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-m$ c/arm-tomatoware-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wal$ -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_O$ FSET_BITS=64 -O2 -g0 -DNDEBUG -MT runtime/aeshash.lo -MD -MP -MF runtime/.deps/aeshash.Tpo -c ../../../libgo/runtime/aeshash.c -fPIC -DPIC -o runtime/.libs/aeshash.o libtool: compile: /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/xgcc -B/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/./gcc/ -B/opt/tomatoware/arm$ soft-mmc/arm-tomatoware-linux-uclibcgnueabi/bin/ -B/opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/lib/ -isystem /opt/tomatoware/arm-soft-mmc/arm-tomatoware-linux-uclibcgnueabi/include -isystem /opt/tomatoware/arm-soft-m$ c/arm-tomatoware-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -fexceptions -fnon-call-exceptions -Wal$ -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../libgo/../libgcc -I ../../../libgo/../libbacktrace -I ../../gcc/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_O$ FSET_BITS=64 -O2 -g0 -DNDEBUG -MT runtime/go-caller.lo -MD -MP -MF runtime/.deps/go-caller.Tpo -c ../../../libgo/runtime/go-caller.c -fPIC -DPIC -o runtime/.libs/go-caller.o In file included from ../../../libgo/runtime/runtime.h:105, from ../../../libgo/runtime/go-assert.c:10: ./runtime.inc:1357:29: error: field ‘__state’ has incomplete type 1357 | struct ___mbstate_t __state; | ^~~~~~~ ./runtime.inc:1360:33: error: field ‘__lock’ has incomplete type 1360 | struct _pthread_mutex_t __lock; | ^~~~~~ In file included from ../../../libgo/runtime/runtime.h:105, from ../../../libgo/runtime/aeshash.c:7: ./runtime.inc:1357:29: error: field ‘__state’ has incomplete type 1357 | struct ___mbstate_t __state; | ^~~~~~~ ./runtime.inc:1360:33: error: field ‘__lock’ has incomplete type 1360 | struct _pthread_mutex_t __lock; | ^~~~~~ make[6]: *** [Makefile:1505: runtime/go-assert.lo] Error 1 make[6]: *** [Makefile:1505: runtime/aeshash.lo] Error 1 In file included from ../../../libgo/runtime/runtime.h:105, from ../../../libgo/runtime/go-caller.c:16: ./runtime.inc:1357:29: error: field ‘__state’ has incomplete type 1357 | struct ___mbstate_t __state; | ^~~~~~~ ./runtime.inc:1360:33: error: field ‘__lock’ has incomplete type 1360 | struct _pthread_mutex_t __lock; | ^~~~~~ make[6]: *** [Makefile:1505: runtime/go-caller.lo] Error 1 make[6]: Leaving directory '/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/arm-tomatoware-linux-uclibcgnueabi/libgo' make[5]: *** [Makefile:2327: all-recursive] Error 1 make[5]: Leaving directory '/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/arm-tomatoware-linux-uclibcgnueabi/libgo' make[4]: *** [Makefile:1198: all] Error 2 make[4]: Leaving directory '/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build/arm-tomatoware-linux-uclibcgnueabi/libgo' make[3]: *** [Makefile:14925: all-target-libgo] Error 2 make[3]: Leaving directory '/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build' make[2]: *** [Makefile:960: all] Error 2 make[2]: Leaving directory '/home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/build' make[1]: *** [package/pkg-generic.mk:250: /home/lance/tomatoware/toolchain/buildroot-git/output/build/host-gcc-final-11.1.0/.stamp_built] Error 2 make[1]: Leaving directory '/home/lance/tomatoware/toolchain/buildroot-git' make: *** [Makefile:11: toolchain] Error 2
next prev parent reply other threads:[~2021-06-28 20:36 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-28 19:17 [Bug go/101246] New: " lancethepants at gmail dot com 2021-06-28 19:25 ` [Bug go/101246] " ian at airs dot com 2021-06-28 20:36 ` lancethepants at gmail dot com [this message] 2021-06-28 20:42 ` ian at airs dot com 2021-06-28 20:48 ` lancethepants at gmail dot com 2021-07-08 21:20 ` lancethepants at gmail dot com 2021-08-19 19:36 ` lancethepants at gmail dot com 2022-02-23 16:55 ` lancethepants at gmail dot com 2022-03-04 18:47 ` cvs-commit at gcc dot gnu.org 2022-03-04 18:53 ` lancethepants at gmail dot com 2022-03-04 18:56 ` ian at airs dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-101246-4-X3EFLyzoh0@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).