Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gn/Makefile 造成编译出错 #1528

Open
iii80 opened this issue Aug 29, 2024 · 9 comments
Open

gn/Makefile 造成编译出错 #1528

iii80 opened this issue Aug 29, 2024 · 9 comments

Comments

@iii80
Copy link

iii80 commented Aug 29, 2024

gn/Makefile 这个文件恢复上个版本
PKG_SOURCE_DATE:=2024-05-13
PKG_SOURCE_VERSION:=df98b86690c83b81aedc909ded18857296406159
PKG_MIRROR_HASH:=3c3ce5cb69a8ec210bb6574db84d53745f7f58e1d82442af0423f69f7190c31f
编译通过,最新的编译出错,希望检查下代码,更新下。

@zxlhhyccc
Copy link
Contributor

zxlhhyccc commented Aug 31, 2024

更新到2024-08-13版本没有问题,请检查你的编译环境。
#1526

@Elda1994
Copy link

Elda1994 commented Sep 3, 2024

我遇到了跟你一样的问题,但是按照你这个办法,我没有解决问题。我是用官方openwrt 21.02.2加入的helloworld插件,然后编译到最后报gn错误,找不到解决办法。已经取消了naviproxy,也更新了gcc,也安装了clang...但是还是报gn错误

@iii80
Copy link
Author

iii80 commented Sep 6, 2024

我遇到了跟你一样的问题,但是按照你这个办法,我没有解决问题。我是用官方openwrt 21.02.2加入的helloworld插件,然后编译到最后报gn错误,找不到解决办法。已经取消了naviproxy,也更新了gcc,也安装了clang...但是还是报gn错误

给文件三行替换成我上面发的就可以通过了

@Elda1994
Copy link

Elda1994 commented Sep 6, 2024

我遇到了跟你一样的问题,但是按照你这个办法,我没有解决问题。我是用官方openwrt 21.02.2加入的helloworld插件,然后编译到最后报gn错误,找不到解决办法。已经取消了naviproxy,也更新了gcc,也安装了clang...但是还是报gn错误

给文件三行替换成我上面发的就可以通过了

替换成你这个也不行,我最后在官方Openwrt r23.05.0分支下面,加入了kenzok small仓库,才顺利把ssr plus编译出来。感觉每个人遇到的奇怪问题都不一样。

@Elda1994
Copy link

Elda1994 commented Sep 6, 2024

哦对了,我最后取消编译naivyproxy了,这个小东西,我是真的编译不过去,找不出原因的编译不过去,把它取消编译,直接编译成功。已经替换过golang版本

@iii80
Copy link
Author

iii80 commented Sep 9, 2024

我的编译环境是Debian12系统,apt安装的golang,除了SSR+出问题,其他的都正常。通过替换版本信息,正常编译通过。

@binge8
Copy link
Contributor

binge8 commented Sep 15, 2024

安装clang,把gcc升级到12或13版本,就没问题了。golang不需要你安装

@725216
Copy link

725216 commented Nov 8, 2024

一样出错
touch /workdir/openwrt/staging_dir/target-mipsel_24kc_musl/root-ramips/stamp/.microsocks_installed
make[3]: Leaving directory '/workdir/openwrt/package/hellowrld/microsocks'
time: package/hellowrld/microsocks/compile#0.13#0.05#0.16
make[3]: Entering directory '/workdir/openwrt/package/hellowrld/gn'
MAKEFLAGS="" /workdir/openwrt/staging_dir/host/bin/ninja -j1 -C /workdir/openwrt/build_dir/hostpkg/gn-2024-09-25-95b0f8fe/out
ninja: Entering directory `/workdir/openwrt/build_dir/hostpkg/gn-2024-09-25-95b0f8fe/out'
[1/295] CXX src/base/command_line.o
FAILED: src/base/command_line.o
clang++ -MMD -MF src/base/command_line.o.d -I../src -I. -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++20 -Wrange-loop-analysis -Wextra-semi-stmt -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -c ../src/base/command_line.cc -o src/base/command_line.o
/bin/sh: 1: clang++: not found
ninja: build stopped: subcommand failed.
make[3]: Leaving directory '/workdir/openwrt/package/hellowrld/gn'
make[3]: *** [Makefile:58: /workdir/openwrt/build_dir/hostpkg/gn-2024-09-25-95b0f8fe/.built] Error 1
time: package/hellowrld/gn/host-compile#0.07#0.06#0.11
make[2]: *** [package/Makefile:114: package/hellowrld/gn/host/compile] Error 1
ERROR: package/hellowrld/gn [host] failed to build.
make[2]: Leaving directory '/workdir/openwrt'
make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/workdir/openwrt'
make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2

@725216
Copy link

725216 commented Nov 8, 2024

用的padavanonly/immortalwrt
源码,以前clone的还能正常编译,现在克隆的包括云编译都不行,删除了源码自带的luci-app-ssr-plus和xray-core,xray-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants