Re: Issues between openmp and llvm

2017-09-13 Thread Shane Ambler

On 13/09/2017 20:51, Jan Beich wrote:

Shane Ambler  writes:


... libomp.so - found (/usr/local/llvm-devel/lib/libomp.so)


The issue is that the build then fails because cc/ld is looking for
openmp files in /usr/local where they should be installed.


Try using SOVERSION to ignore devel/llvm* copy e.g.,

   LIB_DEPENDS += libomp.so.0:devel/openmp



Yes that works, now. As other libs from llvm are versioned what are the
chances that it will always to work?

--
FreeBSD - the place to B...Software Developing

Shane Ambler

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Issues between openmp and llvm

2017-09-13 Thread Jan Beich
Shane Ambler  writes:

>> ... libomp.so - found (/usr/local/llvm-devel/lib/libomp.so)
>
> The issue is that the build then fails because cc/ld is looking for
> openmp files in /usr/local where they should be installed.

Try using SOVERSION to ignore devel/llvm* copy e.g.,

  LIB_DEPENDS += libomp.so.0:devel/openmp
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Issues between openmp and llvm

2017-09-13 Thread Shane Ambler


I am testing an update to graphics/blender and seeing if I can use
devel/openmp as a dependency to prevent forcing the choice of compiler.

This works fine when openmp is pre-installed but fails if llvm[40|devel]
is installed before checking if libomp exists.

As the copy of libomp.so installed by llvm is found, devel/openmp does
not get installed.

> ... libomp.so - found (/usr/local/llvm-devel/lib/libomp.so)

The issue is that the build then fails because cc/ld is looking for
openmp files in /usr/local where they should be installed.

This can fail on the host system as well as in poudriere. In poudriere
it only fails if blenders CYCLESOSL option is enabled which now installs
llvm40 before checking for libomp.so.

--
FreeBSD - the place to B...Software Developing

Shane Ambler

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"