Bug 205701 - graphics/gdal fix build on 9.x
Summary: graphics/gdal fix build on 9.x
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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-29 19:55 UTC by Pawel Pekala
Modified: 2016-01-14 00:00 UTC (History)
0 users

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


Attachments
build fix (403 bytes, patch)
2015-12-29 19:55 UTC, Pawel Pekala
no flags Details | Diff

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