pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59059: lang/gcc10 build failure on NetBSD 10.1



>Number:         59059
>Category:       pkg
>Synopsis:       lang/gcc10 build failure on NetBSD 10.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 09 06:40:00 +0000 2025
>Originator:     Qingyao Sun
>Release:        NetBSD 10.1
>Organization:
Cornell University
>Environment:
NetBSD esbear 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Here is the error log:


esbear# cd /usr/pkgsrc/lang/gcc10 && make install
=> Fetching in-place gmp
=> Checksum BLAKE2s OK for gmp-6.3.0.tar.bz2
=> Checksum SHA512 OK for gmp-6.3.0.tar.bz2
=> Fetching in-place mpcomplex
=> Checksum BLAKE2s OK for mpc-1.3.1.tar.gz
=> Checksum SHA512 OK for mpc-1.3.1.tar.gz
=> Fetching in-place mpfr
=> Checksum BLAKE2s OK for mpfr-4.2.1.tar.bz2
=> Checksum SHA512 OK for mpfr-4.2.1.tar.bz2
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for gcc10-10.5.0nb4
[ -f stage_final ] || echo stage3 > stage_final
gmake[1]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake[2]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build'
rm -f stage_current
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake[2]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp'
/usr/pkg/bin/gmake  all-recursive
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp'
Making all in tests
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests'
Making all in .
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests'
gmake[6]: Nothing to be done for 'all-am'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests'
Making all in devel
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/devel'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/devel'
Making all in mpn
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpn'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpn'
Making all in mpz
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpz'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpz'
Making all in mpq
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpq'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpq'
Making all in mpf
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpf'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/mpf'
Making all in rand
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/rand'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/rand'
Making all in misc
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/misc'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/misc'
Making all in cxx
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/cxx'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests/cxx'
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tests'
Making all in mpn
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpn'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpn'
Making all in mpz
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpz'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpz'
Making all in mpq
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpq'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpq'
Making all in mpf
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpf'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/mpf'
Making all in printf
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/printf'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/printf'
Making all in scanf
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/scanf'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/scanf'
Making all in rand
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/rand'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/rand'
Making all in cxx
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/cxx'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/cxx'
Making all in demos
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos'
Making all in calc
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos/calc'
/usr/pkg/bin/gmake  all-am
gmake[7]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos/calc'
gmake[7]: Nothing to be done for 'all-am'.
gmake[7]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos/calc'
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos/calc'
Making all in expr
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos/expr'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos/expr'
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos'
gmake[6]: Nothing to be done for 'all-am'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos'
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/demos'
Making all in tune
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tune'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/tune'
Making all in doc
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/doc'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp/doc'
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gmp'
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp'
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gmp'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr'
Making all in doc
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/doc'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/doc'
Making all in src
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/src'
/usr/pkg/bin/gmake  all-am
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/src'
gmake[5]: Nothing to be done for 'all-am'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/src'
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/src'
Making all in tests
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/tests'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/tests'
Making all in tune
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/tune'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/tune'
Making all in tools/bench
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/tools/bench'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr/tools/bench'
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr'
gmake[4]: Nothing to be done for 'all-am'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpfr'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc'
/usr/pkg/bin/gmake  all-recursive
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc'
Making all in src
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/src'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/src'
Making all in tests
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tests'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tests'
Making all in doc
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/doc'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/doc'
Making all in tools
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools'
Making all in bench
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools/bench'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools/bench'
Making all in mpcheck
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools/mpcheck'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools/mpcheck'
gmake[6]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools'
gmake[6]: Nothing to be done for 'all-am'.
gmake[6]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools'
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc/tools'
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/mpc'
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc'
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/mpc'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/isl'
/usr/pkg/bin/gmake  all-recursive
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/isl'
Making all in .
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/isl'
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/isl'
Making all in doc
gmake[5]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/isl/doc'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/isl/doc'
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/isl'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/isl'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/libiberty'
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/libiberty/testsuite'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/libiberty/testsuite'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/libiberty'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/lto-plugin'
/usr/pkg/bin/gmake  all-am
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/lto-plugin'
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/lto-plugin'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/lto-plugin'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/intl'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/intl'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/libiberty'
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/libiberty/testsuite'
gmake[4]: Nothing to be done for 'all'.
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/libiberty/testsuite'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/libiberty'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/fixincludes'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/fixincludes'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/libcpp'
test -f config.h || (rm -f stamp-h1 && /usr/pkg/bin/gmake stamp-h1)
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/build-x86_64--netbsd/libcpp'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g" "CXXFLAGS=-g" "CFLAGS_FOR_BUILD=-O2 -I/usr/pkg/include -I/usr/include" "CFLAGS_FOR_TARGET=-g -O2 -I/usr/pkg/include -I/usr/include" "INSTALL=/usr/bin/install -c -o root -g wheel" "INSTALL_DATA=/usr/bin/install -c -o root -g wheel -m 644" "INSTALL_PROGRAM=/usr/bin/install -c -s -o root -g wheel -m 755" "INSTALL_SCRIPT=/usr/bin/install -c -o root -g wheel -m 755" "LDFLAGS=-static-libstdc++ -static-libgcc -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib" "LIBCFLAGS=-O2 -I/usr/pkg/include -I/usr/include" "LIBCFLAGS_FOR_TARGET=-g -O2 -I/usr/pkg/include -I/usr/include" "MAKE=/usr/pkg/bin/gmake" "MAKEINFO=/usr/pkgsrc/lang/gcc10/work/.tools/bin/makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/pkg/gcc10" "infodir=/usr/pkg/gcc10/info" "libdir=/usr/pkg/gcc10/lib" "prefix=/usr/pkg/gcc
 10" "tooldir=/usr/pkg/gcc10/x86_64--netbsd" "AR=ar" "AS=as" "CC=gcc" "CXX=c++ -std=gnu++98" "LD=ld" "LIBCFLAGS=-O2 -I/usr/pkg/include -I/usr/include" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /usr/pkg/bin/gmake
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/zlib'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/libbacktrace'
/usr/pkg/bin/gmake  all-am
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/libbacktrace'
true  DO=all multi-do # /usr/pkg/bin/gmake
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/libbacktrace'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/libbacktrace'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/libcpp'
test -f config.h || (rm -f stamp-h1 && /usr/pkg/bin/gmake stamp-h1)
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/libcpp'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/libdecnumber'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/libdecnumber'
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/gcc'
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gcc'
Checking multilib configuration for libgcc...
gmake[3]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/x86_64--netbsd/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
gmake[4]: Entering directory '/usr/pkgsrc/lang/gcc10/work/build/x86_64--netbsd/libgcc'
if [ -z "" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../gcc-10.5.0/libgcc; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/usr/pkgsrc/lang/gcc10/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc10/work/build/./gcc/ -B/usr/pkg/gcc10/x86_64--netbsd/bin/ -B/usr/pkg/gcc10/x86_64--netbsd/lib/ -isystem /usr/pkg/gcc10/x86_64--netbsd/include -isystem /usr/pkg/gcc10/x86_64--netbsd/sys-include   -fno-checking"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; /usr/pkg/bin/gmake "AR=ar" "AR_FLAGS=rc" "CC=/usr/pkgsrc/lang/gcc10/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc10/work/build/./gcc/ -B/usr/pkg/gcc10/x86_64--netbsd/bin/ -B/usr/pkg/gcc10/x86_64--netbsd/lib/ -isystem /usr/pkg/gcc10/x86_64--netbsd/include -isystem /usr/pkg/gcc10/x86_64--netbsd/sys-include   -fno-checking" "CFLAGS=-g -O2 -I/usr/pkg/include -I/usr/include" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/usr/bin/install -c -o root -g wheel" "INSTALL_DATA=/usr/bin/install -c -o root -g wheel -m 644" "INSTALL_PROGRAM=/usr/bin/install -c -s -o root -g wheel -m 755" "LDFLAGS=-Wl,-R/usr/pkg/lib -Wl,-zrelro" "LOADLIBES=" "RANLIB=ranlib" "SHELL=/bin/sh" "prefix=/usr/pkg/gcc10" "exec_prefix=/usr/pkg/gcc10" "libdir=/usr/pkg/gcc10/lib" "libsubdir=/usr/pkg/gcc10/lib/gcc/x86_64--netbsd/10.5.0" "tooldir=/usr/pkg/gcc10/x86_64--netbsd" \
                        CFLAGS="-g -O2 -I/usr/pkg/include -I/usr/include ${flags}" \
                        CCASFLAGS=" ${flags}" \
                        FCFLAGS=" ${flags}" \
                        FFLAGS="-O ${flags}" \
                        ADAFLAGS=" ${flags}" \
                        prefix="/usr/pkg/gcc10" \
                        exec_prefix="/usr/pkg/gcc10" \
                        GOCFLAGS="-O2 -g ${flags}" \
                        GDCFLAGS="-O2 -g ${flags}" \
                        CXXFLAGS="-g -O2 -I/usr/pkg/include -I/usr/include ${flags}" \
                        LIBCFLAGS="-g -O2 -I/usr/pkg/include -I/usr/include ${flags}" \
                        LIBCXXFLAGS="-g -O2 -I/usr/pkg/include -I/usr/include -fno-implicit-templates ${flags}" \
                        LDFLAGS="-Wl,-R/usr/pkg/lib -Wl,-zrelro ${flags}" \
                        MULTIFLAGS="${flags}" \
                        DESTDIR="" \
                        INSTALL="/usr/bin/install -c -o root -g wheel" \
                        INSTALL_DATA="/usr/bin/install -c -o root -g wheel -m 644" \
                        INSTALL_PROGRAM="/usr/bin/install -c -s -o root -g wheel -m 755" \
                        INSTALL_SCRIPT="/usr/bin/install -c -o root -g wheel -m 755" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/x86_64--netbsd/libgcc'
rm -f libgcc.a
objects="_muldi3.o _negdi2.o _lshrdi3.o _ashldi3.o _ashrdi3.o _cmpdi2.o _ucmpdi2.o _clear_cache.o _trampoline.o __main.o _absvsi2.o _absvdi2.o _addvsi3.o _addvdi3.o _subvsi3.o _subvdi3.o _mulvsi3.o _mulvdi3.o _negvsi2.o _negvdi2.o _ctors.o _ffssi2.o _ffsdi2.o _clz.o _clzsi2.o _clzdi2.o _ctzsi2.o _ctzdi2.o _popcount_tab.o _popcountsi2.o _popcountdi2.o _paritysi2.o _paritydi2.o _powisf2.o _powidf2.o _powixf2.o _powitf2.o _mulhc3.o _mulsc3.o _muldc3.o _mulxc3.o _multc3.o _divhc3.o _divsc3.o _divdc3.o _divxc3.o _divtc3.o _bswapsi2.o _bswapdi2.o _clrsbsi2.o _clrsbdi2.o _fixunssfsi.o _fixunsdfsi.o _fixunsxfsi.o _fixsfdi.o _fixdfdi.o _fixxfdi.o _fixunssfdi.o _fixunsdfdi.o _fixunsxfdi.o _floatdisf.o _floatdidf.o _floatdixf.o _floatundisf.o _floatundidf.o _floatundixf.o _eprintf.o __gcc_bcmp.o _divdi3.o _moddi3.o _divmoddi4.o _udivdi3.o _umoddi3.o _udivmoddi4.o _udiv_w_sdiv.o cpuinfo.o sfp-exceptions.o addtf3.o divtf3.o eqtf2.o getf2.o letf2.o multf3.o negtf2.o subtf3.o unordtf2.o fixtfsi.o f
 ixunstfsi.o floatsitf.o floatunsitf.o fixtfdi.o fixunstfdi.o floatditf.o floatunditf.o fixtfti.o fixunstfti.o floattitf.o floatuntitf.o extendsftf2.o extenddftf2.o extendxftf2.o trunctfsf2.o trunctfdf2.o trunctfxf2.o enable-execute-stack.o";                                 \
if test -z "$objects"; then                             \
  echo 'int __libgcc_eh_dummy;' > eh_dummy.c;           \
  /usr/pkgsrc/lang/gcc10/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc10/work/build/./gcc/ -B/usr/pkg/gcc10/x86_64--netbsd/bin/ -B/usr/pkg/gcc10/x86_64--netbsd/lib/ -isystem /usr/pkg/gcc10/x86_64--netbsd/include -isystem /usr/pkg/gcc10/x86_64--netbsd/sys-include   -fno-checking -g -O2 -I/usr/pkg/include -I/usr/include -O2  -g -O2 -I/usr/pkg/include -I/usr/include -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include  -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fpic -I. -I. -I../.././gcc -I../../../gcc-10.5.0/libgcc -I../../../gcc-10.5.0/libgcc/. -I../../../gcc-10.5.0/libgcc/../gcc -I../../../gcc-10.5.0/libgcc/../include  -DHAVE_CC_TLS  -fvisibility=hidden -DHIDE_EXPORTS -c eh_dummy.c          \
     -o eh_dummy.o;                             \
  objects=eh_dummy.o;                           \
fi;                                                     \
ar  rc libgcc.a $objects
ranlib libgcc.a
rm -f libgcov.a
objects="_gcov_merge_add.o _gcov_merge_topn.o _gcov_merge_ior.o _gcov_merge_time_profile.o _gcov_interval_profiler.o _gcov_interval_profiler_atomic.o _gcov_pow2_profiler.o _gcov_pow2_profiler_atomic.o _gcov_topn_values_profiler.o _gcov_topn_values_profiler_atomic.o _gcov_average_profiler.o _gcov_average_profiler_atomic.o _gcov_ior_profiler.o _gcov_ior_profiler_atomic.o _gcov_indirect_call_profiler_v4.o _gcov_time_profiler.o _gcov_dump.o _gcov_flush.o _gcov_fork.o _gcov_execl.o _gcov_execlp.o _gcov_execle.o _gcov_execv.o _gcov_execvp.o _gcov_execve.o _gcov_reset.o _gcov.o";                                     \
if test -z "$objects"; then                             \
  echo 'int __libgcc_eh_dummy;' > eh_dummy.c;           \
  /usr/pkgsrc/lang/gcc10/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc10/work/build/./gcc/ -B/usr/pkg/gcc10/x86_64--netbsd/bin/ -B/usr/pkg/gcc10/x86_64--netbsd/lib/ -isystem /usr/pkg/gcc10/x86_64--netbsd/include -isystem /usr/pkg/gcc10/x86_64--netbsd/sys-include   -fno-checking -g -O2 -I/usr/pkg/include -I/usr/include -O2  -g -O2 -I/usr/pkg/include -I/usr/include -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include  -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fpic -I. -I. -I../.././gcc -I../../../gcc-10.5.0/libgcc -I../../../gcc-10.5.0/libgcc/. -I../../../gcc-10.5.0/libgcc/../gcc -I../../../gcc-10.5.0/libgcc/../include  -DHAVE_CC_TLS  -fvisibility=hidden -DHIDE_EXPORTS -c eh_dummy.c          \
     -o eh_dummy.o;                             \
  objects=eh_dummy.o;                           \
fi;                                                     \
ar  rc libgcov.a $objects
ranlib libgcov.a
/usr/pkgsrc/lang/gcc10/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc10/work/build/./gcc/ -B/usr/pkg/gcc10/x86_64--netbsd/bin/ -B/usr/pkg/gcc10/x86_64--netbsd/lib/ -isystem /usr/pkg/gcc10/x86_64--netbsd/include -isystem /usr/pkg/gcc10/x86_64--netbsd/sys-include   -fno-checking -g -O2 -I/usr/pkg/include -I/usr/include -O2  -g -O2 -I/usr/pkg/include -I/usr/include -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include  -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fpic -I. -I. -I../.././gcc -I../../../gcc-10.5.0/libgcc -I../../../gcc-10.5.0/libgcc/. -I../../../gcc-10.5.0/libgcc/../gcc -I../../../gcc-10.5.0/libgcc/../include  -DHAVE_CC_TLS  -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c ../../../gcc-10.5.0/libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:35:
../../../gcc-10.5.0/libgcc/unwind-pe.h:100:8: error: unknown type name '_Unwind_Ptr'
  100 | static _Unwind_Ptr
      |        ^~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-pe.h:131:39: error: unknown type name '_uleb128_t'
  131 | read_uleb128 (const unsigned char *p, _uleb128_t *val)
      |                                       ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-pe.h:153:39: error: unknown type name '_sleb128_t'
  153 | read_sleb128 (const unsigned char *p, _sleb128_t *val)
      |                                       ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-pe.h:184:55: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  184 | read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base,
      |                                                       ^~~~~~~~~~~
      |                                                       _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-pe.h:185:34: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  185 |          const unsigned char *p, _Unwind_Ptr *val)
      |                                  ^~~~~~~~~~~
      |                                  _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-pe.h:302:31: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  302 |       const unsigned char *p, _Unwind_Ptr *val)
      |                               ^~~~~~~~~~~
      |                               _Unwind_Action
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:85:8: error: redefinition of 'struct dwarf_eh_bases'
   85 | struct dwarf_eh_bases
      |        ^~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:147:8: note: originally defined here
  147 | struct dwarf_eh_bases {
      |        ^~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:93:13: error: conflicting types for '__register_frame_info_bases'
   93 | extern void __register_frame_info_bases (const void *, struct object *,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:172:13: note: previous declaration of '__register_frame_info_bases' was here
  172 | extern void __register_frame_info_bases(const void *fde, void *ob, void *tb,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:95:13: error: conflicting types for '__register_frame_info'
   95 | extern void __register_frame_info (const void *, struct object *);
      |             ^~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:174:13: note: previous declaration of '__register_frame_info' was here
  174 | extern void __register_frame_info(const void *fde, void *ob)
      |             ^~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:96:13: error: conflicting types for '__register_frame'
   96 | extern void __register_frame (void *);
      |             ^~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:139:13: note: previous declaration of '__register_frame' was here
  139 | extern void __register_frame(const void *fde);
      |             ^~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:97:13: error: conflicting types for '__register_frame_info_table_bases'
   97 | extern void __register_frame_info_table_bases (void *, struct object *,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:176:13: note: previous declaration of '__register_frame_info_table_bases' was here
  176 | extern void __register_frame_info_table_bases(const void *fde, void *ob,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:99:13: error: conflicting types for '__register_frame_info_table'
   99 | extern void __register_frame_info_table (void *, struct object *);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:179:13: note: previous declaration of '__register_frame_info_table' was here
  179 | extern void __register_frame_info_table(const void *fde, void *ob)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:100:13: error: conflicting types for '__register_frame_table'
  100 | extern void __register_frame_table (void *);
      |             ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:181:13: note: previous declaration of '__register_frame_table' was here
  181 | extern void __register_frame_table(const void *fde)
      |             ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:103:13: error: conflicting types for '__deregister_frame'
  103 | extern void __deregister_frame (void *);
      |             ^~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:140:13: note: previous declaration of '__deregister_frame' was here
  140 | extern void __deregister_frame(const void *fde);
      |             ^~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:36:
../../../gcc-10.5.0/libgcc/unwind-dw2-fde.h:166:20: error: conflicting types for '_Unwind_Find_FDE'
  166 | extern const fde * _Unwind_Find_FDE (void *, struct dwarf_eh_bases *);
      |                    ^~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:152:20: note: previous declaration of '_Unwind_Find_FDE' was here
  152 | extern const void *_Unwind_Find_FDE(const void *pc, struct dwarf_eh_bases *);
      |                    ^~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:38:
../../../gcc-10.5.0/libgcc/unwind-dw2.h:36:2: error: unknown type name '_Unwind_Word'
   36 |  _Unwind_Word reg;
      |  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.h:37:2: error: unknown type name '_Unwind_Sword'
   37 |  _Unwind_Sword offset;
      |  ^~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.h:56:5: error: unknown type name '_Unwind_Sword'
   56 |     _Unwind_Sword cfa_offset;
      |     ^~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.h:57:5: error: unknown type name '_Unwind_Word'
   57 |     _Unwind_Word cfa_reg;
      |     ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.h:71:3: error: unknown type name '_Unwind_Sword'
   71 |   _Unwind_Sword data_align;
      |   ^~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.h:72:3: error: unknown type name '_Unwind_Word'
   72 |   _Unwind_Word code_align;
      |   ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.h:73:3: error: unknown type name '_Unwind_Word'
   73 |   _Unwind_Word retaddr_column;
      |   ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:108:15: error: unknown type name '_Unwind_Word'
  108 | static inline _Unwind_Word
      |               ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_Get_Unwind_Word':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:111:11: error: '_Unwind_Word' undeclared (first use in this function)
  111 |   return (_Unwind_Word) (_Unwind_Internal_Ptr) val;
      |           ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:111:11: note: each undeclared identifier is reported only once for each function it appears in
../../../gcc-10.5.0/libgcc/unwind-dw2.c:111:26: error: '_Unwind_Internal_Ptr' undeclared (first use in this function)
  111 |   return (_Unwind_Word) (_Unwind_Internal_Ptr) val;
      |                          ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:111:47: error: expected ';' before 'val'
  111 |   return (_Unwind_Word) (_Unwind_Internal_Ptr) val;
      |                                               ^~~~
      |                                               ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:109:50: warning: unused parameter 'val' [-Wunused-parameter]
  109 | _Unwind_Get_Unwind_Word (_Unwind_Context_Reg_Val val)
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~^~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:115:37: error: unknown type name '_Unwind_Word'
  115 | _Unwind_Get_Unwind_Context_Reg_Val (_Unwind_Word val)
      |                                     ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:142:3: error: unknown type name '_Unwind_Word'
  142 |   _Unwind_Word flags;
      |   ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:145:3: error: unknown type name '_Unwind_Word'
  145 |   _Unwind_Word version;
      |   ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:146:3: error: unknown type name '_Unwind_Word'
  146 |   _Unwind_Word args_size;
      |   ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:198:15: error: unknown type name '_Unwind_Word'
  198 | static inline _Unwind_Word
      |               ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_IsSignalFrame':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:136:30: error: '_Unwind_Word' undeclared (first use in this function)
  136 | #define SIGNAL_FRAME_BIT ((~(_Unwind_Word) 0 >> 1) + 1)
      |                              ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:201:28: note: in expansion of macro 'SIGNAL_FRAME_BIT'
  201 |   return (context->flags & SIGNAL_FRAME_BIT) ? 1 : 0;
      |                            ^~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:136:44: error: expected ')' before numeric constant
  136 | #define SIGNAL_FRAME_BIT ((~(_Unwind_Word) 0 >> 1) + 1)
      |                           ~                ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:201:28: note: in expansion of macro 'SIGNAL_FRAME_BIT'
  201 |   return (context->flags & SIGNAL_FRAME_BIT) ? 1 : 0;
      |                            ^~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_SetSignalFrame':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:136:30: error: '_Unwind_Word' undeclared (first use in this function)
  136 | #define SIGNAL_FRAME_BIT ((~(_Unwind_Word) 0 >> 1) + 1)
      |                              ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:208:23: note: in expansion of macro 'SIGNAL_FRAME_BIT'
  208 |     context->flags |= SIGNAL_FRAME_BIT;
      |                       ^~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:136:44: error: expected ')' before numeric constant
  136 | #define SIGNAL_FRAME_BIT ((~(_Unwind_Word) 0 >> 1) + 1)
      |                           ~                ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:208:23: note: in expansion of macro 'SIGNAL_FRAME_BIT'
  208 |     context->flags |= SIGNAL_FRAME_BIT;
      |                       ^~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:136:44: error: expected ')' before numeric constant
  136 | #define SIGNAL_FRAME_BIT ((~(_Unwind_Word) 0 >> 1) + 1)
      |                           ~                ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:210:24: note: in expansion of macro 'SIGNAL_FRAME_BIT'
  210 |     context->flags &= ~SIGNAL_FRAME_BIT;
      |                        ^~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:213:15: error: unknown type name '_Unwind_Word'
  213 | static inline _Unwind_Word
      |               ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_IsExtendedContext':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:138:34: error: '_Unwind_Word' undeclared (first use in this function)
  138 | #define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
      |                                  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:217:25: note: in expansion of macro 'EXTENDED_CONTEXT_BIT'
  217 |    || (context->flags & EXTENDED_CONTEXT_BIT));
      |                         ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:138:48: error: expected ')' before numeric constant
  138 | #define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
      |                               ~                ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:217:25: note: in expansion of macro 'EXTENDED_CONTEXT_BIT'
  217 |    || (context->flags & EXTENDED_CONTEXT_BIT));
      |                         ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:222:8: error: unknown type name '_Unwind_Word'
  222 | inline _Unwind_Word
      |        ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:223:1: error: conflicting types for '_Unwind_GetGR'
  223 | _Unwind_GetGR (struct _Unwind_Context *context, int regno)
      | ^~~~~~~~~~~~~
In file included from /usr/pkg/include/unwind.h:61,
                 from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind_itanium.h:66:18: note: previous declaration of '_Unwind_GetGR' was here
   66 | extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index);
      |                  ^~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetGR':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:250:22: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetGR'?
  250 |   if (size == sizeof(_Unwind_Ptr))
      |                      ^~~~~~~~~~~
      |                      _Unwind_GetGR
../../../gcc-10.5.0/libgcc/unwind-dw2.c:251:28: error: expected expression before ')' token
  251 |     return * (_Unwind_Ptr *) (_Unwind_Internal_Ptr) val;
      |                            ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:251:31: error: '_Unwind_Internal_Ptr' undeclared (first use in this function)
  251 |     return * (_Unwind_Ptr *) (_Unwind_Internal_Ptr) val;
      |                               ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:26:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:254:34: error: '_Unwind_Word' undeclared (first use in this function)
  254 |       gcc_assert (size == sizeof(_Unwind_Word));
      |                                  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/../gcc/tsystem.h:122:36: note: in definition of macro 'gcc_assert'
  122 | #define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0))
      |                                    ^~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:255:31: error: expected expression before ')' token
  255 |       return * (_Unwind_Word *) (_Unwind_Internal_Ptr) val;
      |                               ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetPtr':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:262:19: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  262 |   return (void *)(_Unwind_Ptr) _Unwind_GetGR (context, index);
      |                   ^~~~~~~~~~~
      |                   _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:262:31: error: expected ';' before '_Unwind_GetGR'
  262 |   return (void *)(_Unwind_Ptr) _Unwind_GetGR (context, index);
      |                               ^~~~~~~~~~~~~~
      |                               ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:260:41: warning: unused parameter 'context' [-Wunused-parameter]
  260 | _Unwind_GetPtr (struct _Unwind_Context *context, int index)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:260:54: warning: unused parameter 'inde' [-Wunused-parameter]
  260 | _Unwind_GetPtr (struct _Unwind_Context *context, int index)
      |                                                  ~~~~^~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:267:1: error: unknown type name '_Unwind_Word'
  267 | _Unwind_Word
      | ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:268:1: error: conflicting types for '_Unwind_GetCFA'
  268 | _Unwind_GetCFA (struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:120:18: note: previous declaration of '_Unwind_GetCFA' was here
  120 | extern uintptr_t _Unwind_GetCFA(struct _Unwind_Context *);
      |                  ^~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetCFA':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:270:11: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  270 |   return (_Unwind_Ptr) context->cfa;
      |           ^~~~~~~~~~~
      |           _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:270:23: error: expected ';' before 'context'
  270 |   return (_Unwind_Ptr) context->cfa;
      |                       ^~~~~~~~
      |                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:268:41: warning: unused parameter 'context' [-Wunused-parameter]
  268 | _Unwind_GetCFA (struct _Unwind_Context *context)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:276:60: error: unknown type name '_Unwind_Word'
  276 | _Unwind_SetGR (struct _Unwind_Context *context, int index, _Unwind_Word val)
      |                                                            ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetGRPtr':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:310:20: error: '_Unwind_Internal_Ptr' undeclared (first use in this function)
  310 |   return (void *) (_Unwind_Internal_Ptr) context->reg[index];
      |                    ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:310:41: error: expected ';' before 'context'
  310 |   return (void *) (_Unwind_Internal_Ptr) context->reg[index];
      |                                         ^~~~~~~~
      |                                         ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_SetGRPtr':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:321:52: error: '_Unwind_Internal_Ptr' undeclared (first use in this function)
  321 |   context->reg[index] = (_Unwind_Context_Reg_Val) (_Unwind_Internal_Ptr) p;
      |                                                    ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:321:73: error: expected ';' before 'p'
  321 |   context->reg[index] = (_Unwind_Context_Reg_Val) (_Unwind_Internal_Ptr;
      |
      |
../../../gcc-10.5.0/libgcc/unwind-dw2.c:316:69: warning: unused parameter 'p' [-Wunused-parameter]
  316 | _Unwind_SetGRPtr (struct _Unwind_Context *context, int index, void *p)
      |                                                               ~~~~~~^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:328:7: error: unknown type name '_Unwind_Word'
  328 |       _Unwind_Word val)
      |       ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:351:8: error: unknown type name '_Unwind_Ptr'
  351 | inline _Unwind_Ptr
      |        ^~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:352:1: error: conflicting types for '_Unwind_GetIP'
  352 | _Unwind_GetIP (struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~
In file included from /usr/pkg/include/unwind.h:61,
                 from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind_itanium.h:69:18: note: previous declaration of '_Unwind_GetIP' was here
   69 | extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context);
      |                  ^~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetIP':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:354:11: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  354 |   return (_Unwind_Ptr) context->ra;
      |           ^~~~~~~~~~~
      |           _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:354:23: error: expected ';' before 'context'
  354 |   return (_Unwind_Ptr) context->ra;
      |                       ^~~~~~~~
      |                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:352:40: warning: unused parameter 'context' [-Wunused-parameter]
  352 | _Unwind_GetIP (struct _Unwind_Context *context)
      |                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:360:8: error: unknown type name '_Unwind_Ptr'
  360 | inline _Unwind_Ptr
      |        ^~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:361:1: error: conflicting types for '_Unwind_GetIPInfo'
  361 | _Unwind_GetIPInfo (struct _Unwind_Context *context, int *ip_before_insn)
      | ^~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:129:18: note: previous declaration of '_Unwind_GetIPInfo' was here
  129 | extern uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context,
      |                  ^~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetIPInfo':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:364:11: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  364 |   return (_Unwind_Ptr) context->ra;
      |           ^~~~~~~~~~~
      |           _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:364:23: error: expected ';' before 'context'
  364 |   return (_Unwind_Ptr) context->ra;
      |                       ^~~~~~~~
      |                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:370:49: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  370 | _Unwind_SetIP (struct _Unwind_Context *context, _Unwind_Ptr val)
      |                                                 ^~~~~~~~~~~
      |                                                 _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:376:1: error: conflicting types for '_Unwind_GetLanguageSpecificData'
  376 | _Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:78:5: note: previous declaration of '_Unwind_GetLanguageSpecificData' was here
   78 |     _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:381:1: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  381 | _Unwind_Ptr
      | ^~~~~~~~~~~
      | _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:382:1: error: conflicting types for '_Unwind_GetRegionStart'
  382 | _Unwind_GetRegionStart (struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:76:18: note: previous declaration of '_Unwind_GetRegionStart' was here
   76 | extern uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *context);
      |                  ^~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetRegionStart':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:384:11: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  384 |   return (_Unwind_Ptr) context->bases.func;
      |           ^~~~~~~~~~~
      |           _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:384:23: error: expected ';' before 'context'
  384 |   return (_Unwind_Ptr) context->bases.func;
      |                       ^~~~~~~~
      |                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:382:49: warning: unused parameter 'context' [-Wunused-parameter]
  382 | _Unwind_GetRegionStart (struct _Unwind_Context *context)
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:399:1: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  399 | _Unwind_Ptr
      | ^~~~~~~~~~~
      | _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:400:1: error: conflicting types for '_Unwind_GetDataRelBase'
  400 | _Unwind_GetDataRelBase (struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:164:18: note: previous declaration of '_Unwind_GetDataRelBase' was here
  164 | extern uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context *context)
      |                  ^~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetDataRelBase':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:402:11: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  402 |   return (_Unwind_Ptr) context->bases.dbase;
      |           ^~~~~~~~~~~
      |           _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:402:23: error: expected ';' before 'context'
  402 |   return (_Unwind_Ptr) context->bases.dbase;
      |                       ^~~~~~~~
      |                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:400:49: warning: unused parameter 'context' [-Wunused-parameter]
  400 | _Unwind_GetDataRelBase (struct _Unwind_Context *context)
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:405:1: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  405 | _Unwind_Ptr
      | ^~~~~~~~~~~
      | _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:406:1: error: conflicting types for '_Unwind_GetTextRelBase'
  406 | _Unwind_GetTextRelBase (struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:31:
/usr/pkg/include/unwind.h:166:18: note: previous declaration of '_Unwind_GetTextRelBase' was here
  166 | extern uintptr_t _Unwind_GetTextRelBase(struct _Unwind_Context *context)
      |                  ^~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetTextRelBase':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:408:11: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  408 |   return (_Unwind_Ptr) context->bases.tbase;
      |           ^~~~~~~~~~~
      |           _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:408:23: error: expected ';' before 'context'
  408 |   return (_Unwind_Ptr) context->bases.tbase;
      |                       ^~~~~~~~
      |                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:406:49: warning: unused parameter 'context' [-Wunused-parameter]
  406 | _Unwind_GetTextRelBase (struct _Unwind_Context *context)
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function 'extract_cie_info':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:425:3: error: unknown type name '_uleb128_t'
  425 |   _uleb128_t utmp;
      |   ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:426:3: error: unknown type name '_sleb128_t'
  426 |   _sleb128_t stmp;
      |   ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:448:7: warning: implicit declaration of function 'read_uleb128' [-Wimplicit-function-declaration]
  448 |   p = read_uleb128 (p, &utmp);
      |       ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:448:5: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  448 |   p = read_uleb128 (p, &utmp);
      |     ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:449:21: error: '_Unwind_Word' undeclared (first use in this function)
  449 |   fs->code_align = (_Unwind_Word)utmp;
      |                     ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:449:34: error: expected ';' before 'utm'
  449 |   fs->code_align = (_Unwind_Word)utmp;
      |                                  ^~~~
      |                                  ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:450:7: warning: implicit declaration of function 'read_sleb128' [-Wimplicit-function-declaration]
  450 |   p = read_sleb128 (p, &stmp);
      |       ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:450:5: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  450 |   p = read_sleb128 (p, &stmp);
      |     ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:451:21: error: '_Unwind_Sword' undeclared (first use in this function); did you mean '_Unwind_SetIP'?
  451 |   fs->data_align = (_Unwind_Sword)stmp;
      |                     ^~~~~~~~~~~~~
      |                     _Unwind_SetIP
../../../gcc-10.5.0/libgcc/unwind-dw2.c:451:35: error: expected ';' before 'stm'
  451 |   fs->data_align = (_Unwind_Sword)stmp;
      |                                   ^~~~
      |                                   ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:456:9: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  456 |       p = read_uleb128 (p, &utmp);
      |         ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:457:42: error: expected ';' before 'utm'
  457 |       fs->retaddr_column = (_Unwind_Word)utmp;
      |                                          ^~~~
      |                                          ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:466:9: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  466 |       p = read_uleb128 (p, &utmp);
      |         ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:493:4: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
  493 |    _Unwind_Ptr personality;
      |    ^~~~~~~~~~~
      |    _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:495:8: warning: implicit declaration of function 'read_encoded_value'; did you mean 'base_of_encoded_value'? [-Wimplicit-function-declaration]
  495 |    p = read_encoded_value (context, *p, p + 1, &personality);
      |        ^~~~~~~~~~~~~~~~~~
      |        base_of_encoded_value
../../../gcc-10.5.0/libgcc/unwind-dw2.c:495:6: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  495 |    p = read_encoded_value (context, *p, p + 1, &personality);
      |      ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:496:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  496 |    fs->personality = (_Unwind_Personality_Fn) personality;
      |                      ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:525:8: error: unknown type name '_Unwind_Word'
  525 | static _Unwind_Word
      |        ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:527:38: error: unknown type name '_Unwind_Word'
  527 |     struct _Unwind_Context *context, _Unwind_Word initial)
      |                                      ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function 'execute_cfa_program':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:973:7: error: unknown type name '_uleb128_t'
  973 |       _uleb128_t reg, utmp;
      |       ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:974:7: error: unknown type name '_sleb128_t'
  974 |       _sleb128_t offset, stmp;
      |       ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:981:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  981 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:982:14: error: '_Unwind_Sword' undeclared (first use in this function); did you mean '_Unwind_SetIP'?
  982 |    offset = (_Unwind_Sword) utmp * fs->data_align;
      |              ^~~~~~~~~~~~~
      |              _Unwind_SetIP
../../../gcc-10.5.0/libgcc/unwind-dw2.c:982:28: error: expected ';' before 'utm'
  982 |    offset = (_Unwind_Sword) utmp * fs->data_align;
      |                            ^~~~~
      |                            ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1001:6: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
 1001 |      _Unwind_Ptr pc;
      |      ^~~~~~~~~~~
      |      _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1003:15: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1003 |      insn_ptr = read_encoded_value (context, fs->fde_encoding,
      |               ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1005:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1005 |      fs->pc = (void *) pc;
      |               ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1023:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1023 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1024:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1024 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1025:28: error: expected ';' before 'utmp'
 1025 |    offset = (_Unwind_Sword) utmp * fs->data_align;
      |                            ^~~~~
      |                            ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1035:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1035 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1044:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1044 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1051:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1051 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1062:6: error: unknown type name '_uleb128_t'
 1062 |      _uleb128_t reg2;
      |      ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1063:15: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1063 |      insn_ptr = read_uleb128 (insn_ptr, &reg);
      |               ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1064:15: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1064 |      insn_ptr = read_uleb128 (insn_ptr, &reg2);
      |               ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1069:39: error: '_Unwind_Word' undeclared (first use in this function)
 1069 |          fs->regs.reg[reg].loc.reg = (_Unwind_Word)reg2;
      |                                       ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1069:52: error: expected ';' before 'reg2'
 1069 |          fs->regs.reg[reg].loc.reg = (_Unwind_Word)reg2;
      |                                                    ^~~~
      |                                                    ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1100:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1100 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1101:37: error: expected ';' before 'utmp'
 1101 |    fs->regs.cfa_reg = (_Unwind_Word)utmp;
      |                                     ^~~~
      |                                     ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1102:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1102 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1103:40: error: expected ';' before 'utmp'
 1103 |    fs->regs.cfa_offset = (_Unwind_Word)utmp;
      |                                        ^~~~
      |                                        ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1108:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1108 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1109:37: error: expected ';' before 'utmp'
 1109 |    fs->regs.cfa_reg = (_Unwind_Word)utmp;
      |                                     ^~~~
      |                                     ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1114:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1114 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1122:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1122 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1127:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1127 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1134:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1134 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1140:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1140 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1141:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1141 |    insn_ptr = read_sleb128 (insn_ptr, &stmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1152:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1152 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1153:37: error: expected ';' before 'utmp'
 1153 |    fs->regs.cfa_reg = (_Unwind_Word)utmp;
      |                                     ^~~~
      |                                     ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1154:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1154 |    insn_ptr = read_sleb128 (insn_ptr, &stmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1155:41: error: expected ';' before 'stmp'
 1155 |    fs->regs.cfa_offset = (_Unwind_Sword)stmp;
      |                                         ^~~~
      |                                         ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1161:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1161 |    insn_ptr = read_sleb128 (insn_ptr, &stmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1162:41: error: expected ';' before 'stmp'
 1162 |    fs->regs.cfa_offset = (_Unwind_Sword)stmp;
      |                                         ^~~~
      |                                         ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1168:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1168 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1169:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1169 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1170:28: error: expected ';' before 'utmp'
 1170 |    offset = (_Unwind_Sword) utmp * fs->data_align;
      |                            ^~~~~
      |                            ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1180:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1180 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1181:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1181 |    insn_ptr = read_sleb128 (insn_ptr, &stmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1192:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1192 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1199:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1199 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1220:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1220 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1221:39: error: expected ';' before 'utmp'
 1221 |    context->args_size = (_Unwind_Word)utmp;
      |                                       ^~~~
      |                                       ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1227:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1227 |    insn_ptr = read_uleb128 (insn_ptr, &reg);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1228:13: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1228 |    insn_ptr = read_uleb128 (insn_ptr, &utmp);
      |             ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1229:27: error: expected ';' before 'utmp'
 1229 |    offset = (_Unwind_Word) utmp * fs->data_align;
      |                           ^~~~~
      |                           ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function 'uw_frame_state_for':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1295:7: error: unknown type name '_uleb128_t'
 1295 |       _uleb128_t i;
      |       ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1296:11: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1296 |       aug = read_uleb128 (aug, &i);
      |           ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1301:7: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
 1301 |       _Unwind_Ptr lsda;
      |       ^~~~~~~~~~~
      |       _Unwind_Action
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1303:11: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1303 |       aug = read_encoded_value (context, fs->lsda_encoding, aug, &lsda);
      |           ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1304:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1304 |       context->lsda = (void *) lsda;
      |                       ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '__frame_state_for':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:138:34: error: '_Unwind_Word' undeclared (first use in this function)
  138 | #define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
      |                                  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1343:21: note: in expansion of macro 'EXTENDED_CONTEXT_BIT'
 1343 |     context.flags = EXTENDED_CONTEXT_BIT;
      |                     ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:138:48: error: expected ')' before numeric constant
  138 | #define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
      |                               ~                ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1343:21: note: in expansion of macro 'EXTENDED_CONTEXT_BIT'
 1343 |     context.flags = EXTENDED_CONTEXT_BIT;
      |                     ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1380:17: error: unknown type name '_Unwind_Ptr'
 1380 | typedef union { _Unwind_Ptr ptr; _Unwind_Word word; } _Unwind_SpTmp;
      |                 ^~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1380:34: error: unknown type name '_Unwind_Word'
 1380 | typedef union { _Unwind_Ptr ptr; _Unwind_Word word; } _Unwind_SpTmp;
      |                                  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_SetSpColumn':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1388:22: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
 1388 |   if (size == sizeof(_Unwind_Ptr))
      |                      ^~~~~~~~~~~
      |                      _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1389:32: error: expected ';' before 'cf'
 1389 |     tmp_sp->ptr = (_Unwind_Ptr) cfa;
      |                                ^~~~
      |                                ;
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:26:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1392:34: error: '_Unwind_Word' undeclared (first use in this function)
 1392 |       gcc_assert (size == sizeof(_Unwind_Word));
      |                                  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/../gcc/tsystem.h:122:36: note: in definition of macro 'gcc_assert'
  122 | #define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0))
      |                                    ^~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1393:35: error: expected ';' before 'cf'
 1393 |       tmp_sp->word = (_Unwind_Ptr) cfa;
      |                                   ^~~~
      |                                   ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1383:61: warning: unused parameter 'cfa' [-Wunused-parameter]
 1383 | _Unwind_SetSpColumn (struct _Unwind_Context *context, void *cfa,
      |                                                       ~~~~~~^~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function 'uw_update_context_1':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1439:2: error: unknown type name '_uleb128_t'
 1439 |  _uleb128_t len;
      |  ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1441:6: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1441 |  exp = read_uleb128 (exp, &len);
      |      ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1442:18: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
 1442 |  cfa = (void *) (_Unwind_Ptr)
      |                  ^~~~~~~~~~~
      |                  _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1442:30: error: expected ';' before 'execute_stack_op'
 1442 |  cfa = (void *) (_Unwind_Ptr)
      |                              ^
      |                              ;
 1443 |    execute_stack_op (exp, exp + len, &orig_context, 0);
      |    ~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1467:4: warning: implicit declaration of function '_Unwind_SetGRValue'; did you mean '_Unwind_GRByValue'? [-Wimplicit-function-declaration]
 1467 |    _Unwind_SetGRValue (context, i,
      |    ^~~~~~~~~~~~~~~~~~
      |    _Unwind_GRByValue
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1479:4: error: unknown type name '_uleb128_t'
 1479 |    _uleb128_t len;
      |    ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1480:15: error: expected ';' before 'va'
 1480 |    _Unwind_Ptr val;
      |               ^~~~
      |               ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1482:8: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1482 |    exp = read_uleb128 (exp, &len);
      |        ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1483:4: error: 'val' undeclared (first use in this function)
 1483 |    val = execute_stack_op (exp, exp + len, &orig_context,
      |    ^~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1483:10: warning: implicit declaration of function 'execute_stack_op' [-Wimplicit-function-declaration]
 1483 |    val = execute_stack_op (exp, exp + len, &orig_context,
      |          ^~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1484:20: error: expected ')' before 'cf'
 1484 |       (_Unwind_Ptr) cfa);
      |                    ^~~~
      |                    )
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1491:9: error: '_Unwind_Internal_Ptr' undeclared (first use in this function)
 1491 |        (_Unwind_Internal_Ptr)
      |         ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1498:4: error: unknown type name '_uleb128_t'
 1498 |    _uleb128_t len;
      |    ^~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1499:15: error: expected ';' before 'va'
 1499 |    _Unwind_Ptr val;
      |               ^~~~
      |               ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1501:8: warning: assignment to 'const unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1501 |    exp = read_uleb128 (exp, &len);
      |        ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1503:20: error: expected ')' before 'cf'
 1503 |       (_Unwind_Ptr) cfa);
      |                    ^~~~
      |                    )
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function 'uw_init_context_1':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:138:34: error: '_Unwind_Word' undeclared (first use in this function)
  138 | #define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
      |                                  ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1590:22: note: in expansion of macro 'EXTENDED_CONTEXT_BIT'
 1590 |     context->flags = EXTENDED_CONTEXT_BIT;
      |                      ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:138:48: error: expected ')' before numeric constant
  138 | #define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
      |                               ~                ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1590:22: note: in expansion of macro 'EXTENDED_CONTEXT_BIT'
 1590 |     context->flags = EXTENDED_CONTEXT_BIT;
      |                      ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function 'uw_install_context_1':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1673:27: error: '_Unwind_Internal_Ptr' undeclared (first use in this function)
 1673 |       void *c = (void *) (_Unwind_Internal_Ptr) current->reg[i];
      |                           ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1673:49: error: expected ',' or ';' before 'current'
 1673 |       void *c = (void *) (_Unwind_Internal_Ptr) current->reg[i];
      |                                                 ^~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1674:48: error: expected ',' or ';' before 'target'
 1674 |       void *t = (void *) (_Unwind_Internal_Ptr)target->reg[i];
      |                                                ^~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1679:4: error: unknown type name '_Unwind_Word'
 1679 |    _Unwind_Word w;
      |    ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1680:4: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_SpTmp'?
 1680 |    _Unwind_Ptr p;
      |    ^~~~~~~~~~~
      |    _Unwind_SpTmp
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1681:43: error: '_Unwind_Word' undeclared (first use in this function)
 1681 |    if (dwarf_reg_size_table[i] == sizeof (_Unwind_Word))
      |                                           ^~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1683:34: error: expected ';' before 't'
 1683 |        w = (_Unwind_Internal_Ptr) t;
      |                                  ^~
      |                                  ;
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:26:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1688:55: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
 1688 |        gcc_assert (dwarf_reg_size_table[i] == sizeof (_Unwind_Ptr));
      |                                                       ^~~~~~~~~~~
../../../gcc-10.5.0/libgcc/../gcc/tsystem.h:122:36: note: in definition of macro 'gcc_assert'
  122 | #define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0))
      |                                    ^~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1689:34: error: expected ';' before 't'
 1689 |        p = (_Unwind_Internal_Ptr) t;
      |                                  ^~
      |                                  ;
../../../gcc-10.5.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1715:15: error: unknown type name '_Unwind_Ptr'
 1715 | static inline _Unwind_Ptr
      |               ^~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:1728:
../../../gcc-10.5.0/libgcc/unwind.inc: In function '_Unwind_RaiseException_Phase2':
../../../gcc-10.5.0/libgcc/unwind.inc:53:54: warning: comparison of integer expressions of different signedness: 'int' and 'uintptr_t' {aka 'long unsigned int'} [-Wsign-compare]
   53 |       match_handler = (uw_identify_context (context) == exc->private_2
      |                                                      ^~
../../../gcc-10.5.0/libgcc/unwind.inc:76:7: warning: implicit declaration of function '_Unwind_Frames_Increment' [-Wimplicit-function-declaration]
   76 |       _Unwind_Frames_Increment (context, frames);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind.inc: At top level:
../../../gcc-10.5.0/libgcc/unwind.inc:86:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Unwind_RaiseException'
   86 | _Unwind_RaiseException(struct _Unwind_Exception *exc)
      | ^~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind.inc: In function '_Unwind_ForcedUnwind_Phase2':
../../../gcc-10.5.0/libgcc/unwind.inc:151:45: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
  151 |   _Unwind_Stop_Fn stop = (_Unwind_Stop_Fn) (_Unwind_Ptr) exc->private_1;
      |                                             ^~~~~~~~~~~
      |                                             _Unwind_GetPtr
../../../gcc-10.5.0/libgcc/unwind.inc:151:58: error: expected ',' or ';' before 'exc'
  151 |   _Unwind_Stop_Fn stop = (_Unwind_Stop_Fn) (_Unwind_Ptr) exc->private_1;
      |                                                          ^~~
../../../gcc-10.5.0/libgcc/unwind.inc:152:48: error: expected ',' or ';' before 'exc'
  152 |   void *stop_argument = (void *) (_Unwind_Ptr) exc->private_2;
      |                                                ^~~
../../../gcc-10.5.0/libgcc/unwind.inc: At top level:
../../../gcc-10.5.0/libgcc/unwind.inc:204:1: error: expected '=', ',', ';', 'as' or '__attribute__' before '_Unwind_ForcedUnwind'
  204 | _Unwind_ForcedUnwind (struct _Unwind_Exception *exc,
      | ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind.inc:229:1: error: expected '=', ',', ';', 'as' or '__attribute__' before '_Unwind_Resume'
  229 | _Unwind_Resume (struct _Unwind_Exception *exc)
      | ^~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind.inc:255:1: error: expected '=', ',', ';', 'as' or '__attribute__' before '_Unwind_Resume_or_Rethrow'
  255 | _Unwind_Resume_or_Rethrow (struct _Unwind_Exception *exc)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind.inc:290:1: error: expected '=', ',', ';', 'as' or '__attribute__' before '_Unwind_Backtrace'
  290 | _Unwind_Backtrace(_Unwind_Trace_Fn trace, void * trace_argument)
      | ^~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:363:21: warning: '_Unwind_IsSignalFrame' is static but used in inline function '_Unwind_GetIPInfo' which is not static
  363 |   *ip_before_insn = _Unwind_IsSignalFrame (context);
      |                     ^~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:239:12: warning: '_Unwind_Get_Unwind_Word' is static but used in inline function '_Unwind_GetGR' which is not static
  239 |     return _Unwind_Get_Unwind_Word (val);
      |            ^~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:238:7: warning: '_Unwind_IsExtendedContext' is static but used in inline function '_Unwind_GetGR' which is not static
  238 |   if (_Unwind_IsExtendedContext (context) && context->by_value[index])
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:235:10: warning: 'dwarf_reg_size_table' is static but used in inline function '_Unwind_GetGR' which is not static
  235 |   size = dwarf_reg_size_table[index];
      |          ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:26:
../../../gcc-10.5.0/libgcc/unwind-dw2.c:234:36: warning: 'dwarf_reg_size_table' is static but used in inline function '_Unwind_GetGR' which is not static
  234 |   gcc_assert (index < (int) sizeof(dwarf_reg_size_table));
      |                                    ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/../gcc/tsystem.h:122:36: note: in definition of macro 'gcc_assert'
  122 | #define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0))
      |                                    ^~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetCFA':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:271:1: warning: control reaches end of non-void function [-Wreturn-type]
  271 | }
      | ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetRegionStart':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:385:1: warning: control reaches end of non-void function [-Wreturn-type]
  385 | }
      | ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetDataRelBase':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:403:1: warning: control reaches end of non-void function [-Wreturn-type]
  403 | }
      | ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetTextRelBase':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:409:1: warning: control reaches end of non-void function [-Wreturn-type]
  409 | }
      | ^
../../../gcc-10.5.0/libgcc/unwind-dw2.c: In function '_Unwind_IsSignalFrame':
../../../gcc-10.5.0/libgcc/unwind-dw2.c:202:1: warning: control reaches end of non-void function [-Wreturn-type]
  202 | }
      | ^
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:1728:
At top level:
../../../gcc-10.5.0/libgcc/unwind.inc:147:1: warning: '_Unwind_ForcedUnwind_Phase2' defined but not used [-Wunused-function]
  147 | _Unwind_ForcedUnwind_Phase2 (struct _Unwind_Exception *exc,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind.inc:38:1: warning: '_Unwind_RaiseException_Phase2' defined but not used [-Wunused-function]
   38 | _Unwind_RaiseException_Phase2(struct _Unwind_Exception *exc,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1660:1: warning: 'uw_install_context_1' defined but not used [-Wunused-function]
 1660 | uw_install_context_1 (struct _Unwind_Context *current,
      | ^~~~~~~~~~~~~~~~~~~~
../../../gcc-10.5.0/libgcc/unwind-dw2.c:1579:1: warning: 'uw_init_context_1' defined but not used [-Wunused-function]
 1579 | uw_init_context_1 (struct _Unwind_Context *context,
      | ^~~~~~~~~~~~~~~~~
In file included from ../../../gcc-10.5.0/libgcc/unwind-dw2.c:35:
../../../gcc-10.5.0/libgcc/unwind-pe.h:101:1: warning: 'base_of_encoded_value' defined but not used [-Wunused-function]
  101 | base_of_encoded_value (unsigned char encoding, struct _Unwind_Context *context)
      | ^~~~~~~~~~~~~~~~~~~~~
gmake[3]: *** [../../../gcc-10.5.0/libgcc/shared-object.mk:14: unwind-dw2.o] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/x86_64--netbsd/libgcc'
gmake[2]: *** [Makefile:21680: all-stage1-target-libgcc] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake[1]: *** [Makefile:27014: stage1-bubble] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build'
gmake: *** [Makefile:1016: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/lang/gcc10
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc10
esbear#
>How-To-Repeat:
Install NetBSD 10.1, download pkgsrc, update it to -current with "cvs -q update -dPC", and then run "cd /usr/pkgsrc/lang/gcc10 && make install"
>Fix:
Not sure, but this issue reminds me of https://mail-index.netbsd.org/pkgsrc-users/2025/01/25/msg040943.html (that one was on macOS, but this one is on NetBSD), since both issues have something called "__deregister_frame" in the error message. Perhaps it's not a NetBSD-specific error?


Home | Main Index | Thread Index | Old Index