It fails to install because scan-build.1 doesn't exist in image/usr/lib/llvm/4/share/man/man1. chmod: /var/tmp/portage/sys-devel/clang-4.0.0-r2/image//usr/lib/llvm/4/share/man/man1/scan-build.1: No such file or directory * ERROR: sys-devel/clang-4.0.0-r2::gentoo failed (install phase): * fperms failed * * If you need support, post the output of `emerge --info '=sys-devel/clang-4.0.0-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/clang-4.0.0-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-devel/clang-4.0.0-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/clang-4.0.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/clang-4.0.0-r2/work/x/y/cfe-4.0.0.src' * S: '/var/tmp/portage/sys-devel/clang-4.0.0-r2/work/x/y/cfe-4.0.0.src' FYI, # ls -1 /var/tmp/portage/sys-devel/clang-4.0.0-r2/image//usr/lib/llvm/4/share/man/man1/ clang.1 extraclangtools.1 # find /var/tmp/portage/sys-devel/clang-4.0.0-r2/image -name scan-build.1* /var/tmp/portage/sys-devel/clang-4.0.0-r2/image/usr/lib/llvm/4/man/man1/scan-build.1
Created attachment 474738 [details, diff] sample patch for clang-4.0.0-r2.ebuild I simply added '-DCMAKE_INSTALL_MANDIR:PATH="share/man"' to mycmakeargs. Taken from https://svnweb.freebsd.org/ports/head/devel/llvm-devel/Makefile?view=markup&pathrev=428179#l29 Results of applying this patch) # ls -1 /var/tmp/portage/sys-devel/clang-4.0.0-r2/image//usr/lib/llvm/4/share/man/man1/ clang.1.bz2 extraclangtools.1.bz2 scan-build.1.bz2 # find /var/tmp/portage/sys-devel/clang-4.0.0-r2/image -name scan-build.1* /var/tmp/portage/sys-devel/clang-4.0.0-r2/image/usr/lib/llvm/4/share/man/man1/scan-build.1.bz2
FWICS, it's because the old version of LLVM didn't use CMAKE_INSTALL_MANDIR consistently. Do you have any clue why it defaults to 'man' rather than 'share/man' on BSD?
I think this bug has been fixed by bug 649200. closing. *** This bug has been marked as a duplicate of bug 649200 ***