Bug 15381 - toolchainfile.cmake.in RELOCATED_HOST_DIR error
Summary: toolchainfile.cmake.in RELOCATED_HOST_DIR error
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2022.02.8
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-12 06:59 UTC by tvirus347
Modified: 2024-06-15 15:06 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!