error compiling gcc: undefined reference to libc_name_p


http://stackoverflow.com/questions/3040801/error-compiling-gcc-undefined-reference-to-libc-name-p


When compiling GCC it is possible to get very far in the build process only to hiccup on an error complaining about the lack of gperf installed. After installing gperf and running, I hit an "undefined reference to libc_name_p." I've looked at the solutions here and here but they weren't helpful.


========================

When gperf wasn't installed, the compilation script ran the command anyway but generated a blank ./gcc/cp/cfns.h. Since this file was newer than the source (./gcc/cp/cfns.gperf) the makefile left it alone and never regenerated the 'real' file when you actually had gperf. To continue, run rm ./gcc/cp/cfns.h and try again.

原文地址:https://www.cnblogs.com/ztguang/p/12644753.html