Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8963 closed defect (fixed)

cmake breaks at librpc package if ccache is used

Reported by: crissi99@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

make[2]: Entering directory `/home/crissi/work/router/brcm47xx/openwrt-trunk/package/librpc'
(cd /home/crissi/work/router/brcm47xx/openwrt-trunk/build_dir/target-mipsel_uClibc-0.9.32/librpc-0.9.32-rc2; CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=mipsel -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER=/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache mipsel-openwrt-linux-uclibc-gcc -DCMAKE_CXX_COMPILER=/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache mipsel-openwrt-linux-uclibc-g++ -DCMAKE_EXE_LINKER_FLAGS="-L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/lib" -DCMAKE_MODULE_LINKER_FLAGS="-L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/lib" -DCMAKE_SHARED_LINKER_FLAGS="-L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/lib" -DCMAKE_FIND_ROOT_PATH=/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/host -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/target-mipsel_uClibc-0.9.32 -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr . )
-- The C compiler identification is unknown
-- Check for working C compiler: /home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache
CMake Error: your C compiler: "/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: /home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache -- broken
CMake Error at /home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/host/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

The C compiler
"/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache"
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:3 (PROJECT)

CMake Error: your C compiler: "/home/crissi/work/router/brcm47xx/openwrt-trunk/staging_dir/toolchain-mipsel_gcc-linaro_uClibc-0.9.32/bin/ccache" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by mb

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r25878. Thanks for the report.

comment:2 Changed 7 years ago by Brady Zhu <bradyzhu@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

Backfire also needs this patch.

comment:3 Changed 7 years ago by swalker

  • Resolution set to fixed
  • Status changed from reopened to closed

Backfire fixed in r25879 and r25927.

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.