<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57579>57579</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Compilation-related problem] "ExtendPath" issue for the llvm-15.0.0 release
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rubyFeedback
      </td>
    </tr>
</table>

<pre>
    Hello llvm devs, just reporting a potential issue - I think it is already aware, but I wanted to
mention it for llvm-15.0.0 since it was released recently.

So I am trying to compile llvm from source on my linux box here.

However had, I am running into this issue:

    -- Targeting AMDGPU
    -- Targeting BPF
    -- Targeting X86
    -- Registering Bye as a pass plugin (static build: OFF)
    CMake Error at cmake/modules/CMakeLists.txt:1 (include):
      include could not find requested file:

        ExtendPath


    CMake Error at cmake/modules/CMakeLists.txt:3 (include):
      include could not find requested file:

        FindPrefixFromConfig


    CMake Error at cmake/modules/CMakeLists.txt:116 (find_prefix_from_config):
      Unknown CMake command "find_prefix_from_config".

For reference purposes, here is my environment:

    Operating system:                GNU/Linux
    Operating system bit type:       x86_64 (64 bit)
    CPU Model:                       AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G, 4 cores
    RAM:                             14934 MB RAM
    CFLAGS in use:                   -O2 -fPIC -fno-strict-overflow -Wno-error
    gcc:                             12.2.0
    glibc:                           2.33
    linux:                           5.15.19
    binutils:                        2.39
    cmake:                          3.24.1

I did not have these issues with older cmake versions so perhaps it has to do more
with cmake than llvm. Either way, something isn't quite right. After the 
          Unknown CMake command "find_prefix_from_config".
it does not continue. So I currently can not compile llvm from source. I used
to be able to do so before on the same machine, so I have to investigate
the issue eventually.

I believe the same issue arose on llvm-14.0.x releases - at the least when I
googled for this error I also encountered this in an older github issue a few
months ago. It was listed as fixed back then, but with the new release now,
and the same issue coming up, perhaps it either was not fixed or it was 
a separate issue. Either way I am just reporting this.

Hopefully someone can have a look - llvm is kind of needed for many other
projects such as meson. On my main machine here the older llvm I have
still works fine but on a new computer without internet connection this
is a bit of an issue (I can of course connect it to the internet but my flat
is oddly spaced and my wifi connector has another issue, so I'd have to
carry the computer to the basement and for the time being I am avoiding
this; will investigate more when I have time later this day or week.)

Anyway that's it here - please feel free to close this issue at any moment
in time, especially if it is already known.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1V01T4zgQ_TXJRRVX4oRADjkAM2GoGhaKWWr3Rsl2O9EgSx5JJuTf72vJgcDCzGF2XVSILffX69cfKWy1W34hra3Q-rERFT36QX4uvnc-CEetdUGZtZCitYFMUFIL5X1HYiQuRdgo8yBUwCMhtSNZ7YTcSkesoegCXtlKE6gSwQ7Gnwbj04Z1WMMytXXR5GhylI2zsfDKlMQHW-lhWZP0EHRUQkTvsiSfPr9ZaJaNCG7HzgUrStu0SlOKoXa2Ed52Dvpgq9kJrUz3JAr7JDbk6JWuL3ZLj-TERlbsddTrOmNYsTJQjSB9inkwPT2UFLhGI_GndGuKIJ1efbq4ufvg8Oxm9cHJ3yfzVye3tFY-kItSOxKAA_BL70Wru7UyYpCf-CCDKoGx0hXcEter1SBfvKg5v5IPJD47B5BlEGWD20G-amzVaUKCV_GFr7Djs_AUoGLCapEC3VXEqqYHUQrRHwDnTlfCWKRPGc7Oj448J7gG-u_gw9fnJzCnupFhc3j6O75O_zdfV3jzxlGtnlYg0bk1tVr_V15PJnP2m525b6ONe2bqfZms_CuOO_Ng7Nb0lsDwRiKMQZ5_qCF_xewVPMNLIDwXVtu51nqKxc1FwDWLyiDzqJw1XJfvQHLdkpORpH4H6Bqm2pvr4o87BPuVC-xjOVGgrsOupRcFTyfz-_mMAcEnjl_T9-ZOXNmK9DsG-wvFJk5PRsfz8VjcyopQ6LfHHNxkLM7RDbpA-O_Ii9n5ID-bX_DZDDDi0Yuh29Orj02kazJbTGfi6iy---Lh6uvpxTdwTXSe3lcxus7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