开发者

error compiling gcc: undefined reference to libc_name_p

开发者 https://www.devze.com 2023-01-03 05:49 出处:网络
When compiling GCC it is possible to get very far开发者_StackOverflow中文版 in the build process only to hiccup on an error complaining about the lack of gperf installed. After installing gperf and ru

When compiling GCC it is possible to get very far开发者_StackOverflow中文版 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号