pkgsrc-Bugs archive

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

pkg/55309: lang/gcc10 build attempt on/for aarch64 failed for: undefined reference to host_detect_local_cpu



>Number:         55309
>Category:       pkg
>Synopsis:       lang/gcc10 build attempt on/for aarch64 failed for: undefined reference to host_detect_local_cpu
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 28 07:10:00 +0000 2020
>Originator:     Mark Millard
>Release:        pkgsrc HEAD 2020-May-27
>Organization:
>Environment:
NetBSD NBSDRPi4 9.99.64 NetBSD 9.99.64 (GENERIC64) #0: Tue May 26 08:39:27 UTC 2020  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm aarch64

>Description:
I was testing NetBSD -current's ability to build large jobs in parallel on a RPi4 (aarch64 with 4 GiBytes of RAM). I had lang/clang and lang/gcc10 builds going with MAKE_JOBS=4 for both. I had pre-done the fetch-list activity.

The lang/gcc10 make built the prerequisites and then stopped gcc10's own build at/with:

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 xgcc gcc.o gcc-main.o ggc-none.o \
  c/gccspec.o  libcommon-target.a \
   libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a  ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
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 cpp gcc.o gcc-main.o ggc-none.o \
  c-family/cppspec.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+0x3cf0): undefined reference to `host_detect_local_cpu(int, char const**)'
ld: gcc.o:(.rodata+0x3cf0): undefined reference to `host_detect_local_cpu(int, char const**)'
gmake[3]: *** [Makefile:2072: xgcc] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** [Makefile:2081: cpp] Error 1
rm gcc.pod
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc10/work/build/gcc'
gmake[2]: *** [Makefile:4745: all-stage1-gcc] Error 2

I had installed NetBSD via using https://www.armbsd.org/arm/HEAD/202005260840Z/NetBSD-evbarm-aarch64-202005260840Z-generic.img.gz .

(I answered Severity as critical for "gcc10 not available and so gcc10 fails to do its job".
I was less sure what to do with Priority. I would like to get gcc10 built for experimenting
with the modern g++ but others may well have a more direct time frame that really is a
constraint rather than a preference. I used "uname -ap" output for Environment, since it is explicit about aarch64.)
>How-To-Repeat:
In/on an aarch64 NetBSD context with HEAD pkgsrc:

cd /usr/pkgsrc/lang/gcc10
make fetch-list | sh
MAKE_JOBS=4 make

>Fix:


Home | Main Index | Thread Index | Old Index