Bug 225521 - Crossbuilding for RPI3 (Arm64) fails (and has for quite some time) off 11-STABLE
Summary: Crossbuilding for RPI3 (Arm64) fails (and has for quite some time) off 11-STABLE
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-29 02:44 UTC by karl
Modified: 2018-02-10 01:49 UTC (History)
2 users (show)

See Also:


Attachments
Full buildworld log that is failing (521.91 KB, patch)
2018-01-29 02:44 UTC, karl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description karl 2018-01-29 02:44:26 UTC
Created attachment 190146 [details]
Full buildworld log that is failing

The crossbuild attempt is using the following:

make TARGET_ARCH=aarch64 SRCCONF=/dev/null __MAKE_CONF=/dev/null -DNO_CLEAN -DWITHOUT_DEBUG_FILES -DWITHOUT_KERNEL_SYMBOLS -DWITHOUT_TESTS -j 12 buildworld

And it fails with problems in attempting to build libllvm during the build tool ("stage 3: cross tools") here:

llvm-tblgen -gen-dag-isel  -I /pics/CrossBuild-Head/src/contrib/llvm/include -I
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/ARM  -d ARMGenDAGISel.inc.d -o
 ARMGenDAGISel.inc  /pics/CrossBuild-Head/src/contrib/llvm/lib/Target/ARM/ARM.td
--- AArch64GenInstrInfo.inc ---
FCVTZSv8f16:    (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/AArch64InstrInfo.td:29
51:1: error: In FCVTZSv8f16: Type inference contradiction found, forcing '{v16i8
:v32i8:v8i16:v16i16:v4i32:v8i32:v2i64:v4i64:nxv4i1:nxv8i1:nxv16i1:nxv32i1:nxv32i
8: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/AArch64I
nstrInfo.td:337:
/pics/CrossBuild-Head/src/contrib/llvm/lib/Target/AArch64/AArch64InstrFormats.td
:5092:3: note: instantiated from multiclass
  def v8f16 : BaseSIMDTwoSameVector<1, U, {S,1}, opc, 0b11, V128,
  ^
FCVTZUv8f16:    (set V128:v16i16:$Rd, (fp_to_uint:<empty> V128:v1f32:$Rn))


The full dump of the failure is attached; there are a lot of errors showing problems with type contradictions.

The building system is
FreeBSD 11.1-STABLE #0 r328086: Wed Jan 17 11:49:06 CST 2018     root@NewFS.denninger.net:/usr/obj/usr/src/sys/KSD-SMP

The -HEAD rev I am attempting to build is current as of this evening (328527)

Failure to build in this general part of the process has been the case from 11.1-STABLE now for the last couple of months; I have updated the 11.1-STABLE machine a couple of times without success.  Builds of 11.x for the RPI2, also as a cross-build, complete normally but I cannot build 11.x for the RPI3 as it is not supported prior to 12.x
Comment 1 Andrew Turner freebsd_committer freebsd_triage 2018-02-09 14:59:35 UTC
Does it build if you remove -DNO_CLEAN?
Comment 2 karl 2018-02-09 15:05:17 UTC
(In reply to Andrew Turner from comment #1)
No, nor does it if I do a "rm -rf *" on the target directory first (which is the same thing, effectively.)
Comment 3 karl 2018-02-09 15:21:16 UTC
For grins and giggles I removed the "NO_CLEAN" (although a "rm -rf" on the object directory should be equivalent) and there is no change.

I also updated -HEAD to current (329061) with no change.
Comment 4 Ed Maste freebsd_committer freebsd_triage 2018-02-10 01:49:07 UTC
Based on the followup on FreeBSD-arm this was due to a local misconfiguration:
https://lists.freebsd.org/pipermail/freebsd-arm/2018-February/017489.html