Bug 205701

Summary: graphics/gdal fix build on 9.x
Product: Ports & Packages Reporter: Pawel Pekala <pawel>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (sunpoet)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
build fix none

Description Pawel Pekala freebsd_committer freebsd_triage 2015-12-29 19:55:19 UTC
Created attachment 164827 [details]
build fix

graphics/gdal build fails on 9.x:

gdaldither.cpp: In function 'int FindNearestColor(int, int*, int, int, int)':
gdaldither.cpp:534: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
gdaldither.cpp:534: error: cannot convert 'int __vector__' to 'long long int __vector__' for argument '1' to 'long long int __vector__ __builtin_ia32_psrlqi128(long long int __vector__, int)'
gdaldither.cpp:539: error: cannot convert 'int __vector__' to 'long long int __vector__' for argument '1' to 'long long int __vector__ __builtin_ia32_psrlqi128(long long int __vector__, int)'
../GDALmake.opt:582: recipe for target 'gdaldither.o' failed
gmake[1]: *** [gdaldither.o] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/graphics/gdal/work/gdal-2.0.1/alg'
GNUmakefile:57: recipe for target 'core-target' failed
gmake: *** [core-target] Error 2
*** [do-build] Error code
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-01-13 15:53:08 UTC
A commit references this bug:

Author: pawel
Date: Wed Jan 13 15:52:17 UTC 2016
New revision: 406052
URL: https://svnweb.freebsd.org/changeset/ports/406052

Log:
  Fix build on FreeBSD 9.x

  gdaldither.cpp: In function 'int FindNearestColor(int, int*, int, int, int)':
  gdaldither.cpp:534: note: use -flax-vector-conversions to permit conversions
  between vectors with differing element types or numbers of subparts
  gdaldither.cpp:534: error: cannot convert 'int __vector__' to 'long long int
   __vector__' for argument '1' to 'long long int __vector__
   __builtin_ia32_psrlqi128(long long int __vector__, int)'
  gdaldither.cpp:539: error: cannot convert 'int __vector__' to 'long long int
   __vector__' for argument '1' to 'long long int __vector__
   __builtin_ia32_psrlqi128(long long int __vector__, int)'
  ../GDALmake.opt:582: recipe for target 'gdaldither.o' failed
  gmake[1]: *** [gdaldither.o] Error 1

  PR:		205701
  Submitted by:	myself
  Approved by:	maintainer timeout

Changes:
  head/graphics/gdal/Makefile
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-01-14 00:00:13 UTC
A commit references this bug:

Author: pawel
Date: Wed Jan 13 23:59:55 UTC 2016
New revision: 406082
URL: https://svnweb.freebsd.org/changeset/ports/406082

Log:
  MFH: r406052

  Fix build on FreeBSD 9.x

  gdaldither.cpp: In function 'int FindNearestColor(int, int*, int, int, int)':
  gdaldither.cpp:534: note: use -flax-vector-conversions to permit conversions
  between vectors with differing element types or numbers of subparts
  gdaldither.cpp:534: error: cannot convert 'int __vector__' to 'long long int
   __vector__' for argument '1' to 'long long int __vector__
   __builtin_ia32_psrlqi128(long long int __vector__, int)'
  gdaldither.cpp:539: error: cannot convert 'int __vector__' to 'long long int
   __vector__' for argument '1' to 'long long int __vector__
   __builtin_ia32_psrlqi128(long long int __vector__, int)'
  ../GDALmake.opt:582: recipe for target 'gdaldither.o' failed
  gmake[1]: *** [gdaldither.o] Error 1

  PR:		205701
  Submitted by:	myself
  Approved by:	maintainer timeout
  Approved by:	ports-secteam (miwi)

Changes:
_U  branches/2016Q1/
  branches/2016Q1/graphics/gdal/Makefile