[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1016238: autofdo: FTBFS: llvm_profile_writer.cc:54:42: error: cannot convert ‘const llvm::StringMap<llvm::sampleprof::FunctionSamples>’ to ‘const llvm::sampleprof::SampleProfileMap&’ {aka ‘const std::unordered_map<llvm::sampleprof::SampleContext, llvm::sampleprof::FunctionSamples, llvm::sampleprof::SampleContext::Hash>&’}



Source: autofdo
Version: 0.19-2.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20220728 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> g++ -DHAVE_CONFIG_H -I.  -I. -I./third_party/perf_data_converter/src/quipper -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/llvm-14/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCREATE_LLVM_PROF -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o create_llvm_prof-llvm_profile_writer.o `test -f 'llvm_profile_writer.cc' || echo './'`llvm_profile_writer.cc
> llvm_profile_writer.cc: In static member function ‘static bool autofdo::LLVMProfileBuilder::Write(const std::string&, llvm::sampleprof::SampleProfileFormat, const autofdo::SymbolMap&, const autofdo::StringIndexMap&)’:
> llvm_profile_writer.cc:54:42: error: cannot convert ‘const llvm::StringMap<llvm::sampleprof::FunctionSamples>’ to ‘const llvm::sampleprof::SampleProfileMap&’ {aka ‘const std::unordered_map<llvm::sampleprof::SampleContext, llvm::sampleprof::FunctionSamples, llvm::sampleprof::SampleContext::Hash>&’}
>    54 |   if (std::error_code EC = Writer->write(profiles)) {
>       |                                          ^~~~~~~~
>       |                                          |
>       |                                          const llvm::StringMap<llvm::sampleprof::FunctionSamples>
> In file included from llvm_profile_writer.h:9,
>                  from llvm_profile_writer.cc:30:
> /usr/lib/llvm-14/include/llvm/ProfileData/SampleProfWriter.h:55:57: note:   initializing argument 1 of ‘virtual std::error_code llvm::sampleprof::SampleProfileWriter::write(const llvm::sampleprof::SampleProfileMap&)’
>    55 |   virtual std::error_code write(const SampleProfileMap &ProfileMap);
>       |                                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
> make[2]: *** [Makefile:1040: create_llvm_prof-llvm_profile_writer.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/07/28/autofdo_0.19-2.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.


Reply to: