Bug 15805 - Unable to build with ccache enabled.
Summary: Unable to build with ccache enabled.
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2023.05.2
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-25 22:02 UTC by Paul Stewart
Modified: 2024-06-15 15:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
cmake error log (4.57 KB, text/x-log)
2023-09-25 22:02 UTC, Paul Stewart
Details
cmake output log (46.90 KB, text/x-log)
2023-09-25 22:03 UTC, Paul Stewart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Stewart 2023-09-25 22:02:11 UTC
Created attachment 9643 [details]
cmake error log

When building with ccache enabled, I get the following error during the ccache build:

"
... snip
-- Ccache version: 4.7.4                                                                 
-- Ccache dev mode: OFF                                                                  
-- Performing Test std_atomic_without_libatomic                                          
-- Performing Test std_atomic_without_libatomic - Success                                
-- Performing Test std_filesystem_without_libfs                                          
-- Performing Test std_filesystem_without_libfs - Failed                                 
-- Performing Test std_filesystem_with_libfs                                             
-- Performing Test std_filesystem_with_libfs - Failed                                    
CMake Error at cmake/StdFilesystem.cmake:22 (message):                                   
  Toolchain doesn't support std::filesystem with nor without -lstdc++fs                  
Call Stack (most recent call first):                                                     
  cmake/StandardSettings.cmake:57 (include)                                              
  CMakeLists.txt:70 (include)                                                            
                                                                                         
                                                                                         
-- Configuring incomplete, errors occurred!                                              
See also "/home/paul/src/pi2/buildroot/build/host-ccache-4.7.4/CMakeFiles/CMakeOutput.lo 
g".                                                                                      
See also "/home/paul/src/pi2/buildroot/build/host-ccache-4.7.4/CMakeFiles/CMakeError.log 
".                                                                                       
make[1]: *** [package/pkg-generic.mk:283: /home/paul/src/pi2/buildroot/build/host-ccache 
-4.7.4/.stamp_configured] Error 1                                                        
make: *** [Makefile:23: _all] Error 2 
"

Disabling ccache, everything builds properly.  Also 2023.02.4 builds properly with ccache.  I also tried building with "BR2_FORCE_HOST_BUILD=y" -- no change.

Environment:
- openSUSE Leap 15.5

Target:
- Raspberry Pi 2
Comment 1 Paul Stewart 2023-09-25 22:03:03 UTC
Created attachment 9646 [details]
cmake output log
Comment 2 Yann E. MORIN 2024-06-15 15:13:07 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!