Bug 239575

Summary: graphics/cloudcompare: fix build on powerpc64
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: nc
Priority: --- Flags: nc: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch nc: maintainer-approval+

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