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

编译失败 #12462

Open
1 task done
GreatMichaelLee opened this issue Sep 13, 2024 · 7 comments
Open
1 task done

编译失败 #12462

GreatMichaelLee opened this issue Sep 13, 2024 · 7 comments

Comments

@GreatMichaelLee
Copy link

详细叙述

编译报错,详见日志。

重复 issue

  • 没有类似的 issue

具体型号

X86

详细日志

touch /home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5=libbpf-1.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5=libbpf-1.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include " LDFLAGS="-L/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/lib -L/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/lib -znow -zrelro " make -C /home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5/src AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5=libbpf-1.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" V=1 LIBSUBDIR=lib ;
make[4]: Entering directory '/home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5/src'
x86_64-openwrt-linux-musl-gcc -I. -I../include -I../include/uapi -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5=libbpf-1.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify -I/home/builder/lede_x86/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unknown-warning-option -Wno-format-overflow -I/home/builder/lede_x86/staging_dir/target-x86_64_musl/usr/include -c btf.c -o staticobjs/btf.o
In file included from btf.c:18:
/home/builder/lede_x86/staging_dir/target-x86_64_musl/usr/include/gelf.h:86:9: error: unknown type name 'Elf64_Relr'
86 | typedef Elf64_Relr GElf_Relr;
| ^~~~~~~~~~
cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
make[4]: *** [Makefile:134: staticobjs/btf.o] Error 1
make[4]: Leaving directory '/home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5/src'
make[3]: *** [Makefile:75: /home/builder/lede_x86/build_dir/target-x86_64_musl/libbpf-1.4.5/.built] Error 2
make[3]: Leaving directory '/home/builder/lede_x86/package/libs/libbpf'
time: package/libs/libbpf/compile#0.05#0.12#0.16
ERROR: package/libs/libbpf failed to build.
make[2]: *** [package/Makefile:116: package/libs/libbpf/compile] Error 1
make[2]: Leaving directory '/home/builder/lede_x86'
make[1]: *** [package/Makefile:110: /home/builder/lede_x86/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/builder/lede_x86'
make: *** [/home/builder/lede_x86/include/toplevel.mk:231:world] 错误 2
builder@Build-Server:/home/builder/lede_x86$

@ZGNCZMY
Copy link

ZGNCZMY commented Sep 13, 2024

我也是,下了DL包,目前是tini报错了,卡在tini了

@qingtian110
Copy link

musl1.2.5 + gcc13 + libbpf1.4.5

所以没有一个人觉得这个配方奇怪么,埋头就 build

@love-dy
Copy link

love-dy commented Sep 13, 2024

musl1.2.5 + gcc13 + libbpf1.4.5

所以没有一个人觉得这个配方奇怪么,埋头就 build

哈,我突然想到一个词,缝合

@ZGNCZMY
Copy link

ZGNCZMY commented Sep 13, 2024

musl1.2.5 + gcc13 + libbpf1.4.5

所以没有一个人觉得这个配方奇怪么,埋头就 build

哈哈,好久没更新系统了想更新下

@GreatMichaelLee
Copy link
Author

musl1.2.5 + gcc13 + libbpf1.4.5

所以没有一个人觉得这个配方奇怪么,埋头就 build

听不懂,不是每一个人都有相同的知识水平,请教不埋头build,应该如何?

@GreatMichaelLee
Copy link
Author

强制rebase基线后,现在出这个了,咋弄,这冲突是个啥啊

Collected errors:

  • check_data_file_clashes: Package kmod-r8125-rss wants to install file /home/builder/lede_x86/build_dir/target-x86_64_musl/root-x86/lib/modules/6.6.50/r8125.ko
    But that file is already provided by package * kmod-r8125
  • opkg_install_cmd: Cannot install package kmod-r8125-rss.
  • check_data_file_clashes: Package kmod-r8126-rss wants to install file /home/builder/lede_x86/build_dir/target-x86_64_musl/root-x86/lib/modules/6.6.50/r8126.ko
    But that file is already provided by package * kmod-r8126
  • opkg_install_cmd: Cannot install package kmod-r8126-rss.
    make[2]: *** [package/Makefile:70: package/install] Error 255
    make[2]: Leaving directory '/home/builder/lede_x86'
    make[1]: *** [package/Makefile:111: /home/builder/lede_x86/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
    make[1]: Leaving directory '/home/builder/lede_x86'
    make: *** [/home/builder/lede_x86/include/toplevel.mk:231:world] 错误 2
    builder@Build-Server:/home/builder/lede_x86$

@HollyMadCow
Copy link

强制rebase基线后,现在出这个了,咋弄,这冲突是个啥啊

Collected errors:

  • check_data_file_clashes: Package kmod-r8125-rss wants to install file /home/builder/lede_x86/build_dir/target-x86_64_musl/root-x86/lib/modules/6.6.50/r8125.ko
    But that file is already provided by package * kmod-r8125
  • opkg_install_cmd: Cannot install package kmod-r8125-rss.
  • check_data_file_clashes: Package kmod-r8126-rss wants to install file /home/builder/lede_x86/build_dir/target-x86_64_musl/root-x86/lib/modules/6.6.50/r8126.ko
    But that file is already provided by package * kmod-r8126
  • opkg_install_cmd: Cannot install package kmod-r8126-rss.
    make[2]: *** [package/Makefile:70: package/install] Error 255
    make[2]: Leaving directory '/home/builder/lede_x86'
    make[1]: *** [package/Makefile:111: /home/builder/lede_x86/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
    make[1]: Leaving directory '/home/builder/lede_x86'
    make: *** [/home/builder/lede_x86/include/toplevel.mk:231:world] 错误 2
    builder@Build-Server:/home/builder/lede_x86$

删除config文件,重新make menuconfig

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