Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Dec 2023 19:02:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        amd64@FreeBSD.org
Subject:   [Bug 207940] stand/efi/boot1: Add boot partition selection
Message-ID:  <bug-207940-17361-776CdlLMiq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207940-17361@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207940-17361@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207940

--- Comment #44 from Nicolas <nicolas@deffayet.com> ---
Can't compile on FreeBSD 14.0:

--- gptboot.sym.full ---
cc -O2 -pipe -fno-common -I/usr/src/stand/efi/boot1
-I/usr/src/stand/efi/gptboot -DBOOTPROG=3D\"gptboot.efi\" -DHAVE_MEMCPY
-I/usr/src/sys/contrib/zlib -Wformat -fshort-wchar -mno-red-zone -nostdinc
-I/usr/obj/usr/src/amd64.amd64/stand/libsa -I/usr/src/stand/libsa -D_STANDA=
LONE
-I/usr/src/sys -Ddouble=3Djagged-little-pill -Dfloat=3Dfloaty-mcfloatface
-ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT
-I/usr/src/stand/libsa/geli -DLOADER_DISK_SUPPORT -ffreestanding -mno-mmx
-mno-sse -mno-avx -mno-avx2 -msoft-float -fPIC -mno-red-zone -mno-relax -I.
-Iinclude -DEFI_BOOT1 -I/usr/src/stand/efi/include
-I/usr/src/stand/efi/include/amd64 -I/usr/src/sys/contrib/dev/acpica/include
-DEFI_UFS_BOOT -DEFI_DEBUG -I/usr/src/stand/common -fPIC -g -gz=3Dzlib -std=
=3Dgnu99
-Wno-format-zero-length -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-ar=
ith
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parame=
ter
-Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition
-Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safe=
ty
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=3Dunused-but-set-parameter -Oz -Qunused-arguments  -nostdlib
-Wl,-T/usr/src/stand/efi/loader/arch/amd64/ldscript.amd64,-Bsymbolic,-znote=
xt
-pie -Wl,-znocombreloc -Wl,-zrelro   -o gptboot.sym.full gpt.o boot1.o prot=
o.o
self_reloc.o start.o ufs_module.o devpath.o=20
/usr/obj/usr/src/amd64.amd64/stand/efi/libefi/libefi.a
/usr/obj/usr/src/amd64.amd64/stand/libsa/libsa.a=20
ld: error: undefined symbol: getchar
>>> referenced by panic.c:48 (/usr/src/stand/libsa/panic.c:48)
>>>               panic.o:(panic_action) in archive /usr/obj/usr/src/amd64.=
amd64/stand/libsa/libsa.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [gptboot.sym.full] Error code 1

make[2]: stopped in /usr/src/stand/efi/gptboot
1 error

make[2]: stopped in /usr/src/stand/efi/gptboot

make[1]: stopped in /usr/src/stand/efi
--- all_subdir_efi/boot1 ---

Both patch fully applied:
1. Patch for boot1.c and proto.c
2020-03-17 12:10 UTC, Tomoaki AOKI
2. patch for head r350654 proto.c
2020-03-23 16:02 UTC, Naomichi Nonaka (require manual application of the pa=
tch
for the second part).

Any idea on how to fix to make it works on FreeBSD 14.0 RELEASE ?

Thanks

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207940-17361-776CdlLMiq>