Closed Visone-Selektah closed 10 months ago
Hello, I can't reproduce this issue, sorry.
Have you tried downloading a fresh, clean tarball and trying the build there? Additionally, before trying that, what are the contents of /var/cache/scratchpkg/work/limine/src/limine-5.20231114.0/toolchain-files/uefi-x86_64-toolchain.mk
when the error appears?
Hi!
Yes, I tried a couple times, each time with a new tarball, but always the same error.
This is the content of that file uefi-x86_64-toolchain.mk
W: /var/cache/scratchpkg/work/limine/src/limine-5.20231114.0/freestanding-toolchain[141]: break: can't break
define DEFAULT_VAR =
ifeq ($(origin $1),default)
override $(1) := $(2)
endif
ifeq ($(origin $1),undefined)
override $(1) := $(2)
endif
endef
$(eval $(call DEFAULT_VAR,ADDR2LINE_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,AR_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,CC_FOR_TARGET,gcc))
$(eval $(call DEFAULT_VAR,CXX_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,CXXFILT_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,LD_FOR_TARGET,ld))
$(eval $(call DEFAULT_VAR,NM_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,OBJCOPY_FOR_TARGET,objcopy))
$(eval $(call DEFAULT_VAR,OBJDUMP_FOR_TARGET,objdump))
$(eval $(call DEFAULT_VAR,RANLIB_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,READELF_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,SIZE_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,STRINGS_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,STRIP_FOR_TARGET,))
$(eval $(call DEFAULT_VAR,CC_FOR_TARGET_IS_CLANG,no))
$(eval $(call DEFAULT_VAR,LD_FOR_TARGET_HAS_NO_PIE,yes))
And this is the function that can't break
in file freestanding-toolchain
if [ "x$FREESTANDING_TOOLCHAIN" = "xgnu" ]; then
unset FREESTANDING_TOOLCHAIN
break
fi
It's just check the toolchain
I just build it with llvm as toolchain and it works, so I guess this just happens with gcc
Alright, thanks for sharing the info! I assume removing that break
from the freestanding-toolchain
file and then doing a make distclean
and reconfiguring will make it work, right? If so, I'll go ahead and close this issue, let me know if it still doesn't work by reopening it. I will remove the bogus break
from upstream freestanding-toolchain
.
Hi! I remove that break and it worked! Thanks!!
log