error compiling gcc: undefined reference to libc_name_p

来源:互联网 发布:mac地址缓存能力 编辑:程序博客网 时间:2024/06/05 07:04

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 tolibc_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, runrm ./gcc/cp/cfns.h and try again.

0 0
原创粉丝点击