Bug 259900 - devel/vc-intrinsics: build fails if an old version is installed
Summary: devel/vc-intrinsics: build fails if an old version is installed
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
: 259924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-17 17:16 UTC by John Hein
Modified: 2023-05-04 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Hein 2021-11-17 17:16:33 UTC
devel/vc-intrinsics (PORTVERSION=s20211110) fails to build with FLAVOR=llvm11 and llvm-11.0.1_3.


/usr/ports/devel/vc-intrinsics/work-llvm11/vc-intrinsics-8ee8793/GenXIntrinsics/lib/GenXIntrinsics/GenXIntrinsics.cpp:687:16: error: no type named 'LSCVectorSize' in namespace 'llvm::GenXIntrinsic'
GenXIntrinsic::LSCVectorSize GenXIntrinsic::getLSCVectorSize(
~~~~~~~~~~~~~~~^
/usr/ports/devel/vc-intrinsics/work-llvm11/vc-intrinsics-8ee8793/GenXIntrinsics/lib/GenXIntrinsics/GenXIntrinsics.cpp:689:10: error: use of undeclared identifier 'isLSC'
  assert(isLSC(I));
         ^
/usr/ports/devel/vc-intrinsics/work-llvm11/vc-intrinsics-8ee8793/GenXIntrinsics/lib/GenXIntrinsics/GenXIntrinsics.cpp:690:11: error: use of undeclared identifier 'getLSCCategory'
  switch (getLSCCategory(I)) {
          ^
 .
 .
 .


Just removing '11' from FLAVORS in devel/vc-intrinsics and devel/intel-graphics-compiler is probably fine unless there is a known problem with the current version of llvm12 (I don't know of any that would affect these ports).

Also I'd remove the unnecessary ":L" in the FLAVORS definition for those ports.
Comment 2 John Hein 2021-11-17 18:00:18 UTC
(In reply to Jan Beich from comment #1)
Yes.  Deleting the existing package allowed the llvm11 flavor to build.

A proper fix would be to prevent the build from pulling in stuff (e.g., headers) from /usr/local before stuff in the build area.  I don't have a suggested fix for that at this time.
Comment 3 Jan Beich freebsd_committer freebsd_triage 2021-11-19 02:20:18 UTC
*** Bug 259924 has been marked as a duplicate of this bug. ***
Comment 4 Jan Beich freebsd_committer freebsd_triage 2023-05-04 05:13:40 UTC
^Triage: Reset Assignee after ports d9ef548514c9