https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77800
Bug ID: 77800 Summary: Undefined ref to host_detect_local_cpu on netbsd/arm Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: coypu at sdf dot org Target Milestone: --- Hello, Building GCC 5.4.0 on netbsd 7.0.1 armv6hf I encounter failure like: gcc.o:(.rodata+0x58c4): undefined reference to `host_detect_local_cpu(int, char const**)' I believe this is because gcc/config.host includes driver-arm.o which defines this function only on freebsd/arm and linux/arm. NetBSD does have a procfs which is mounted by default. it usually does include the expected useful info on /proc/cpuinfo (although not on netbsd-7.0.1/arm, maybe this will change in a next release). I am working around this by excluding the prototype for this function in gcc/config/arm/arm.h. I don't believe any of this has changed in GCC 5.4.1, but did not try to build it yet.