Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2018 19:01:13 +0000
From:      Mark Millard <mark.millard@nexustechnology.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Dimitry Andric <dim@FreeBSD.org>, "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org>
Subject:   Re: Broken arm support in clang now?
Message-ID:  <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com>
In-Reply-To: <A5B46840-B508-4F40-9EFD-50D0439EBAC7@FreeBSD.org>
References:  <CANCZdfpmDN-nAkViuEx-tKpPhOdRYX=xNu6s8E2o6F4xC2WPnA@mail.gmail.com> <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> <CANCZdfpF9ND_k2xvZrsDebsZ07p2RU0Lebp5GDtmxnjdXc=N-A@mail.gmail.com> <A5B46840-B508-4F40-9EFD-50D0439EBAC7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 2018-Aug-11, at 11:09 AM, Dimitry Andric <dim at FreeBSD.org> wrote:
> 
> On 11 Aug 2018, at 19:31, Warner Losh <imp at bsdimp.com> wrote:
>> 
>> On Sat, Aug 11, 2018, 10:20 AM Dimitry Andric <dim@freebsd.org> wrote:
>> On 11 Aug 2018, at 16:55, Warner Losh <imp@bsdimp.com> wrote:
>>> 
>>> It looks like armv5 clang bogusly uses lld:
>>> 
>>> From a 'make buildkernel' of the RT1310 kernel config:
>>> 
>>> cc -target arm-gnueabi-freebsd12.0
> ...
>>> ld: warning: lld uses extended branch encoding, no object with architecture
>>> supporting feature detected.
>>> ld: warning: lld may use movt/movw, no object with architecture supporting
>>> feature detected.
> ...

Did the build get either of the below notices? Both?

make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined that CC=cc matches the source tree.  Not bootstrapping a cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined that LD=ld matches the source tree.  Not bootstrapping a cross-linker.

?

(The example text was taken from an amd64 -> aarch64 cross build.)

>> Host is amd64. Target is arm. No src.conf. Did a full buildworld TARGET=arm a few days ago. /usr/bin/ld is lld.
> 
> Okay, so in the above "cc" command, can you somehow figure out which cc
> executable it is using? And please add a -v to the "linking kernel.full"
> command line, so it shows exactly which linker it runs?
> 
> I have the idea that it is preferring your /usr/bin/ld over
> ${WORLDTMP}/usr/bin/ld...



===

Mark Millard
Nexus Technology, Inc. 
78 Northeastern Blvd., Unit #2 
Nashua  NH  03062

877-595-8116  x821

mark.millard@nexustechnology.com


[-- Attachment #2 --]
0	*H
010	+0	*H
	001-0
	*H
0L1 0UGlobalSign Root CA - R310U

GlobalSign10U
GlobalSign0
110802100000Z
190802100000Z0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G20"0
	*H
0
R)_͋ e~Sɡ^
st)hOj@21۱q^7_V9UQ)y)^D$XW/.i+6F_ܷ	YXy?t+6b<^24OXa9P2h?hE&^
9Fߣ
/uxL(=˼DA)vh+W [qFތ5s00U0U00U)[Bnw4WAm0GU @0>0<U 0402+&https://www.globalsign.com/repository/06U/0-0+)'%http://crl.globalsign.net/root-r3.crl0U#0K.E$MPc0
	*H
._	
`?o:f\nh~<0})GCB%!P,ˮЗg$7QvRقO>0Nj/@T4/C<ɒ|g˪wM6!%lH?P"f|wPaO?}#0Jo
Ϩ[dvGT=,/i4H&@F8
ԡHHMs[ޅG+$[qX+>00ʠfU[N;0
	*H
0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G20
151029094448Z
181029094448Z0\1)0'U mark.millard@nexustechnology.com1/0-	*H
	 mark.millard@nexustechnology.com0"0
	*H
0
H.8؍*L6dՔ!op.ֵtH Hdy^s3B.dLp-V^z'nIa#L#A_Jl#8L<74#I-L1#/ٞIv
[XUsiE(tb8uG)6ѱ@Q(X;7W';S8K6ᚙG=o.UT⃄ShMXN&B4]Jy00U0LU E0C0A	+2(0402+&https://www.globalsign.com/repository/0+U$0" mark.millard@nexustechnology.com0	U00U%0++0GU@0>0<:86http://crl.globalsign.com/gs/gspersonalsign1sha2g2.crl0Y+M0K0I+0=http://secure.globalsign.com/cacert/gspersonalsign1sha2g2.crt0UPykԄjl'0U#0)[Bnw4WAm0
	*H
ЪCdŖ>6JƪK.xW,EOe69v'V9^8zO$nagĕ&&
826{6j_9_~GJ|@!)aAoAGJX#x5`xV,Mز6beKK•vX"2(G!1v=jk-rj_TM;<=
 k䌩",)sn>]==mT]100q0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G2fU[N;0	+e0	*H
	1	*H
0	*H
	1
180811190112Z0#	*H
	1%x`<:ޙ$5L0	+71s0q0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G2fU[N;0*H
	1sq0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G2fU[N;0
	*H
3Lڨ7;|%ܛ4z~YH	"?[jAe}Bp6kU[`P,?"yӉFKj
[VyFS.Cd'}rD?5 8DLPQr)	k ytrphޝcF*trmo)(mL_3.2A+8XamPx,)@K'lR5cC1,㏇䇭

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5>