From owner-freebsd-ppc@freebsd.org Wed Jun 21 23:01:45 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54FCAD9AA39 for ; Wed, 21 Jun 2017 23:01:45 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-14.reflexion.net [208.70.210.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0252C818FB for ; Wed, 21 Jun 2017 23:01:44 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2428 invoked from network); 21 Jun 2017 22:55:03 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 21 Jun 2017 22:55:03 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.1) with SMTP; Wed, 21 Jun 2017 18:55:03 -0400 (EDT) Received: (qmail 3677 invoked from network); 21 Jun 2017 22:55:03 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 21 Jun 2017 22:55:03 -0000 Received: from [192.168.1.114] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 2476CEC8F04 for ; Wed, 21 Jun 2017 15:55:03 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) 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: To: FreeBSD PowerPC ML Date: Wed, 21 Jun 2017 15:55:02 -0700 X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 23:01:45 -0000 [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 --- 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