Date: Wed, 21 Jun 2017 15:55:02 -0700 From: Mark Millard <markmi@dsl-only.net> To: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: 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) Message-ID: <02584783-3635-42ED-AF32-8144BBD10499@dsl-only.net> References: <bug-220024-29464-6PDIZSxWiy@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
[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=3D220024 --- Comment #9 from Mark Millard <markmi at dsl-only.net> --- Created attachment 183694 --> = https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183694&action=3Dedit= 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=3D boot1.c qdivrem.c udivdi3.c ashldi3.c syncicache.c With this change I was able to build TARGET_ARCH=3Dpowerpc and TARGET_ARCH=3Dpowerpc64 . =3D=3D=3D Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02584783-3635-42ED-AF32-8144BBD10499>