yunixx
Posts: 1
Joined: Tue Oct 01, 2013 4:25 pm

"host_detect_local_cpu" error building gcc4.7 for NetBSD Pi

Tue Oct 01, 2013 4:32 pm

I require gcc 4.7 or higher on NetBSD PI for a project I am working on. I downloaded the netbsd pkgsrc onto Pi running NetBSD Current (updated pretty recently). However I am seeing "undefined reference to `host_detect_local_cpu'" error when building gcc 4.7 and 4.8 on the Pi NetBSD.

Any help would be appreciated.

gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o xgcc gcc.o ggc-none.o \
gccspec.o libcommon-target.a \
libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
gcc.o:(.rodata+0x30f8): undefined reference to `host_detect_local_cpu'
gmake[3]: *** [xgcc] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/lang/gcc47/work.earm/build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc47/work.earm/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc47/work.earm/build'
gmake: *** [all] Error 2
*** Error code 2

Stop.

Return to “NetBSD”