Skip to content

HTTPClient.cpp: fails to build with error: 'errc' has not been declared #142852

Closed
@sylvestre

Description

@sylvestre

Recent regression:

FAILED: lib/Debuginfod/CMakeFiles/LLVMDebuginfod.dir/HTTPClient.cpp.o
/usr/bin/g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/lib/Debuginfod -I/build/source/llvm/lib/Debuginfod -I/build/source/build-llvm/include -I/build/source/llvm/include -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=3 -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-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fdebug-prefix-map=/build/source/build-llvm=../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm=../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -MD -MT lib/Debuginfod/CMakeFiles/LLVMDebuginfod.dir/HTTPClient.cpp.o -MF lib/Debuginfod/CMakeFiles/LLVMDebuginfod.dir/HTTPClient.cpp.o.d -o lib/Debuginfod/CMakeFiles/LLVMDebuginfod.dir/HTTPClient.cpp.o -c /build/source/llvm/lib/Debuginfod/HTTPClient.cpp
/build/source/llvm/lib/Debuginfod/HTTPClient.cpp: In member function 'llvm::Error llvm::HTTPClient::perform(const llvm::HTTPRequest&, llvm::HTTPResponseHandler&)':
/build/source/llvm/lib/Debuginfod/HTTPClient.cpp:107:30: error: 'errc' has not been declared
  107 |     return createStringError(errc::invalid_argument,
      |                              ^~~~
/build/source/llvm/lib/Debuginfod/HTTPClient.cpp:125:41: error: 'errc' has not been declared
  125 |                       createStringError(errc::io_error,
      |                                         ^~~~

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions