On 2025/12/02 18:20, Gordon Messmer wrote:
On 2025-12-02 1:23 AM, Cristian Le via devel wrote:
Ok, you nerd-snipped me. How did the CXX_FLAGS make the find_package
fail? Curious to see the build log on this.
I uploaded the mock logs and the cmake "redhat-linux-build" directory
here: https://gordonmessmer.fedorapeople.org/aws-sdk-cpp-logs/
Cool. The error would seem to be under aws-c-common's files, but I do
not see anything suspicious there [1]. It does not do any try-compile or
anything, just `include()` calls. It may fail inside at
`find_package(Threads REQUIRED)`, but I don't see in the log indication
that it got there (should have had some thread variables set), so it
seems it failed at even finding those files.
[1]:
https://github.com/awslabs/aws-c-common/blob/95515a8b1ff40d5bb14f965ca4cbbe99ad1843df/cmake/aws-c-common-config.cmake
You'll see the compiler error in
https://gordonmessmer.fedorapeople.org/aws-sdk-cpp-logs/redhat-linux-build/CMakeFiles/CMakeConfigureLog.yaml
Yes, some try-compile failures are fine, it was just going through
```
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
```
Probably it should have passed there, but it should have no affect the
find_package call on line 250.
Something weird is going on, so try to confirm that
`|%{_libdir}/cmake/aws-c-common/aws-c-common-config.cmake` is indeed
present and try to compile with `--debug-find-pkg=aws-c-common` or
equivalent.|
|My only clue is that it seems that `GNUInstallDirs` also failed which
might not recognize /usr/lib64, but only /usr/lib
```|
CMake Warning (dev) at /usr/share/cmake/Modules/GNUInstallDirs.cmake:253
(message):
Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
target architecture is known. Please enable at least one language before
including GNUInstallDirs.
|```
It could be related to the try_compile error if that chain of failures
resulted in `CMAKE_SIZEOF_VOID_P` not being set.|
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue