Bug 239437 - audio/mixxx: fix build on non-x86
Summary: audio/mixxx: fix build on non-x86
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jose Alonso Cardenas Marquez
Depends on:
Reported: 2019-07-25 07:22 UTC by Piotr Kubaj
Modified: 2019-08-13 01:33 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (acm)

patch (1.83 KB, patch)
2019-07-25 07:22 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (acm)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 2019-07-25 07:22:08 UTC
Created attachment 206048 [details]

Don't optimize for native. It optimizes for the compiling CPU which may break runtime on the user CPU.

It also breaks compilation e.g. on powerpc64, -march=native is not available there. Bump PORTREVISION because of package change.

Also include sys/types.h in plugins/soundsourcem4a/soundsourcem4a.h for uint (needed by GCC).
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-08-02 14:23:26 UTC
This builds for me on both amd64 and powerpc64.
Comment 2 commit-hook freebsd_committer 2019-08-13 01:32:59 UTC
A commit references this bug:

Author: acm
Date: Tue Aug 13 01:32:49 UTC 2019
New revision: 508806
URL: https://svnweb.freebsd.org/changeset/ports/508806

  - Fix build on non-x86
  - Fix build on powerpc64

  PR:		239437
  Submitted by:	pkubaj