Patch for: [Bug 220024] head -r319991 clang powerpc64 and powerpc toolchains (cross build target): boot1.o: In function `fsread_size': undefined reference to `__udivdi3' (INO64 involved)
Mark Millard
markmi at dsl-only.net
Wed Jun 21 23:01:45 UTC 2017
[A simple Makefile patch fixes 220024 for
targeting powerpc64 and powerpc buildworld
via clang 4 .]
Begin forwarded message:
From: bugzilla-noreply at freebsd.org
Subject: [Bug 220024] head -r319991 clang powerpc64 and powerpc toolchains (cross build target): boot1.o: In function `fsread_size': undefined reference to `__udivdi3' (INO64 involved)
Date: June 21, 2017 at 3:48:26 PM PDT
To: freebsd-toolchain at FreeBSD.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220024
--- Comment #9 from Mark Millard <markmi at dsl-only.net> ---
Created attachment 183694
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=183694&action=edit
Makefile adjustment to compile/link missing routines
As of INO64 involving 64-bit integer types
two more sources need to be compiled (and
the .o's linked in):
udivdi3.c
which in turn requires adding:
qdivrem.c
So overall SRCS ends up as:
SRCS= boot1.c qdivrem.c udivdi3.c ashldi3.c syncicache.c
With this change I was able to build TARGET_ARCH=powerpc
and TARGET_ARCH=powerpc64 .
===
Mark Millard
markmi at dsl-only.net
More information about the freebsd-ppc
mailing list