Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Apr 2022 15:14:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263179] devel/flang-clang: fix build with libc++ 14
Message-ID:  <bug-263179-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263179

            Bug ID: 263179
           Summary: devel/flang-clang: fix build with libc++ 14
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jmd@freebsd.org
          Reporter: dim@FreeBSD.org
          Assignee: jmd@freebsd.org
             Flags: maintainer-feedback?(jmd@freebsd.org)

During an exp-run for llvm 14 (see bug 261742), it turned out that
devel/flang-clang fails to build with libc++ 14:

-- Performing Test LLVM_NO_OLD_LIBSTDCXX - Failed
CMake Error at /usr/local/llvm70/lib/cmake/llvm/CheckCompilerVersion.cmake:=
38
(message):
  Host Clang must be able to find libstdc++4.8 or newer!
Call Stack (most recent call first):
  /usr/local/llvm70/lib/cmake/llvm/HandleLLVMOptions.cmake:9 (include)
  CMakeLists.txt:95 (include)


-- Configuring incomplete, errors occurred!
See also
"/wrkdirs/usr/ports/devel/flang-clang/work/.build/CMakeFiles/CMakeOutput.lo=
g".
See also
"/wrkdirs/usr/ports/devel/flang-clang/work/.build/CMakeFiles/CMakeError.log=
".
*** Error code 1

This is because libc++ 14 no longer builds if the compiler doesn't support
__builtin_is_constant_evaluated(). Similar to other ports, add a wrapper to
make it work.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263179-7788>