Bug 239575 - graphics/cloudcompare: fix build on powerpc64
Summary: graphics/cloudcompare: fix build on powerpc64
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-01 12:42 UTC by Piotr Kubaj
Modified: 2019-08-05 10:55 UTC (History)
1 user (show)

See Also:
nc: maintainer-feedback+


Attachments
patch (1.82 KB, patch)
2019-08-01 12:42 UTC, Piotr Kubaj
nc: 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 freebsd_triage 2019-08-01 12:42:51 UTC
Created attachment 206196 [details]
patch

This port tries to use SSE instrinsics. Add to CXXFLAGS on powerpc64 -DNO_WARN_X86_INTRINSICS -mvsx, which enable using SSE to Altivec translation layer. Because of that, also use new GCC.

Note that intrinsics translations needs VSX, which is only supported on POWER8 and newer, but this port doesn't currently work on powerpc64 anyway.

Limit -Wno-narrowing to only clang, gcc doesn't support it.

Also add USES=gl for PLUGINS option.
Comment 1 Neel Chauhan freebsd_committer freebsd_triage 2019-08-01 12:48:51 UTC
Fine with me.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-08-05 10:55:47 UTC
A commit references this bug:

Author: pkubaj
Date: Mon Aug  5 10:54:50 UTC 2019
New revision: 508159
URL: https://svnweb.freebsd.org/changeset/ports/508159

Log:
  graphics/cloudcompare: fix build on powerpc64

  This port tries to use SSE instrinsics. Add to CXXFLAGS on powerpc64 -DNO_WARN_X86_INTRINSICS -mvsx, which enable using SSE to Altivec translation layer. Because of that, also use new GCC. Note that intrinsics translations needs VSX, which is only supported on POWER8 and newer, but this port doesn't currently work on powerpc64 anyway.

  Limit -Wno-narrowing to only clang, gcc doesn't support it.

  Also add USES=gl for PLUGINS option.

  PR:		239575
  Approved by:	neel@neelc.org (maintainer), tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21130

Changes:
  head/graphics/cloudcompare/Makefile