[Bug 220024] head -r319991 clang powerpc64 and powerpc toolchains (cross build target): boot1.o: In function `fsread_size': undefined reference to `__udivdi3' (INO64 involved)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 30 00:56:13 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220024
--- Comment #14 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Mark Millard from comment #13)
Hmm. Looking around shows stand/powerpc possibly
not using libsa* at all:
# grep -r stand/libsa /usr/src/stand/ | grep -v "BSD[(:]" | more
/usr/src/stand/userboot/userboot/Makefile.depend: stand/libsa \
/usr/src/stand/efi/boot1/Makefile.depend: stand/libsa \
/usr/src/stand/efi/loader/Makefile.depend: stand/libsa \
/usr/src/stand/i386/gptzfsboot/Makefile.depend: stand/libsa32 \
/usr/src/stand/i386/gptboot/Makefile.depend: stand/libsa32 \
/usr/src/stand/i386/loader/Makefile.depend: stand/libsa32 \
/usr/src/stand/i386/zfsboot/Makefile.depend: stand/libsa32 \
# grep -r SRCS /usr/src/stand/powerpc/
/usr/src/stand/powerpc/kboot/Makefile:SRCS= conf.c vers.c main.c
ppc64_elf_freebsd.c
/usr/src/stand/powerpc/kboot/Makefile:SRCS+= host_syscall.S
hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
/usr/src/stand/powerpc/kboot/Makefile:SRCS+= ucmpdi2.c
/usr/src/stand/powerpc/boot1.chrp/Makefile:SRCS= boot1.c
ashldi3.c syncicache.c
/usr/src/stand/powerpc/ofw/Makefile:SRCS= conf.c vers.c main.c
elf_freebsd.c ppc64_elf_freebsd.c start.c
/usr/src/stand/powerpc/ofw/Makefile:SRCS+= ucmpdi2.c
/usr/src/stand/powerpc/ofw/Makefile:SRCS+= ofwfdt.c
/usr/src/stand/powerpc/uboot/Makefile:SRCS= start.S conf.c vers.c
/usr/src/stand/powerpc/uboot/Makefile:SRCS+= ucmpdi2.c
(My patch is omitted above.)
So Warner's note would seem to be asking for a bigger
reorganization for stand/powerpc/*/
I'll note that building for amd64, aarch64, armv7, powerpc64,
and powerpc it was only powerpc* boot1.chrp that failed
historically. But I've not built for all architectures.
ashldi3.c in stand/powerpc/boot1.chrp/Makefile would
overlap with stand/libsa/Makefile also listing it as
stands:
.if ${MACHINE_CPUARCH} == "powerpc"
.PATH: ${LIBC_SRC}/quad
SRCS+= ashldi3.c ashrdi3.c lshrdi3.c
SRCS+= syncicache.c
.endif
The same for syncicache.c .
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list