Bug 15381

Summary: toolchainfile.cmake.in RELOCATED_HOST_DIR error
Product: buildroot Reporter: tvirus347
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: major CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2022.02.8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description tvirus347 2023-03-12 06:59:09 UTC
ubuntu22, x64

when my work path is like /home/a/share/buildroot-2022.02.8/.... , then build cmake package failed:

CMake Error at CMakeLists.txt:51 (project):
  The CMAKE_C_COMPILER:

    /home/a-2022.02.8/output/host/bin/gcc

  is not a full path to an existing compiler tool.

i think this line:
string(REPLACE "/share/buildroot" "" RELOCATED_HOST_DIR ${CMAKE_CURRENT_LIST_DIR})

in
support\misc\toolchainfile.cmake.in

should be:
string(REGEX REPLACE "/share/buildroot$"
Comment 1 Yann E. MORIN 2024-06-15 15:06:21 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!