aws-sdk-cpp icon indicating copy to clipboard operation
aws-sdk-cpp copied to clipboard

Compilation failure on RHEL8.6

Open kavitha123408 opened this issue 2 years ago • 4 comments

Describe the bug

In latest AWS CPP SDK, we are getting compilation error for utils/Array.h .. error states that "call of overloaded unique_ptr(int) is ambiguous "

Whether this SDK is compatible with RHEL8.6 version? We are compiling SDK on RHEL8.6 OS. Current version downloaded is 1.11.132

If not what is compatible SDK version for RHEL8.6 OS?

Expected Behavior

There should not be any compilation issues.

Current Behavior

Compilation is failing with errors.

Reproduction Steps

compile latest CPP SDK on RHEL8.6 OS.

Possible Solution

No response

Additional Information/Context

No response

AWS CPP SDK version used

1.11.132

Compiler and Version used

GCC 8.5.0

Operating System and version

RHEL8.6

kavitha123408 avatar Aug 07 '23 10:08 kavitha123408

Hello @kavitha123408 ,

Thank you very much for your submission. Could you please provide the full error message received?

Best regards,

Yasmine

yasminetalby avatar Aug 07 '23 14:08 yasminetalby

Error message aws/core/utils/Array.h:61:31 call of overloaded 'unique_ptr(int)' is ambiguous m_data(nullptr)

this compilation went fine in RHEL7.9 , It is throwing error in RHEL8.6

kavitha123408 avatar Aug 07 '23 14:08 kavitha123408

Hello @kavitha123408 ,

Thank you very much for your answer. Could you please provide some more information:

  • From which cpp is the utils/Array.h file included from?
  • Have you made any changes in how you are compiling the code/could you provide detailed repro steps so we can attempt to reproduce your use case and see if we can see a similar change in behavior between the 2 OS versions?

Thank you very much for your time and collaboration.

Sincerely,

Yasmine

yasminetalby avatar Aug 08 '23 17:08 yasminetalby

Hello,

Array.h has called from <crypto/Factories.h>

It happens at instantiating of "AWS::Utils::Array<T>Array(const T*,size_t) [ with T= unsgned char;size_t= long unsigned int]

Error is throwing exactly at create new array and initialize it to a raw array. We tried to comment out //m_data(nullptr) and used m_data.reset(nullptr) inside the constructor instead of constructor default variable, This fix went fine .

kavitha123408 avatar Aug 10 '23 10:08 kavitha123408

Are you still running into this build error? I can't seem to reproduce it while trying to build on RHEL with the latest version of the sdk. Here is how I built the sdk:

git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
cd aws-sdk-cpp
mkdir build
cd build
cmake .. -DBUILD_ONLY="s3" -DCMAKE_BUILD_TYPE=Debug
cmake --build . --config=Debug
cmake --install . --config=Debug

Please let me know if you are still running into the above error when building this sdk.

jmklix avatar Apr 03 '24 21:04 jmklix

Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Apr 14 '24 00:04 github-actions[bot]