#uname -a FreeBSD ghost.lan 10.2-RELEASE-p14 FreeBSD 10.2-RELEASE-p14 #0: Wed Mar 16 19:44:49 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 # portversion -v|grep llvm [Reading data from pkg(8) ... - 427 packages found - done] llvm36-3.6.2_2 = up-to-date with port # portversion -v | grep cmake [Reading data from pkg(8) ... - 427 packages found - done] cmake-3.5.0 = up-to-date with port # portversion -v|grep needs [Reading data from pkg(8) ... - 427 packages found - done] gbm-11.0.8 < needs updating (port has 11.1.2) libEGL-11.0.8 < needs updating (port has 11.1.2) libGL-11.0.8 < needs updating (port has 11.1.2) libclc-0.1.0.20150710 < needs updating (port has 0.2.0.20151006) libglapi-11.0.8 < needs updating (port has 11.1.2) libglesv2-11.0.8 < needs updating (port has 11.1.2) # portupgrade -fo devel/llvm38 devel/llvm36 [Reading data from pkg(8) ... - 427 packages found - done] ** Detected a package name change: llvm36 (devel/llvm36) -> 'llvm38' (devel/llvm38) ---> Upgrading 'llvm36-3.6.2_2' to 'llvm38-3.8.0_1' (devel/llvm38) ---> Building '/usr/ports/devel/llvm38' with make flags: -DDISABLE_CONFLICTS ===> Cleaning for llvm38-3.8.0_1 /!\ WARNING /!\ WITH_NEW_XORG and WITHOUT_NEW_XORG knobs were removed and have no effect ===> Found saved configuration for llvm38-3.8.0_1 ===> llvm38-3.8.0_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by llvm38-3.8.0_1 for building ===> Extracting for llvm38-3.8.0_1 => SHA256 Checksum OK for llvm-3.8.0.src.tar.xz. => SHA256 Checksum OK for cfe-3.8.0.src.tar.xz. => SHA256 Checksum OK for clang-tools-extra-3.8.0.src.tar.xz. => SHA256 Checksum OK for lld-3.8.0.src.tar.xz. => SHA256 Checksum OK for lldb-3.8.0.src.tar.xz. /bin/mv /usr/ports/devel/llvm38/work/cfe-3.8.0.src /usr/ports/devel/llvm38/work/llvm-3.8.0.src/tools/clang /bin/mv /usr/ports/devel/llvm38/work/clang-tools-extra-3.8.0.src /usr/ports/devel/llvm38/work/llvm-3.8.0.src/tools/clang/tools/extra /bin/mv /usr/ports/devel/llvm38/work/lld-3.8.0.src /usr/ports/devel/llvm38/work/llvm-3.8.0.src/tools/lld /bin/mv /usr/ports/devel/llvm38/work/lldb-3.8.0.src /usr/ports/devel/llvm38/work/llvm-3.8.0.src/tools/lldb ===> Patching for llvm38-3.8.0_1 ===> Applying extra patch /usr/ports/devel/llvm38/files/clang-patch-fformat_extensions.diff ===> Applying extra patch /usr/ports/devel/llvm38/files/clang-patch-tools_clang_lib_Headers_CMakeLists.txt ===> Applying extra patch /usr/ports/devel/llvm38/files/clang-patch-tools_clang_tools_clang-format_clang-format.py ===> Applying extra patch /usr/ports/devel/llvm38/files/clang-patch-tools_clang_tools_scan-build_libexec_ccc-analyzer /usr/bin/sed -i.bak -e 's|import lit|import lit38|' -e 's|from lit|from lit38|' -e 's|lit\.|lit38.|' /usr/ports/devel/llvm38/work/llvm-3.8.0.src/utils/lit/lit.py /usr/ports/devel/llvm38/work/llvm-3.8.0.src/utils/lit/lit/*.py ===> llvm38-3.8.0_1 depends on executable: ld.gold - found ===> llvm38-3.8.0_1 depends on executable: swig - found ===> llvm38-3.8.0_1 depends on package: py27-enum34>0 - found ===> llvm38-3.8.0_1 depends on file: /usr/local/bin/cmake - found ===> llvm38-3.8.0_1 depends on executable: ninja - found ===> llvm38-3.8.0_1 depends on file: /usr/local/bin/python2.7 - found ===> llvm38-3.8.0_1 depends on package: perl5>=5.20<5.21 - found ===> llvm38-3.8.0_1 depends on shared library: libedit.so.0 - found (/usr/local/lib/libedit.so.0) ===> Configuring for llvm38-3.8.0_1 ===> Performing out-of-source build /bin/mkdir -p /usr/ports/devel/llvm38/work/.build CMake Error: Could not find cmake module file: CMakeSystemSpecificInitialize.cmake -- The C compiler identification is Clang 3.4.1 -- The CXX compiler identification is Clang 3.4.1 -- The ASM compiler identification is Clang -- Found assembler: /usr/bin/cc -- Check for working C compiler using: Ninja CMake Error: Could not find cmake module file: CMakeSystemSpecificInitialize.cmake CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Check for working C compiler using: Ninja -- broken CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:54 (project) -- Configuring incomplete, errors occurred! See also "/usr/ports/devel/llvm38/work/.build/CMakeFiles/CMakeOutput.log". See also "/usr/ports/devel/llvm38/work/.build/CMakeFiles/CMakeError.log". *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/llvm38 *** Error code 1 Stop. make: stopped in /usr/ports/devel/llvm38 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20160327-17393-mgprvk env UPGRADE_TOOL=portupgrade UPGRADE_PORT=llvm36-3.6.2_2 UPGRADE_PORT_VER=3.6.2_2 make -DDISABLE_CONFLICTS ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! devel/llvm38 (llvm36-3.6.2_2) (unknown build error)
The portupgrade command makes no sense. The llvm## ports are designed to be installed along side each other and absolutely can not replace each other in the port/package dependency graph. If you want llvm38 and not llvm36, install the former and delete the latter. That being said, this does look like a build bug which might be independent of the wrong command so I will see if I can replicate it with a newer cmake.
It works for me in a poudriere with a fresh tree. It's possible the CMakeOutput.log and CMakeError.log files contain some hint as to what is going wrong.
after the release of the next update is not repeated