Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] pkg-cmake.mk: fix host ccache support for CMake 3.19
Date: Tue, 22 Dec 2020 09:29:25 +0100	[thread overview]
Message-ID: <87im8umefu.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20201212225224.117940-1-bernd.amend@gmail.com> (Bernd Amend's message of "Sat, 12 Dec 2020 23:52:24 +0100")

>>>>> "Bernd" == Bernd Amend <bernd.amend@gmail.com> writes:

 > Starting with CMake 3.4 CMake supports setting a compiler launcher
 > like ccache. The feature is described in
 > https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_LAUNCHER.html
 > This should be safe since everything is built for the host using make or ninja.
 > The use of *_ARG1 is discouraged by the cmake developers
 > https://cmake-developers.cmake.narkive.com/OTa9EKfj/cmake-c-compiler-arg-not-documented .

 > Without this patch I get the following error message with CMake 3.19.1 on Arch Linux.
 > Disabling BR2_CCACHE also resolves the issue.

 > /usr/bin/cmake [~]/buildroot/build/host-lzo-2.10/ -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="[...]" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_P
 > ATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="[...]" -DCMAKE_C_FLAGS="-O2 -I[...]/include" -DCMAKE_CXX_FLAGS="-O2 -I[...]/include" -DCMAKE_EXE_LINKER_FLAGS="-L[...]/lib -Wl,-rpath,[...]/lib" -DCMAKE_SHARED_LINKER_FLAGS="-L[...]/l
 > ib -Wl,-rpath,[...]/lib" -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="[...]/bin/ccache" -DCMAKE_CXX_COMPILER="[...]/bin/ccache"
 > -DCMAKE_C_COMPILER_ARG1="/usr/bin/gcc" -DCMAKE_CXX_COMPILER_ARG1="/usr/bin/g++"  -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=O
 > FF  -DENABLE_SHARED=ON -DENABLE_STATIC=OFF )
 > -- The C compiler identification is unknown
 > -- Detecting C compiler ABI info
 > -- Detecting C compiler ABI info - failed
 > -- Check for working C compiler: [...]/bin/ccache
 > -- Check for working C compiler: [...]/bin/ccache - broken
 > CMake Error at /usr/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
 > The C compiler

 > Signed-off-by: Bernd Amend <bernd.amend@gmail.com>

Committed to 2020.02.x, 2020.08.x and 2020.11.x, thanks.

-- 
Bye, Peter Korsgaard

      parent reply	other threads:[~2020-12-22  8:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-12 22:52 [Buildroot] [PATCH 1/1] pkg-cmake.mk: fix host ccache support for CMake 3.19 Bernd Amend
2020-12-13 21:56 ` Yann E. MORIN
2020-12-15 10:59   ` Yegor Yefremov
2020-12-16  9:12 ` Christian Stewart
2020-12-17 21:27 ` Yann E. MORIN
2020-12-22  8:29 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im8umefu.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox