C++ 使用crosstool ng编译gcc时出错

C++ 使用crosstool ng编译gcc时出错,c++,c,gcc,crosstool-ng,C++,C,Gcc,Crosstool Ng,有人能帮我解决这个错误吗?我尝试使用ct ng(版本1.23.0)构建arm未知linux gnueabi 我不确定这是否是一个gcc源代码问题,或者是否有一些配置可以在ct ng中更改以忽略此错误 [ERROR] /home/tomas/crosstool-ng-1.23.0/.build/src/gcc-6.3.0/gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-f

有人能帮我解决这个错误吗?我尝试使用ct ng(版本1.23.0)构建arm未知linux gnueabi

我不确定这是否是一个gcc源代码问题,或者是否有一些配置可以在ct ng中更改以忽略此错误

[ERROR]    /home/tomas/crosstool-ng-1.23.0/.build/src/gcc-6.3.0/gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
[ALL  ]           || xloc.file == '0' || xloc.file[0] == 'xff'
[ALL  ]                           ^~~~
[ALL  ]    Makefile:1085: recipe for target 'ubsan.o' failed
[ERROR]    make[3]: *** [ubsan.o] Error 1

显然这就是错误所在。

从github克隆而不是使用最新版本解决了问题。

已知错误:您只需要升级该工具
[ERROR]    /home/tomas/crosstool-ng-1.23.0/.build/src/gcc-6.3.0/gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
[ALL  ]           || xloc.file == '0' || xloc.file[0] == 'xff'
[ALL  ]                           ^~~~
[ALL  ]    Makefile:1085: recipe for target 'ubsan.o' failed
[ERROR]    make[3]: *** [ubsan.o] Error 1