[PATCH] D151273: [llvm-debuginfod][NFC] Switch to OptTable
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 27 00:34:43 PDT 2023
mgorny added a comment.
This is causing a build failure for me, using gcc-13 on 32-bit x86:
samu: job failed: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -DCPPHTTPLIB_OPENSSL_SUPPORT -DCPPHTTPLIB_ZLIB_SUPPORT
-D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LIBCPP_ENABLE_ASSERTIONS -D__STDC_CONSTANT_M
ACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm_build-abi_x86_32.x86/
tools/llvm-debuginfod -I/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/tools/llvm-debuginfod -I/var/tmp/portage/sys-devel
/llvm-17.0.0_pre20230527/work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/include
-march=znver2 --param=l1-cache-size=32 --param=l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches -fPIC -fno-semantic-interposition
-fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-m
issing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-
move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wc
tad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -std=c++17 -UNDEBUG -MD -MT tools/llvm-debuginfod/CMakeFi
les/llvm-debuginfod.dir/llvm-debuginfod.cpp.o -MF tools/llvm-debuginfod/CMakeFiles/llvm-debuginfod.dir/llvm-debuginfod.cpp.o.d -o tools
/llvm-debuginfod/CMakeFiles/llvm-debuginfod.dir/llvm-debuginfod.cpp.o -c /var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/t
ools/llvm-debuginfod/llvm-debuginfod.cpp
/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp: In function ‘void parseArgs(int
, char**)’:
/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp:113:14: error: no matching funct
ion for call to ‘parseIntArg(llvm::opt::InputArgList&, {anonymous}::ID, size_t&, long unsigned int)’
113 | parseIntArg(Args, OPT_max_concurrency, MaxConcurrency, 0ul);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp:77:13: note: candidate: ‘templat
e<class T> void parseIntArg(const llvm::opt::InputArgList&, int, T&, T)’
77 | static void parseIntArg(const opt::InputArgList &Args, int ID, T &Value,
| ^~~~~~~~~~~
/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp:77:13: note: template argument deduction/substitution failed:
/var/tmp/portage/sys-devel/llvm-17.0.0_pre20230527/work/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp:113:14: note: deduced conflicting types for parameter ‘T’ (‘unsigned int’ and ‘long unsigned int’)
113 | parseIntArg(Args, OPT_max_concurrency, MaxConcurrency, 0ul);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samu: subcommand failed
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151273/new/
https://reviews.llvm.org/D151273
More information about the llvm-commits
mailing list