On Tue, Nov 03 2020, Brad Smith <[email protected]> wrote: > On 11/3/2020 3:37 PM, Jeremie Courreges-Anglas wrote: >> On Tue, Nov 03 2020, Brad Smith <[email protected]> wrote: >>> The following diff fixes building the LLVM port on arm. >> http://build-failures.rhaalovely.net/arm/2020-06-03/devel/llvm,,-main.log >> >> Is it supposed to fix this error? What was the problem? > > > Yes, to resolve that issue.
So what was the problem in the cmake error log? What helped you understand and solve this issue? Thanks for the diff, I'm going to commit it anyway since it looks like removing -mlongcall fixed powerpc too but... oh well. > ---------------------------- > revision 1.133 > date: 2017/02/16 15:07:16; author: jca; state: Exp; lines: +8 -3; > commitid: ZCMIOK4N5VLJOUXb; > Use -mlong-calls on arm and powerpc to work around relocations overflow > > On those architectures the .text section of the executables is too big > for the 32M immediate branch offset. ld --relax is supposed to fix > things on powerpc, but it is actually ineffective here. cc -mlong-calls > creates branches instructions using a full 32 bits register; FreeBSD > uses the same workaround. > > A fix for lib/csu is still needed to avoid an overflow between .init > and .fini sections. powerpc hasn't been tested, but we know that > devel/llvm is already broken there anyway. > > ok Brad (maintainer) > ---------------------------- > > But I don't remember ever seeing any arm packages Well I highly suspect I actually tested that fix on the cubox machine I had around at that time. Looking at the arm bulk build reports, bulk build on armv7-0.ports.openbsd.org started on Thu Feb 2 13:04:20 MST 2017 finished at Sat Feb 11 01:55:20 MST 2017 lasted 09D05h51m done with kern.version=OpenBSD 6.0-current (GENERIC) #36: Tue Jan 31 00:42:23 MST 2017 llvm fails bulk build on armv7-0.ports.openbsd.org started on Wed Mar 1 15:05:08 MST 2017 finished at Sat Mar 11 07:33:24 MST 2017 lasted 10D09h28m done with kern.version=OpenBSD 6.0-current (GENERIC) #53: Tue Feb 28 05:50:54 MST 2017 no llvm failure > and that was before > switching to Clang and then lld as defaults. Granted. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
