pkgsrc-Bugs archive

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

pkg/56679: gcc6/gcc8/gcc9/gcc10 fail to build for NetBSD 32-bit ARM targets



>Number:         56679
>Category:       pkg
>Synopsis:       gcc6/gcc8/gcc9/gcc10 fail to build for NetBSD 32-bit ARM targets
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 01 02:25:00 +0000 2022
>Originator:     David H. Gutteridge
>Release:        -current and 2021Q4
>Organization:
TNF
>Environment:
>Description:
I don't know if this is better split out into different PRs, but most
current GCC versions fail to build for 32-bit ARM targets in TNF pkgsrc
bulk builds. This means some packages that in turn require GCC >7 on
NetBSD 9.x can't build.

Failures seem consistent between evbarm6 and evbarm7.

GCC 8

/pbulk/work/lang/gcc8/work/build/./gcc/libgcc_s.so.1: version GCC_3.4 required by /usr/lib/libbfd.so.16 not defined
gmake[4]: *** [Makefile:1165: install-leaf] Error 1

GCC 9

c++ -std=gnu++98 -no-pie   -g -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o xg++ \
  gcc.o gcc-main.o ggc-none.o cp/g++spec.o  libcommon-target.a \
   libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a  ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
ld: gcc.o:(.rodata+0x39d8): undefined reference to `host_detect_local_cpu(int, char const**)'
ld: gcc.o:(.rodata+0x39d8): undefined reference to `host_detect_local_cpu(int, char const**)'
gmake[3]: *** [../../gcc-9.3.0/gcc/cp/Make-lang.in:59: xg++] Error 1
gmake[3]: *** Waiting for unfinished jobs....
ld: gcc.o:(.rodata+0x39d8): undefined reference to `host_detect_local_cpu(int, char const**)'
gmake[3]: *** [Makefile:2030: cpp] Error 1

GCC 10

libtool: compile:  /pbulk/work/lang/gcc10/work/build/./gcc/xgcc -shared-libgcc -B/pbulk/work/lang/gcc10/work/build/./gcc -nostdinc++ -L/pbulk/work/lang/gcc10/work/build/armv6--netbsdelf-eabihf/libstdc++-v3/src -L/pbulk/work/lang/gcc10/work/build/armv6--netbsdelf-eabihf/libstdc++-v3/src/.libs -L/pbulk/work/lang/gcc10/work/build/armv6--netbsdelf-eabihf/libstdc++-v3/libsupc++/.libs -B/usr/pkg/gcc10/armv6--netbsdelf-eabihf/bin/ -B/usr/pkg/gcc10/armv6--netbsdelf-eabihf/lib/ -isystem /usr/pkg/gcc10/armv6--netbsdelf-eabihf/include -isystem /usr/pkg/gcc10/armv6--netbsdelf-eabihf/sys-include -fno-checking -I/pbulk/work/lang/gcc10/work/gcc-10.3.0/libstdc++-v3/../libgcc -I/pbulk/work/lang/gcc10/work/build/armv6--netbsdelf-eabihf/libstdc++-v3/include/armv6--netbsdelf-eabihf -I/pbulk/work/lang/gcc10/work/build/armv6--netbsdelf-eabihf/libstdc++-v3/include -I/pbulk/work/lang/gcc10/work/gcc-10.3.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-q
 ual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_alloc.lo -g -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c ../../../../gcc-10.3.0/libstdc++-v3/libsupc++/eh_alloc.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_alloc.o
In file included from ../../../../gcc-10.3.0/libstdc++-v3/libsupc++/unwind-cxx.h:36,
                 from ../../../../gcc-10.3.0/libstdc++-v3/libsupc++/eh_arm.cc:26:
/pbulk/work/lang/gcc10/work/build/gcc/include/unwind.h:30:10: fatal error: unwind-arm-common.h: No such file or directory
   30 | #include "unwind-arm-common.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

GCC 6 (not that significant, but)

/pbulk/work/lang/gcc6/work/build/./gcc/xgcc -B/pbulk/work/lang/gcc6/work/build/./gcc/ -B/usr/pkg/gcc6/armv6--netbsdelf-eabihf/bin/ -B/usr/pkg/gcc6/armv6--netbsdelf-eabihf/lib/ -isystem /usr/pkg/gcc6/armv6--netbsdelf-eabihf/include -isystem /usr/pkg/gcc6/armv6--netbsdelf-eabihf/sys-include    -g -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2  -g -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fPIC -I. -I. -I../.././gcc -I../../../gcc-6.5.0/libgcc -I../../../gcc-6.5.0/libgcc/. -I../../../gcc-6.5.0/libgcc/../gcc -I../../../gcc-6.5.0/libgcc/../include  -DHAVE_CC_TLS  -o _ucmpdi2_s.o -MT _ucmpdi2_s.o -MD -MP -MF _ucmpdi2_s.dep -DSHARED -DL_ucmpdi2 -c ../../../gcc-6.5.0/libgcc/libgcc2.c
In file included from ../../../gcc-6.5.0/libgcc/unwind-c.c:30:0:
./unwind.h:30:31: fatal error: unwind-arm-common.h: No such file or directory
 #include "unwind-arm-common.h"
 
>How-To-Repeat:
Observe TNF bulk build reports for 32-bit ARM targets.
>Fix:
Unknown. I tried to look over NetBSD GCC import/merge history, but this
is beyond my ken.



Home | Main Index | Thread Index | Old Index