<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJzFVllz2zYQ_jXUCwYaidT5oAcdZuKpUrmWHWf6ogEBkEQMAgwOS86v74KUrah10hzuVOKABPb6drG7QKbZ4-wyiscVUtoh6w1H-1LQElFdVcIhSrzlDLlS2Cheosw7oHMVyLWQQhWIFEQo69B6_f4dqoh13KDMEEXLIHCJCu5AnKNcS6n3QYIbo43totRLiaQuLCLOEVpy1o16q6g3b8eFF5KhtS6i5LgSjXrHp5ku35F7ji6CNtCAaAXTKE4rzbzkADdtGNbCOtt1Bwdq-iiKJ0JR6RlwTp8VI3RcBL88GA2xyIViyPBPnoNLDKaSn4AcpRC6ODiu2BVx5ZeUn8WXvDq-FLiuDM_FITW6WmqVi-I1kPb7DdYAYlc3-nc5GNjR1sIZ9lt1r_ReodZKSCwC0KM4_qp03H1xw78A22L9RnJce4XaDFq2BgGtPeKKU28NjJlQMCqhPhLw-Wa5y8g4HwGyETwoGi76QI6j4arVFHJ3-eED0tlHTl3rTiraAJ3Eu0wE3dbQLj0curqFk84v1xcrMP69Yujo1TnWw2S0Gw1wTTHUnj_gQnkM8VrAg3CVxAiv3s63u7uL6-vN9e7NerOYr3fLm831FnIBr35fXSxu3yC8AcZcElNwbLU3lOOQPhbhPaxfXS5hVBpbDnFzgmKhoKhrbYUTWgHtQViRQfW7RyABEG5xKRiDtoDvmuKOkhUjjmMnKg5rBOocKAdnCLxBs1ehq-CaGFLx0DDw3d4IELDOQJQByB2FToI_eSJbiUpYCxTAySUDqwCFSPGZG-CtOWtwtpxSA1sYYCqqWgoqHM4BgiuN9kV51EceMw44TppYS6CSWIsrcJ1Sbm27aDjzKhjBlX7g7VoNVFGJzwHVaVVpfqC8dtg91u2Swg_COHAEM6eDp4xL8Bm_QLG-KKCaMWgzRrAgD35LTkLqgdMQYUeOe8AEKZS24LbFVMsgn-de0UCGnWveNvARR07zkAXPW1RInYFxKDoIu6eAAQSsY0CibU71Bwjr785YTKF00gcSVl1Vw1hr40gRWol9tJjxBy7hW8qHCvcH3R78p_CDpb029y9QdlmoO0wysQuZn8RdeD21oydEzeSmsXfE0pYOpf1aehtq7ujxHPCNv-k_0AOb0kjXTaAbga8xLhATDD1qjypOWt6cS9i4f7KmLaam1wQLjWPIOl1D9oYF67OnzpgT8Oz8LGzHbVOrTatHe2KfWx_UJ5y8oUFMoMOhaLyAg8F5o1AvgIzGq39rpxvvajjav9FPr7jJtamaHnhsONvN7fXyAqXQ2dAN5G1ojrvt7dXV5vpmu0tX85v5bnuxvLnc_L4F_6CeOIMy2wtX_u1GoBvzz6aXJVEFRytx3LP_Mae-CNTPnShDOpn8wokSxF8-UUBZ_KRsLdT9ky5-4NQ7kkGOnFT851nUBLULlzmEg5uju_fD5I_38bq5LgxXoLN0rrZtrOApIAl81oWUP27R007VRodYwDQ_BmI8mSajEMD0XCtE_sVbwQnFdJqmH5bjZPxqKEJenWt9AUVbTCcYb9-9nceTyZ-_vRaMZABf51rPYXTYLGHTZEo6xLtSm5kttc64GcS9jjdy9sPm4fT1jf1hEk_6nXI2IgmZkt445nww7rFhTOKsN5gkg_6Q5AmNO5JkXNoZuA_XOcX3qFEB3xCAzq8jELO4F8e9fn8Kr8lw0OUsJ5QNKR1ynuUjHg16cIYL2Q16utoUHTNrVGa-sECUzWX2mQiHvigU5w1gQOiEk3z2g_fiTgNy1iD8C1oSNrU>53281</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CMake Error at cmake/modules/CMakeLists.txt
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shoober420
</td>
</tr>
</table>
<pre>
I'm not sure which commit caused this, but when compiling against LLVM master branch, I get the following errors. Full logs attached.
Build Log:
```
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:113 (find_prefix_from_config):
Unknown CMake command "find_prefix_from_config".
```
CMakeError Log:
```
Run Build Command(s):/usr/bin/ninja cmTC_ba7f6 && [1/2] Building CXX object CMakeFiles/cmTC_ba7f6.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_ba7f6.dir/src.cxx.o
/usr/bin/x86_64-pc-linux-gnu-g++ -m32 -DHAS_WERROR_GLOBAL_CTORS -DNDEBUG -O2 -flarge-source-files -w -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -std=c++14 -o CMakeFiles/cmTC_ba7f6.dir/src.cxx.o -c /var/tmp/portage/sys-devel/llvm-14.0.0.9999/work/llvm-14.0.0.9999_build-abi_x86_32.x86/CMakeFiles/CMakeTmp/src.cxx
cc1plus: error: '-Werror=global-constructors': no option '-Wglobal-constructors'; did you mean '-felide-constructors'?
ninja: build stopped: subcommand failed.
Source file was:
int main() { return 0; }
```
CMakeOutput Log:
```
Performing C++ SOURCE FILE Test CXX_SUPPORTS_FDATA_SECTIONS succeeded with the following output:
Change Dir: /var/tmp/portage/sys-devel/llvm-14.0.0.9999/work/llvm-14.0.0.9999_build-abi_x86_32.x86/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_b5c88 && [1/2] Building CXX object CMakeFiles/cmTC_b5c88.dir/src.cxx.o
[2/2] Linking CXX executable cmTC_b5c88
Source file was:
int main() { return 0; }
```
build.log - [6WV53QV2L.txt](https://github.com/llvm/llvm-project/files/7893626/6WV53QV2L.txt)
CMakeError.log - [99FFXC737.txt](https://github.com/llvm/llvm-project/files/7893629/99FFXC737.txt)
CMakeOutput.log - [HMHA288ZK.txt](https://github.com/llvm/llvm-project/files/7893634/HMHA288ZK.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVt1z2jgQ_2vMi0YMmO8HHgjgNnO05IA0nXthZEm21ciSq49A-tffyiah3KW9tpebA49sab9-u9pdKdXscXodxaMSKe2Q9YajQyFogaguS-EQJd5yhlwhbBTPUeod0LkK5EpIoXJEciKUdWi1-vAOlcQ6blBqiKJFELhGOXcgzlGmpdSHIMGN0ca2UeKlRFLnFhHnCC04a0edRdSZNeOVF5Khlc6j3mklGnZOTz2dvyP3HC2DNtCAaAnTKE5KzbzkADepGVbCOtt2RwdquiiKx0JR6RlwTp4VI3RaBL88GA2xyIRiyPDPnoNLDKaSn4GcpBBaHh1X7Ia44mvKr-LrvTq-BLhuDM_EMTG6nGuVifw1kHa7NdYAYl_V-vcZGNjTxsIF9lt1r_RBocZKSCwC0KM4_qZ03H5xw78C22D9TnJsvEJNBs0bg4DWnnDFibcGxlQoGJVQnwj4vJvvUzLKhoBsCA-KBlddIMfRYNFoCrk7__gR6fQTp65xJxFNgM7ibSaCbmtomx6Pbd3ASWbXq-UCjP-oGDp5dYn1OB7uh31cUQy15484Vx5DvK7gQbjsxQgv3s62-7vlZrPe7N-s1lez1X6-W2-2kAt48X6xvLp9g_AaGDNJTM6x1d5QjkP6WIQPsH5zPYdRaWw5xM0JioWCoq60FU5oBbQHYUUK1e8egQRAuMWFYAzaAr6rizvqLRhxHDtRclgjUOdAOTpD4A2avQpdBVfEkJKHhoHvDkaAgHUGogxA7ih0EvzZE9lIlMJaoABOLhlYBShEii_cAG_FWY2z4ZQa2MIAU1FWUlDhcAYQXGG0z4uTPvKYcsBx1sQaApXEWlyC65Rya5tFw5lXwQgu9QNv1iqgilJ8CajOq0rzI-WVw-6xapYUfhDGgSOYOR08ZVyCz_gFivV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