Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 12:44:17 -0600
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-current@freebsd.org
Subject:   Recent commits to -HEAD blow up cross-compile for PI3 (and possibly others)
Message-ID:  <89dbdd66-1ba7-15d3-d3fe-291f8e361fcb@denninger.net>

next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms060309080303030309090601
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

There has been trouble cross-compiling for the RPI3 for a while now,
which I have filed a report on with the Crochet people here:
https://github.com/freebsd/crochet/issues/222

This stemmed from an older LLVM version on my 11.1 box, which I rolled
forward -- and resulted in blowups claiming that there was a permission
problem with posix_spawn (!)

Now, having tried to roll my -HEAD repo forward it's failing *much*
earlier, starting with warnings about ATOMIC_ASM:

--- getarg.o ---
cc=C2=A0 -O2 -pipe -I/pics/CrossBuild-Head/src/crypto/heimdal/lib/roken -=
I.=C2=A0
-DHAVE_C
ONFIG_H -I/pics/CrossBuild-Head/src/kerberos5/include -MD=C2=A0
-MF.depend.getarg.o -
MTgetarg.o -std=3Dgnu99=C2=A0 -Qunused-arguments=C2=A0
-I/pics/Crochet-work-HEAD/obj/pics/Cr
ossBuild-Head/src/arm64.aarch64/tmp/legacy/usr/include -c
/pics/CrossBuild-Head/
src/crypto/heimdal/lib/roken/getarg.c -o getarg.o
--- _bootstrap-tools-usr.bin/localedef ---
In file included from
/pics/CrossBuild-Head/src/usr.bin/localedef/collate.c:50:
In file included from
/pics/CrossBuild-Head/src/lib/libc/locale/collate.h:44:
/pics/CrossBuild-Head/src/lib/libc/locale/xlocale_private.h:170:18:
warning: pas
sing 'long *' to parameter of type 'volatile u_long *' (aka 'volatile
unsigned l
ong *') converts between pointers to integer types with different sign
[-Wpointe
r-sign]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atomic_add_long(&(obj->retain_=
count), 1);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~=
~~~~~~~~~~~
/usr/include/machine/atomic.h:467:1: note: passing argument to parameter
'p' her
e
ATOMIC_ASM(add,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 long,=C2=A0 "addq %1,%0",=C2=
=A0 "ir",=C2=A0 v);
^
/usr/include/machine/atomic.h:141:43: note: expanded from macro 'ATOMIC_A=
SM'
atomic_##NAME##_##TYPE(volatile u_##TYPE *p, u_##TYPE v)\

And then failing to build llvm entirely starting here:

=3D=3D=3D> lib/clang/libllvm (all)
llvm-tblgen -gen-dag-isel=C2=A0 -I
/pics/CrossBuild-Head/src/contrib/llvm/include -I
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64=C2=A0 -d
AArch64GenDAGISel.inc.d -o AArch64GenDAGISel.inc=C2=A0
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64.td
FCVTZSv8f16:=C2=A0=C2=A0=C2=A0 (set V128:v16i16:$Rd, (fp_to_sint:<empty> =
V128:v1f32:$Rn))
Included from
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64.td:178:=

/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64InstrInf=
o.td:2951:1:
error: In FCVTZSv8f16: Type inference contradiction found, forcing
'{v16i8:v32i8:v8i16:v16i16:v4i32:v8i32:v2i64:v4i64:nxv4i1:nxv8i1:nxv16i1:=
nxv32i1:nxv32i8:nxv16i16:nxv8i32:nxv4i64}'
to have same number elements as 'v1f32'
defm FCVTZS : SIMDTwoVectorFPToInt<0, 1, 0b11011, "fcvtzs", fp_to_sint>;
^
Included from
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64.td:178:=

Included from
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64InstrInf=
o.td:337:
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64InstrFor=
mats.td:5092:3:
note: instantiated from multiclass
=C2=A0 def v8f16 : BaseSIMDTwoSameVector<1, U, {S,1}, opc, 0b11, V128,
=C2=A0 ^
FCVTZUv8f16:=C2=A0=C2=A0=C2=A0 (set V128:v16i16:$Rd, (fp_to_uint:<empty> =
V128:v1f32:$Rn))
Included from
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64.td:178:=

/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64InstrInf=
o.td:2952:1:
error: In FCVTZUv8f16: Type inference contradiction found, forcing
'{v16i8:v32i8:v8i16:v16i16:v4i32:v8i32:v2i64:v4i64:nxv4i1:nxv8i1:nxv16i1:=
nxv32i1:nxv32i8:nxv16i16:nxv8i32:nxv4i64}'
to have same number elements as 'v1f32'
defm FCVTZU : SIMDTwoVectorFPToInt<1, 1, 0b11011, "fcvtzu", fp_to_uint>;

Off -HEAD revision 328011

attempting to build with:

FreeBSD 11.1-STABLE #21 r327332M: Thu Dec 28 20:54:24 CST 2017=C2=A0=C2=A0=
=C2=A0=C2=A0
karl@NewFS.denninger.net:/usr/obj/usr/src/sys/KSD-SMP

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms060309080303030309090601
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
DdgwggagMIIEiKADAgECAhMA5EiKghDOXrvfxYxjITXYDdhIMA0GCSqGSIb3DQEBCwUAMIGL
MQswCQYDVQQGEwJVUzEQMA4GA1UECAwHRmxvcmlkYTESMBAGA1UEBwwJ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KRc+NkWs9N7sGjTuWKlfUqyIk4t8e/9zvgGHwAAAAAAAA==
--------------ms060309080303030309090601--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89dbdd66-1ba7-15d3-d3fe-291f8e361fcb>