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/

You'll see the compiler error in https://gordonmessmer.fedorapeople.org/aws-sdk-cpp-logs/redhat-linux-build/CMakeFiles/CMakeConfigureLog.yaml

I think what's happening is that LDFLAGS includes "-specs=/usr/lib/redhat/redhat-hardened-ld", which gives "-pie" as an argument for shared objects, and that in turn requires some of the arguments given in CXXFLAGS (not sure which). Because SUSE's spec replaced CXXFLAGS, g++ wasn't emitting position-independent code, which made its output unusable by ld. When I looked much earlier in the strace logs, I saw that cmake actually did find the file that it says it cannot find, so I think it tests the information that it gets from the config, fails to build an executable, and ignores the config file. And then rather than reporting that it found a file that didn't work, it reports that it can't find the file at all.

--
_______________________________________________
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

Reply via email to