From owner-freebsd-toolchain@freebsd.org  Thu Jan 26 10:10:15 2017
Return-Path: <owner-freebsd-toolchain@freebsd.org>
Delivered-To: freebsd-toolchain@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 3C16BCC0476
 for <freebsd-toolchain@mailman.ysv.freebsd.org>;
 Thu, 26 Jan 2017 10:10:15 +0000 (UTC)
 (envelope-from markmi@dsl-only.net)
Received: from asp.reflexion.net (outbound-mail-210-10.reflexion.net
 [208.70.210.10])
 (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 BDF942A2
 for <freebsd-toolchain@freebsd.org>; Thu, 26 Jan 2017 10:10:14 +0000 (UTC)
 (envelope-from markmi@dsl-only.net)
Received: (qmail 14335 invoked from network); 26 Jan 2017 10:10:37 -0000
Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1)
 by 0 (rfx-qmail) with SMTP; 26 Jan 2017 10:10:37 -0000
Received: by mail-cs-01.app.dca.reflexion.local
 (Reflexion email security v8.20.1) with SMTP;
 Thu, 26 Jan 2017 05:10:07 -0500 (EST)
Received: (qmail 21198 invoked from network); 26 Jan 2017 10:10:07 -0000
Received: from unknown (HELO iron2.pdx.net) (69.64.224.71)
 by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 26 Jan 2017 10:10:07 -0000
Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net
 [67.170.167.181])
 by iron2.pdx.net (Postfix) with ESMTPSA id DD618EC7D56;
 Thu, 26 Jan 2017 02:10:05 -0800 (PST)
From: Mark Millard <markmi@dsl-only.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: =mcpu=cortex-a7 buildlworld (for example) vs. __aeabi_uidiv use in
 ports from pkg
Message-Id: <15C25780-588B-43EF-8DAC-000C301018BE@dsl-only.net>
Date: Thu, 26 Jan 2017 02:10:05 -0800
To: FreeBSD Toolchain <freebsd-toolchain@freebsd.org>,
 freebsd-arm <freebsd-arm@freebsd.org>
X-Mailer: Apple Mail (2.3259)
X-BeenThere: freebsd-toolchain@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Maintenance of FreeBSD's integrated toolchain
 <freebsd-toolchain.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-toolchain>, 
 <mailto:freebsd-toolchain-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-toolchain/>
List-Post: <mailto:freebsd-toolchain@freebsd.org>
List-Help: <mailto:freebsd-toolchain-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain>, 
 <mailto:freebsd-toolchain-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jan 2017 10:10:15 -0000

If I buildworld buildkernel for arm.armv6 with the likes of:

CFLAGS+= =mcpu=cortex-a7
CXXFLAGS+= =mcpu=cortex-a7
CPPFLAGS+= =mcpu=cortex-a7

(say for targeting a bpim3 or rpi2) then what package
installs for that context tends to report:

Undefined symbol "__aeabi_uidiv"

In other words __aeabi_uidiv is only implemented
for armv6 buildworld, not if one explicitly targets
armv7. (armv7 has instruction support but that does
not make software built to support other processor
variants that are without instruction support also
work unless the routine is still provided.)

Note: I normally build ports from source anyway
so this is just an FYI in case the lack of
__aeabi_uidiv was not deliberate.

===
Mark Millard
markmi at dsl-only.net