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

这个两天编译错误,麻烦大佬帮忙看看。 #517

Open
LIUBANGJIAN opened this issue Jan 19, 2025 · 2 comments
Open

这个两天编译错误,麻烦大佬帮忙看看。 #517

LIUBANGJIAN opened this issue Jan 19, 2025 · 2 comments

Comments

@LIUBANGJIAN
Copy link

2025-01-19T10:35:08.5429732Z 345 | free (root);
2025-01-19T10:35:08.5429994Z | ^~~~
2025-01-19T10:35:08.5430317Z In file included from ./include/grub/emu/misc.h:25,
2025-01-19T10:35:08.5430665Z from util/setup.c:22:
2025-01-19T10:35:08.5431201Z ./grub-core/lib/gnulib/stdlib.h:739:1: note: expected 'void ' but argument is of type 'const char '
2025-01-19T10:35:08.5431797Z 739 | _GL_FUNCDECL_RPL (free, void, (void ptr));
2025-01-19T10:35:08.5432127Z | ^~~~~~~~~~~~~~~~
2025-01-19T10:35:08.6405378Z mv -f util/.deps-util/grub_install-setup_sparc.Tpo util/.deps-util/grub_install-setup_sparc.Po
2025-01-19T10:35:08.6461594Z x86_64-openwrt-linux-musl-gcc -std=gnu99 -fno-common -fno-builtin-gettext -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wcast-align -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Wno-error=attributes -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12=grub-2.12 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -L/home/runner/work/lede/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/lib -L/home/runner/work/lede/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -o grub-install grub-core/disk/grub_install-host.o grub-core/kern/emu/grub_install-argp_common.o grub-core/kern/emu/grub_install-hostfs.o grub-core/lib/grub_install-reed_solomon.o grub-core/osdep/grub_install-blocklist.o grub-core/osdep/grub_install-compress.o grub-core/osdep/grub_install-config.o grub-core/osdep/grub_install-init.o grub-core/osdep/grub_install-ofpath.o grub-core/osdep/grub_install-platform.o grub-core/osdep/grub_install-platform_unix.o grub-core/osdep/grub_install-random.o util/grub_install-config.o util/grub_install-editenv.o util/grub_install-grub-install-common.o util/grub_install-grub-install.o util/grub_install-grub-mkimage32.o util/grub_install-grub-mkimage64.o util/grub_install-mkimage.o util/grub_install-probe.o util/grub_install-render-label.o util/grub_install-resolve.o util/grub_install-setup_bios.o util/grub_install-setup_sparc.o libgrubmods.a libgrubgcry.a libgrubkern.a grub-core/lib/gnulib/libgnu.a
2025-01-19T10:35:08.6792537Z (for x in util/grub-kbdcomp.in ; do cat ./"$x"; done) | ./config.status --file=grub-kbdcomp:-
2025-01-19T10:35:08.7192650Z config.status: creating grub-kbdcomp
2025-01-19T10:35:08.7319022Z chmod a+x grub-kbdcomp
2025-01-19T10:35:08.7339086Z (for x in util/grub.d/00_header.in ; do cat ./"$x"; done) | ./config.status --file=00_header:-
2025-01-19T10:35:08.7740509Z config.status: creating 00_header
2025-01-19T10:35:08.7868986Z chmod a+x 00_header
2025-01-19T10:35:08.7888500Z (for x in util/grub.d/10_linux.in ; do cat ./"$x"; done) | ./config.status --file=10_linux:-
2025-01-19T10:35:08.8287119Z config.status: creating 10_linux
2025-01-19T10:35:08.8413584Z chmod a+x 10_linux
2025-01-19T10:35:08.8433206Z (for x in util/grub.d/20_linux_xen.in ; do cat ./"$x"; done) | ./config.status --file=20_linux_xen:-
2025-01-19T10:35:08.8831868Z config.status: creating 20_linux_xen
2025-01-19T10:35:08.8958864Z chmod a+x 20_linux_xen
2025-01-19T10:35:08.8977986Z (for x in util/grub.d/25_bli.in ; do cat ./"$x"; done) | ./config.status --file=25_bli:-
2025-01-19T10:35:08.9376038Z config.status: creating 25_bli
2025-01-19T10:35:08.9512955Z chmod a+x 25_bli
2025-01-19T10:35:08.9532376Z (for x in util/grub.d/30_os-prober.in ; do cat ./"$x"; done) | ./config.status --file=30_os-prober:-
2025-01-19T10:35:08.9932606Z config.status: creating 30_os-prober
2025-01-19T10:35:09.0060793Z chmod a+x 30_os-prober
2025-01-19T10:35:09.0080183Z (for x in util/grub.d/30_uefi-firmware.in ; do cat ./"$x"; done) | ./config.status --file=30_uefi-firmware:-
2025-01-19T10:35:09.0480212Z config.status: creating 30_uefi-firmware
2025-01-19T10:35:09.0603909Z chmod a+x 30_uefi-firmware
2025-01-19T10:35:09.0623302Z (for x in util/grub.d/40_custom.in ; do cat ./"$x"; done) | ./config.status --file=40_custom:-
2025-01-19T10:35:09.1023325Z config.status: creating 40_custom
2025-01-19T10:35:09.1158885Z chmod a+x 40_custom
2025-01-19T10:35:09.1178478Z (for x in util/grub.d/41_custom.in ; do cat ./"$x"; done) | ./config.status --file=41_custom:-
2025-01-19T10:35:09.1576347Z config.status: creating 41_custom
2025-01-19T10:35:09.1711704Z chmod a+x 41_custom
2025-01-19T10:35:09.1731044Z (for x in util/grub-mkconfig_lib.in ; do cat ./"$x"; done) | ./config.status --file=grub-mkconfig_lib:-
2025-01-19T10:35:09.2127837Z config.status: creating grub-mkconfig_lib
2025-01-19T10:35:09.2253276Z chmod a+x grub-mkconfig_lib
2025-01-19T10:35:09.2272238Z (for x in tests/util/grub-shell.in ; do cat ./"$x"; done) | ./config.status --file=grub-shell:-
2025-01-19T10:35:09.2670496Z config.status: creating grub-shell
2025-01-19T10:35:09.2802060Z chmod a+x grub-shell
2025-01-19T10:35:09.2821763Z (for x in tests/util/grub-shell-tester.in ; do cat ./"$x"; done) | ./config.status --file=grub-shell-tester:-
2025-01-19T10:35:09.3219187Z config.status: creating grub-shell-tester
2025-01-19T10:35:09.3343279Z chmod a+x grub-shell-tester
2025-01-19T10:35:09.3362261Z (for x in tests/util/grub-shell-luks-tester.in ; do cat ./"$x"; done) | ./config.status --file=grub-shell-luks-tester:-
2025-01-19T10:35:09.3761341Z config.status: creating grub-shell-luks-tester
2025-01-19T10:35:09.3885923Z chmod a+x grub-shell-luks-tester
2025-01-19T10:35:09.3905962Z gcc -o garbage-gen -std=gnu99 -fno-common -DGRUB_FILE="util/garbage-gen.c" -I. -I. -I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/ util/garbage-gen.c
2025-01-19T10:35:09.4271255Z (for x in tests/util/grub-fs-tester.in ; do cat ./"$x"; done) | ./config.status --file=grub-fs-tester:-
2025-01-19T10:35:09.4669091Z config.status: creating grub-fs-tester
2025-01-19T10:35:09.4821714Z chmod a+x grub-fs-tester
2025-01-19T10:35:09.4840977Z (for x in util/grub-mkconfig.in ; do cat ./"$x"; done) | ./config.status --file=grub-mkconfig:-
2025-01-19T10:35:09.5240889Z config.status: creating grub-mkconfig
2025-01-19T10:35:09.5367078Z chmod a+x grub-mkconfig
2025-01-19T10:35:09.5386294Z (for x in util/grub-set-default.in ; do cat ./"$x"; done) | ./config.status --file=grub-set-default:-
2025-01-19T10:35:09.5791771Z config.status: creating grub-set-default
2025-01-19T10:35:09.5916716Z chmod a+x grub-set-default
2025-01-19T10:35:09.5935746Z (for x in util/grub-reboot.in ; do cat ./"$x"; done) | ./config.status --file=grub-reboot:-
2025-01-19T10:35:09.6336588Z config.status: creating grub-reboot
2025-01-19T10:35:09.6463530Z chmod a+x grub-reboot
2025-01-19T10:35:09.6534333Z make[6]: Leaving directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12'
2025-01-19T10:35:09.6545397Z Making all in po
2025-01-19T10:35:09.6572977Z make[6]: Entering directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/po'
2025-01-19T10:35:09.6573920Z make[6]: Nothing to be done for 'all'.
2025-01-19T10:35:09.6574551Z make[6]: Leaving directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/po'
2025-01-19T10:35:09.6576704Z Making all in docs
2025-01-19T10:35:09.6613745Z make[6]: Entering directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/docs'
2025-01-19T10:35:09.6614580Z make[6]: Nothing to be done for 'all'.
2025-01-19T10:35:09.6615141Z make[6]: Leaving directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/docs'
2025-01-19T10:35:09.6617204Z Making all in util/bash-completion.d
2025-01-19T10:35:09.6652641Z make[6]: Entering directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/util/bash-completion.d'
2025-01-19T10:35:09.6653795Z ../../config.status --file=grub:grub-completion.bash.in
2025-01-19T10:35:09.7050636Z config.status: creating grub
2025-01-19T10:35:09.7177491Z make[6]: Leaving directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/util/bash-completion.d'
2025-01-19T10:35:09.7183216Z make[5]: Leaving directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12'
2025-01-19T10:35:09.7187879Z make[4]: Leaving directory '/home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12'
2025-01-19T10:35:09.7191670Z touch /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.built
2025-01-19T10:35:09.7254064Z mkdir -p /home/runner/work/lede/lede/bin/targets/x86/64/packages /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup/CONTROL /home/runner/work/lede/lede/staging_dir/target-x86_64_musl/pkginfo
2025-01-19T10:35:09.7284266Z install -d -m0755 /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup/usr/sbin
2025-01-19T10:35:09.7314589Z install -m0755 /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/grub-bios-setup /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup/usr/sbin/
2025-01-19T10:35:09.7352438Z find /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup -name 'CVS' -o -name '.svn' -o -name '.#
' -o -name '
~'| xargs -r rm -rf
2025-01-19T10:35:09.7575930Z export CROSS="x86_64-openwrt-linux-musl-" NO_RENAME=1 ; NM="x86_64-openwrt-linux-musl-nm" STRIP="/home/runner/work/lede/lede/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/runner/work/lede/lede/scripts/strip-kmod.sh" PATCHELF="/home/runner/work/lede/lede/staging_dir/host/bin/patchelf" /home/runner/work/lede/lede/scripts/rstrip.sh /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup
2025-01-19T10:35:09.7651205Z rstrip.sh: /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup/usr/sbin/grub-bios-setup: executable
2025-01-19T10:35:09.7715542Z (cd /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]
, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0"; echo "[ -s "${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". ${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst $0 $@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". ${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm $0 $@"; ) > prerm; chmod 0755 postinst prerm; )
2025-01-19T10:35:09.7775988Z install -d -m0755 /home/runner/work/lede/lede/bin/targets/x86/64/packages
2025-01-19T10:35:09.7806972Z /home/runner/work/lede/lede/staging_dir/host/bin/fakeroot /home/runner/work/lede/lede/staging_dir/host/bin/bash /home/runner/work/lede/lede/scripts/ipkg-build -m "" /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup /home/runner/work/lede/lede/bin/targets/x86/64/packages
2025-01-19T10:35:09.8731694Z Packaged contents of /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/ipkg-x86_64/grub2-bios-setup into /home/runner/work/lede/lede/bin/targets/x86/64/packages/grub2-bios-setup_2.12-6_x86_64.ipk
2025-01-19T10:35:09.8755506Z rm -rf /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup.installed /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup
2025-01-19T10:35:09.8787362Z mkdir -p /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup
2025-01-19T10:35:09.8815773Z install -d -m0755 /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup/usr/sbin
2025-01-19T10:35:09.8845216Z install -m0755 /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/grub-bios-setup /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup/usr/sbin/
2025-01-19T10:35:09.8883710Z touch /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup.installed
2025-01-19T10:35:09.8908347Z mkdir -p /home/runner/work/lede/lede/staging_dir/target-x86_64_musl/root-x86/stamp
2025-01-19T10:35:09.8938208Z SHELL= flock /home/runner/work/lede/lede/tmp/.root-copy.flock -c 'cp -fpR /home/runner/work/lede/lede/build_dir/target-x86_64_musl/linux-x86_64/grub-none/grub-2.12/.pkgdir/grub2-bios-setup/. /home/runner/work/lede/lede/staging_dir/target-x86_64_musl/root-x86/'
2025-01-19T10:35:09.8988578Z touch /home/runner/work/lede/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.grub2-bios-setup_installed
2025-01-19T10:35:09.9083873Z echo "grub2-bios-setup" >> /home/runner/work/lede/lede/staging_dir/target-x86_64_musl/pkginfo/grub2.none.install
2025-01-19T10:35:09.9103605Z make[3]: Leaving directory '/home/runner/work/lede/lede/package/boot/grub2'
2025-01-19T10:35:09.9109116Z time: package/boot/grub2/none/compile#58.08#10.54#65.96
2025-01-19T10:35:09.9120316Z make[2]: Leaving directory '/home/runner/work/lede/lede'
2025-01-19T10:35:09.9148659Z make[1]: *** [package/Makefile:110: /home/runner/work/lede/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
2025-01-19T10:35:09.9153970Z make[1]: Leaving directory '/home/runner/work/lede/lede'
2025-01-19T10:35:09.9185168Z make: *** [/home/runner/work/lede/lede/include/toplevel.mk:231: world] Error 2
2025-01-19T10:35:09.9204739Z ##[error]Process completed with exit code 2.
2025-01-19T10:35:09.9296210Z Post job cleanup.
2025-01-19T10:35:10.0301018Z [command]/usr/bin/git version
2025-01-19T10:35:10.0336756Z git version 2.47.1
2025-01-19T10:35:10.0379527Z Temporarily overriding HOME='/home/runner/work/_temp/4647d355-2ce5-4456-b03d-83b60331cf0e' before making global git config changes
2025-01-19T10:35:10.0380776Z Adding repository directory to the temporary git global config as a safe directory
2025-01-19T10:35:10.0385642Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/lede/lede
2025-01-19T10:35:10.0422951Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2025-01-19T10:35:10.0456621Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2025-01-19T10:35:10.0715515Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2025-01-19T10:35:10.0737373Z http.https://github.com/.extraheader
2025-01-19T10:35:10.0749367Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2025-01-19T10:35:10.0781499Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2025-01-19T10:35:10.1150120Z Post job cleanup.
2025-01-19T10:35:10.2087318Z [command]/usr/bin/git version
2025-01-19T10:35:10.2124921Z git version 2.47.1
2025-01-19T10:35:10.2166372Z Temporarily overriding HOME='/home/runner/work/_temp/8170c578-1a13-4a14-9afa-0711fd205774' before making global git config changes
2025-01-19T10:35:10.2167292Z Adding repository directory to the temporary git global config as a safe directory
2025-01-19T10:35:10.2171861Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/lede/lede
2025-01-19T10:35:10.2209862Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2025-01-19T10:35:10.2245583Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2025-01-19T10:35:10.2524618Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2025-01-19T10:35:10.2560390Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2025-01-19T10:35:10.2956365Z Cleaning up orphan processes

这个两天编译错误,麻烦大佬帮忙看看。

@smmya
Copy link

smmya commented Jan 21, 2025

+1,这段时间编译一直出问题

@LIUBANGJIAN
Copy link
Author

已经放弃折腾了

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