首页 > 解决方案 > #line 上的 Clang 错误“预期表达式”(构建 gcc)

问题描述

大家好。

我正在尝试使用 clang 编译 gcc,我听说这是可能的。但是我在编译过程中遇到了错误。

In file included from build/gencondmd.c:51:                
./tm-constrs.h:10:37: error: expected expression                    
return (GET_CODE (op) == MEM) && (#line 26 "../.././gcc/common.md"                                                                                                    
                                  ^                             
./tm-constrs.h:17:37: error: expected expression                    
return (GET_CODE (op) == MEM) && (#line 32 "../.././gcc/common.md"
                                  ^

像这样的错误很多。

如何修复此错误?

标签: gccclang

解决方案


推荐阅读