Bug 243851

Summary: math/flint2: fix build on powerpc64 elfv2
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Piotr Kubaj <pkubaj>
Status: Closed FIXED    
Severity: Affects Only Me CC: powerpc, yuri
Priority: --- Flags: yuri: maintainer-feedback+
Version: Latest   
Hardware: powerpc   
OS: Any   
Attachments:
Description Flags
patch
none
v2 yuri: maintainer-approval+

Description Piotr Kubaj freebsd_committer freebsd_triage 2020-02-03 18:32:02 UTC
Created attachment 211324 [details]
patch

Build fails with:
In file included from /wrkdirs/usr/ports/math/flint2/work/flint2-2baa9bc/profiler.c:18:
/wrkdirs/usr/ports/math/flint2/work/flint2-2baa9bc/profiler.h:116:10: error: unknown register name '%edx' in asm
       : "%edx", "%eax");
         ^
1 error generated.

GCC for some reason can compile it.
Comment 1 Piotr Kubaj freebsd_committer freebsd_triage 2020-02-03 21:56:39 UTC
Created attachment 211327 [details]
v2

Patch it properly with upstream patches not to use x86 assembly on non-x86.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-02-09 21:36:01 UTC
A commit references this bug:

Author: pkubaj
Date: Sun Feb  9 21:35:52 UTC 2020
New revision: 525677
URL: https://svnweb.freebsd.org/changeset/ports/525677

Log:
  math/flint2: fix build on non-x86

  Merge upstream patches for non-x86 architectures.

  PR:		243851
  MFH:		2020Q1 (fix build blanket)

Changes:
  head/math/flint2/Makefile
  head/math/flint2/distinfo
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-02-09 21:37:02 UTC
A commit references this bug:

Author: pkubaj
Date: Sun Feb  9 21:36:44 UTC 2020
New revision: 525678
URL: https://svnweb.freebsd.org/changeset/ports/525678

Log:
  MFH: r525677

  math/flint2: fix build on non-x86

  Merge upstream patches for non-x86 architectures.

  PR:		243851

  Approved by:	portmgr (fix build blanket)

Changes:
_U  branches/2020Q1/
  branches/2020Q1/math/flint2/Makefile
  branches/2020Q1/math/flint2/distinfo