Bug 243851 - math/flint2: fix build on powerpc64 elfv2
Summary: math/flint2: fix build on powerpc64 elfv2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Only Me
Assignee: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-03 18:32 UTC by Piotr Kubaj
Modified: 2020-02-09 21:37 UTC (History)
2 users (show)

See Also:
yuri: maintainer-feedback+


Attachments
patch (328 bytes, patch)
2020-02-03 18:32 UTC, Piotr Kubaj
no flags Details | Diff
v2 (1.60 KB, patch)
2020-02-03 21:56 UTC, Piotr Kubaj
yuri: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 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 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 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 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