|
发表于 2022-5-18 15:48:58
|
显示全部楼层
如果gcc版本问题的话可以按照这个补丁修改一下
- linux@ubuntu:~/gl-infra-builder/openwrt-18.06/siflower/openwrt-18.06$ git diff include/prereq-build.mk
- diff --git a/openwrt-18.06/include/prereq-build.mk b/openwrt-18.06/include/prereq-build.mk
- index f01e2aea5..cd0d0f671 100644
- --- a/openwrt-18.06/include/prereq-build.mk
- +++ b/openwrt-18.06/include/prereq-build.mk
- @@ -28,8 +28,8 @@ $(eval $(call TestHostCommand,proper-umask, \
-
- $(eval $(call SetupHostCommand,gcc, \
- Please install the GNU C Compiler (gcc) 4.8 or later, \
- - $(CC) -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|10\.?)', \
- - gcc -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|10\.?)', \
- + $(CC) -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|1[0-9]\.?)', \
- + gcc -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|1[0-9]\.?)', \
- gcc --version | grep -E 'Apple.(LLVM|clang)' ))
-
- $(eval $(call TestHostCommand,working-gcc, \
- @@ -40,8 +40,8 @@ $(eval $(call TestHostCommand,working-gcc, \
-
- $(eval $(call SetupHostCommand,g++, \
- Please install the GNU C++ Compiler (g++) 4.8 or later, \
- - $(CXX) -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|10\.?)', \
- - g++ -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|10\.?)', \
- + $(CXX) -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|1[0-9]\.?)', \
- + g++ -dumpversion | grep -E '^(4\.[8-9]|[5-9]\.?|1[0-9]\.?)', \
- g++ --version | grep -E 'Apple.(LLVM|clang)' ))
-
- $(eval $(call TestHostCommand,working-g++, \
复制代码 |
|