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
FS#3032 - elfutils fails to build on mpc85xx-generic #7825
Comments
ynezz: Indeed https://downloads.openwrt.org/snapshots/faillogs/powerpc_8540/base/elfutils/compile.txt, seems like upstream problem and should be reported https://sourceware.org/bugzilla there. |
russell: Reverting the last two commits to elfutils (back to v0.177) lets it compile again. |
luizluca: Hello, This package is being updated without my consent. I'm just listed as maintainer by accident ;) I'll take a look. ppc arch was out of my radar until now. Update: This might be a fix. I'll test and report. |
luizluca: |
ynezz:
AFAIK this rule applies only in package feeds, there is no such rule in the main/master tree, in other words in the main/master tree it's usually polite to Cc: maintainer (or other folks taking care about that specific part in the tree), but it's not necessary. Anyway, thanks a lot for the fix! |
SAm0815:
When building for mpc85xx-generic (b77fd0d) I get the following error
Making all in backends powerpc-openwrt-linux-musl-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -I../libebl -I../libasm -I../libelf -I../libdw -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/target-powerpc_8540_musl/usr/include -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/toolchain-powerpc_8540_gcc-8.4.0_musl/usr/include -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/toolchain-powerpc_8540_gcc-8.4.0_musl/include/fortify -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/toolchain-powerpc_8540_gcc-8.4.0_musl/include -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/target-powerpc_8540_musl/usr/lib/libiconv-stub/include -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/target-powerpc_8540_musl/usr/lib/libintl-stub/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -Os -pipe -mcpu=8540 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -ffile-prefix-map=/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/build_dir/target-powerpc_8540_musl/elfutils-0.179=elfutils-0.179 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/target-powerpc_8540_musl/usr/lib/libiconv-stub/include -I/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/staging_dir/target-powerpc_8540_musl/usr/lib/libintl-stub/include -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral -DBAD_FTS=1 -MT ppc_initreg.o -MD -MP -MF .deps/ppc_initreg.Tpo -c -o ppc_initreg.o ppc_initreg.c ppc_initreg.c: In function 'ppc_set_initial_registers_tid': ppc_initreg.c:79:22: error: field 'r' has incomplete type struct pt_regs r; ^ ppc_initreg.c:80:22: error: invalid application of 'sizeof' to incomplete type 'struct pt_regs' long l[sizeof (struct pt_regs) / sizeof (long)]; ^~~~~~ In file included from ppc_initreg.c:39: ppc_initreg.c:83:29: error: invalid application of 'sizeof' to incomplete type 'struct pt_regs' eu_static_assert (sizeof (struct pt_regs) % sizeof (long) == 0); ^~~~~~ ../lib/system.h:163:52: note: in definition of macro 'eu_static_assert' extern int never_defined_just_used_for_checking[(expr) ? 1 : -1] \ ^~~~ ppc_initreg.c:86:34: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits] for (unsigned regno = 0; regno < sizeof (user_regs) / sizeof (long); ^ ppc_initreg.c:97:14: error: unused variable 'dwarf_regs' [-Werror=unused-variable] Dwarf_Word dwarf_regs[GPRS]; ^~~~~~~~~~ In file included from ppc_initreg.c:39: ../lib/system.h:163:14: error: unused variable 'never_defined_just_used_for_checking' [-Werror=unused-variable] extern int never_defined_just_used_for_checking[(expr) ? 1 : -1] \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/system.h:163:14: note: in definition of macro 'eu_static_assert' extern int never_defined_just_used_for_checking[(expr) ? 1 : -1] \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ppc_initreg.c:111:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors make[6]: *** [Makefile:682: ppc_initreg.o] Error 1 make[5]: *** [Makefile:499: all-recursive] Error 1 make[4]: *** [Makefile:415: all] Error 2 make[4]: Leaving directory '/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/build_dir/target-powerpc_8540_musl/elfutils-0.179' make[3]: *** [Makefile:101: /mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/build_dir/target-powerpc_8540_musl/elfutils-0.179/.built] Error 2 make[3]: Leaving directory '/mnt/local/btrfs/build/freifunk/ffberlin/firmware/openwrt/package/libs/elfutils' time: package/libs/elfutils/compile#0.41#0.14#0.52
The text was updated successfully, but these errors were encountered: