Created attachment 198449 [details] patch This port builds just fine with no extra patches. Tested on powerpc64. Hardware sponsored by IntegriCloud.
Created attachment 198500 [details] v2 Additional fix is needed. The downside is that other architectures need to be fixed separately.
Hi, thanks for reporting. However, there are multiple issues here: - patch 'v2' won't work on other FreeBSD versions than 12.0, because the arguments to the 'mv' in your patch are version specific - also, this second patch ('v2') assumes the first is already applied, however you removed the first Also, I'm afraid I don't understand what you mean with "This port builds just fine with no extra patches."?
Also, two more questions: - I don't think that the proposed patch fixes the root cause of the problem, can you explain what the idea behind this fix is? - you said you "Tested on powerpc64.", so are you sure the port is broken on arm64 and mips64, as your first patch suggests?
Created attachment 198556 [details] v3 Sorry, you're right. I didn't notice that CONFIGURE_TARGET needed to be changed and I think this patch now properly fixes this issue. Other architectures can also be fixed this way.
(In reply to Tassilo Philipp from comment #3) 1. The problem is that files are put in /usr/local/powerpc-unknown-freebsd12.0, but CONFIGURE_TARGET was powerpc64-unknown-freebsd12.0. That needed to be changed. 2. I'm not sure, but BROKEN message suggests it.
Thanks, that looks good. Give me a few days and I'll see whether I can extend it to mips64 and arm64 (I can actually test those), and give it some other tests. :)
@linimon hi, can you assign this to me, so I can eventually set the maintainer-approval+ flag?
(In reply to Tassilo Philipp from comment #7) sorry, nm, I spaced that this flag is per attachment, sorry
A commit references this bug: Author: linimon Date: Sat Nov 24 08:52:36 UTC 2018 New revision: 485733 URL: https://svnweb.freebsd.org/changeset/ports/485733 Log: Change powerpc64 to powerpc in CONFIGURE_TARGET to fix build on powerpc64. PR: 232513 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Changes: head/devel/psptoolchain-binutils/Makefile