[Bug 216650] devel/caf: fails to build with clang 4.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 31 02:03:34 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216650

--- Comment #3 from Jan Beich (mail not working) <jbeich at FreeBSD.org> ---
(In reply to Matthias Vallentin from comment #2)
> I would like to reproduce the issue, but can't find a clang 4.x package: pkg search clang yields:

If you're on 12.0-CURRENT (only the kernel matters) try the following

  $ poudriere jail -cj clang40-amd64 -v projects/clang400-import -m svn
  $ poudriere bulk -Ctj clang40-amd64 devel/caf

otherwise try the following but it may show a false positive during linking

  $ git clone https://github.com/llvm-mirror/libcxx/
  $ (cd libcxx; git co origin/release_40)
  $ cd /usr/ports/devel/caf
  $ echo 'CXXFLAGS += -nostdinc++ -isystem/path/to/libcxx/include'
>>Makefile.local
then
  $ pkg install llvm40
  $ make clean all CC=clang40 CXX=clang++40 CPP=clang-cpp40
or
  $ pkg install llvm-devel
  $ make clean all CC=clang-devel CXX=clang++-devel CPP=clang-cpp-devel

> The issue itself looks like it could be one-line fix by adding
>
>    #include "caf/behavior.hpp"
>
> in libcaf_core/caf/actor_config.hpp. If you have a chance to try it,
> I'd much appreciate it.

It does help. I'll land it shortly after testing the fix doesn't regress build
on other FreeBSD versions.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list