-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
duplicateThis issue is a duplicate.This issue is a duplicate.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Description
Describe the bug
Cannot build s3 1.11.717 on Debian trixie / gcc 14.2.0
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Version 1.11.717 can build on Debian trixie
Current Behavior
Build fails with error
Reproduction Steps
git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
cd aws-sdk-cpp/ && git fetch && git checkout 1.11.717
cmake -B build-aws-s3 -DENABLE_TESTING=OFF \
-DBUILD_TESTING=OFF \
-DAUTORUN_UNIT_TESTS=OFF \
-DENABLE_HTTP_CLIENT_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/usr/local/ \
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DBUILD_ONLY="s3" \
aws-sdk-cpp
cmake --build build-aws-s3 --config=Release
Can be reproduce both on a docker and a real installation.
Possible Solution
No response
Additional Information/Context
[ 99%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/ub_core.cpp.o
In file included from /home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/aws/core/client/AWSProtocolClient.h:10,
from /home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/aws/core/client/AWSJsonClient.h:11,
from /home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h:374,
from /home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/source/client/AWSUrlPresigner.cpp:7,
from /home/runner/build-aws-s3/src/aws-cpp-sdk-core/ub_core.cpp:21:
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h: In instantiation of 'static T smithy::components::tracing::TracingUtils::MakeCallWithTiming(std::function<T()>, const Aws::String&, const smithy::components::tracing::Meter&, Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&&, const Aws::String&) [with T = Aws::Utils::Outcome<std::shared_ptr<Aws::Http::HttpRequest>, Aws::Client::AWSError<Aws::Client::CoreErrors> >; Aws::String = std::__cxx11::basic_string<char>; Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > > >]':
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp:388:85: required from here
388 | SigningOutcome signingOutcome = TracingUtils::MakeCallWithTiming<SigningOutcome>([&]() -> SigningOutcome {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
389 | return this->SignHttpRequest(pRequestCtx->m_httpRequest, *pRequestCtx);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
390 | },
| ~~
391 | TracingUtils::SMITHY_CLIENT_SIGNING_METRIC,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
392 | *m_clientConfig->telemetryProvider->getMeter(this->GetServiceClientName(), {}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
393 | {{TracingUtils::SMITHY_METHOD_DIMENSION, pRequestCtx->m_requestName},
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
394 | {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
78 | RecordExecutionDuration(before, after, std::move(metricName), meter, std::move(attributes), std::move(description));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h: In instantiation of 'static T smithy::components::tracing::TracingUtils::MakeCallWithTiming(std::function<T()>, const Aws::String&, const smithy::components::tracing::Meter&, Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&&, const Aws::String&) [with T = std::shared_ptr<Aws::Http::HttpResponse>; Aws::String = std::__cxx11::basic_string<char>; Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > > >]':
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp:437:88: required from here
437 | auto httpResponse = TracingUtils::MakeCallWithTiming<std::shared_ptr<HttpResponse>>(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
438 | [&]() -> std::shared_ptr<HttpResponse> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
439 | return m_httpClient->MakeRequest(signedHttpRequest, m_clientConfig->readRateLimiter.get(), m_clientConfig->writeRateLimiter.get());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
440 | },
| ~~
441 | TracingUtils::SMITHY_CLIENT_SERVICE_CALL_METRIC,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
442 | *m_clientConfig->telemetryProvider->getMeter(this->GetServiceClientName(), {}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
443 | {{TracingUtils::SMITHY_METHOD_DIMENSION, pRequestCtx->m_requestName},{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
78 | RecordExecutionDuration(before, after, std::move(metricName), meter, std::move(attributes), std::move(description));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h: In instantiation of 'static T smithy::components::tracing::TracingUtils::MakeCallWithTiming(std::function<T()>, const Aws::String&, const smithy::components::tracing::Meter&, Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&&, const Aws::String&) [with T = long int; Aws::String = std::__cxx11::basic_string<char>; Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > > >]':
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp:569:66: required from here
569 | long sleepMillis = TracingUtils::MakeCallWithTiming<long>(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
570 | [&]() -> long {
| ~~~~~~~~~~~~~~~
571 | return m_clientConfig->retryStrategy->CalculateDelayBeforeNextRetry(outcome.GetError(), static_cast<long>(pRequestCtx->m_retryCount));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
572 | },
| ~~
573 | TracingUtils::SMITHY_CLIENT_SERVICE_BACKOFF_DELAY_METRIC,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
574 | *m_clientConfig->telemetryProvider->getMeter(this->GetServiceClientName(), {}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
575 | {{TracingUtils::SMITHY_METHOD_DIMENSION, pRequestCtx->m_requestName},
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
576 | {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
78 | RecordExecutionDuration(before, after, std::move(metricName), meter, std::move(attributes), std::move(description));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h: In instantiation of 'static T smithy::components::tracing::TracingUtils::MakeCallWithTiming(std::function<T()>, const Aws::String&, const smithy::components::tracing::Meter&, Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&&, const Aws::String&) [with T = bool; Aws::String = std::__cxx11::basic_string<char>; Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > > >]':
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/source/client/AWSClient.cpp:583:64: required from here
583 | auto signedRequest = TracingUtils::MakeCallWithTiming<bool>([&]() -> bool {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
584 | return signer->SignRequest(*httpRequest, signerRegionOverride, signerServiceNameOverride, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
585 | },
| ~~
586 | TracingUtils::SMITHY_CLIENT_SIGNING_METRIC,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
587 | *m_telemetryProvider->getMeter(this->GetServiceClientName(), {}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
588 | {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()},{TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
78 | RecordExecutionDuration(before, after, std::move(metricName), meter, std::move(attributes), std::move(description));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h: In instantiation of 'static T smithy::components::tracing::TracingUtils::MakeCallWithTiming(std::function<T()>, const Aws::String&, const smithy::components::tracing::Meter&, Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&&, const Aws::String&) [with T = Aws::Utils::Outcome<Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>, Aws::Client::AWSError<Aws::Client::CoreErrors> >; Aws::String = std::__cxx11::basic_string<char>; Aws::Map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > = std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > > >]':
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/source/client/AWSXmlClient.cpp:109:89: required from here
109 | return smithy::components::tracing::TracingUtils::MakeCallWithTiming<XmlOutcome>(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
110 | [&]() -> XmlOutcome {
| ~~~~~~~~~~~~~~~~~~~~~
111 | return XmlOutcome(std::move(httpOutcome));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112 | },
| ~~
113 | TracingUtils::SMITHY_CLIENT_DESERIALIZATION_METRIC,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114 | *m_telemetryProvider->getMeter(this->GetServiceClientName(), {}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115 | {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
78 | RecordExecutionDuration(before, after, std::move(metricName), meter, std::move(attributes), std::move(description));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: error: redundant move in initialization [-Werror=redundant-move]
/home/runner/aws-sdk-cpp/src/aws-cpp-sdk-core/include/smithy/tracing/TracingUtils.h:78:44: note: remove 'std::move' call
cc1plus: all warnings being treated as errors
gmake[2]: *** [src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/build.make:1010: src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/ub_core.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:973: src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
AWS CPP SDK version used
1.11.717
Compiler and Version used
gcc 14.2.0
Operating System and version
Debian trixie amd64 and arm64
Metadata
Metadata
Assignees
Labels
duplicateThis issue is a duplicate.This issue is a duplicate.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.