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

fix: compilation failed #135

Merged
merged 2 commits into from
Sep 6, 2024
Merged

fix: compilation failed #135

merged 2 commits into from
Sep 6, 2024

Conversation

SivonZn
Copy link
Contributor

@SivonZn SivonZn commented Sep 4, 2024

在ubuntu22.04下,lede编译错误:

ninja: Entering directory /home/sivon/lede/package/Sivon/UA2F/openwrt/../build'
[1/5] Building C object CMakeFiles/ua2f.dir/src/cache.c.o
FAILED: CMakeFiles/ua2f.dir/src/cache.c.o
/home/sivon/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/bin/mipsel-openwrt-linux-musl-gcc -DUA2F_ENABLE_UCI=1 -DUA2F_GIT_BRANCH=\"\" -DUA2F_GIT_COMMIT=\"90c9d9f5edce00a6d79847f5249eb1fdf68de929\" -DUA2F_GIT_TAG=\"v4.8.2\" -DUA2F_USE_CUSTOM_UA=1 -DUA2F_VERSION=\"4.8.2\" -I/home/sivon/lede/package/Sivon/UA2F/build -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/sivon/lede/package/Sivon/UA2F/openwrt/..=.. -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -DNDEBUG -std=gnu17 -MD -MT CMakeFiles/ua2f.dir/src/cache.c.o -MF CMakeFiles/ua2f.dir/src/cache.c.o.d -o CMakeFiles/ua2f.dir/src/cache.c.o -c /home/sivon/lede/package/Sivon/UA2F/src/cache.c
/home/sivon/lede/package/Sivon/UA2F/src/cache.c: In function 'check_cache':
/home/sivon/lede/package/Sivon/UA2F/src/cache.c:17:36: error: parameter name omitted
 _Noreturn static void* check_cache(void*) {
                                    ^~~~~
ninja: build stopped: subcommand failed.

@Zxilly
Copy link
Owner

Zxilly commented Sep 4, 2024

https://github.com/Zxilly/UA2F/actions/runs/10647102270/job/29514680037

看起来 CI 中并没有构建问题,能描述一下你使用的 OpenWRT 工具链吗?

@SivonZn
Copy link
Contributor Author

SivonZn commented Sep 4, 2024

我的工具链是在编译lede的过程中随之一起编译的,没有使用其它的工具链

@Zxilly
Copy link
Owner

Zxilly commented Sep 4, 2024

版本是?是官方还是第三方的发行版

@SivonZn
Copy link
Contributor Author

SivonZn commented Sep 4, 2024

官方版,9月4号晚上9点半刚刚拉取编译的

@Zxilly
Copy link
Owner

Zxilly commented Sep 4, 2024

执行一下

/home/sivon/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/bin/mipsel-openwrt-linux-musl-gcc --version

@SivonZn
Copy link
Contributor Author

SivonZn commented Sep 4, 2024

执行结果:
mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 8.4.0 r6835-e90fe2d90) 8.4.0

Co-authored-by: Zxilly <31370133+Zxilly@users.noreply.github.com>
Signed-off-by: SivonZn <79399171+SivonZn@users.noreply.github.com>
@Zxilly Zxilly merged commit 1ac208d into Zxilly:master Sep 6, 2024
18 checks passed
@Zxilly
Copy link
Owner

Zxilly commented Sep 6, 2024

谢谢

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

Successfully merging this pull request may close these issues.

2 participants