编译gcc error-*** LIBRARY_PATH shouldn‘t contain the current directory when *** building gcc.

LD_LIBRARY_PATH以冒号结尾,GCC不赞成该冒号。 还应确保C_INCLUDE_PATH不以冒号结尾,以避免出现相关问题。 方法如下:

方法一:

重新export LIBRARY_PATH和C_INCLUDE_PATH 尾部不含冒号

方法二:

export LIBRARY_PATH=$(echo $LIBRARY_PATH | sed 's/:$//; s/^://;')
export C_INCLUDE_PATH=$(echo $C_INCLUDE_PATH | sed 's/:$//; s/^://;')
方法2仿佛有效

error: #error GATHER_STATISTICS must be defined

export CPP_INCLUDE_PATH=

posted @ 2021-08-12 13:37  MoonXu  阅读(2034)  评论(0编辑  收藏  举报