https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207940

--- Comment #44 from Nicolas <nico...@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=\"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_STANDALONE
-I/usr/src/sys -Ddouble=jagged-little-pill -Dfloat=floaty-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=zlib -std=gnu99
-Wno-format-zero-length -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition
-Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-parameter -Oz -Qunused-arguments  -nostdlib
-Wl,-T/usr/src/stand/efi/loader/arch/amd64/ldscript.amd64,-Bsymbolic,-znotext
-pie -Wl,-znocombreloc -Wl,-zrelro   -o gptboot.sym.full gpt.o boot1.o proto.o
self_reloc.o start.o ufs_module.o devpath.o 
/usr/obj/usr/src/amd64.amd64/stand/efi/libefi/libefi.a
/usr/obj/usr/src/amd64.amd64/stand/libsa/libsa.a 
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 patch
for the second part).

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

Thanks

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

Reply via email to