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

openwrt编译失败,最新版8.1.1 #125

Open
rayniel opened this issue Apr 17, 2024 · 1 comment
Open

openwrt编译失败,最新版8.1.1 #125

rayniel opened this issue Apr 17, 2024 · 1 comment

Comments

@rayniel
Copy link

rayniel commented Apr 17, 2024

Environment

rtty

  • arch:arm64
  • os:openwrt
  • version:8.1.1

rttys

  • arch:
  • os:
  • version:

Description

Formating code blocks by wrapping them with pairs of ```

[2/11] Building C object src/CMakeFiles/rtty.dir/file.c.o
FAILED: src/CMakeFiles/rtty.dir/file.c.o
.../staging_dir/toolchain-aarch64_cortex-a53_gcc-13.2.0_musl/bin/aarch64-openwrt-linux-musl-gcc -D_GNU_SOURCE -I.../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1/src -I.../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1/src/buffer -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=.../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1=rtty-8.1.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -O -Wall -Werror --std=gnu99 -MD -MT src/CMakeFiles/rtty.dir/file.c.o -MF src/CMakeFiles/rtty.dir/file.c.o.d -o src/CMakeFiles/rtty.dir/file.c.o -c .../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1/src/file.c
.../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1/src/file.c: In function 'start_upload_file':
.../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1/src/file.c:156:24: error: implicit declaration of function 'basename' [-Werror=implicit-function-declaration]
156 | const char *name = basename(path);
| ^~~~~~~~
.../build_dir/target-aarch64_cortex-a53_musl/rtty-nossl/rtty-8.1.1/src/file.c:156:24: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.

basename报错,补全#include <libgen.h>也无法解决问题

@zhaojh329
Copy link
Owner

openwrt/packages#23931

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

2 participants