Bug 2070640
| Summary: | F37FailsToInstall: american-fuzzy-lop-clang | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | american-fuzzy-lop | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | p, rjones, tstellar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-31 17:41:33 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2045109 | ||
|
Description
Miro Hrončok
2022-03-31 15:50:24 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=84978020 I tried a build, but it appears that the package will require some porting to clang 14: /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fPIC -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -g -I ./include/ -DVERSION=\"++4.00c\" -Wno-variadic-macros -DLLVM_MINOR=0 -DLLVM_MAJOR=14 -Wno-deprecated-declarations -Wl,-znodelete -Wdeprecated -fno-rtti -fPIC -std=c++14 -shared instrumentation/afl-llvm-pass.so.cc -o afl-llvm-pass.so `llvm-config --ldflags` -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/AFLplusplus-4.00c/.package_note-american-fuzzy-lop-4.00c-3.fc37.x86_64.ld -ldl -lrt -lm instrumentation/afl-llvm-common.o clang-14: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Wunused-command-line-argument] instrumentation/afl-llvm-pass.so.cc:71:28: error: expected class name class AFLCoverage : public ModulePass { ^ instrumentation/afl-llvm-pass.so.cc:81:31: error: only virtual member functions can be marked 'override' bool runOnModule(Module &M) override; ^~~~~~~~ instrumentation/afl-llvm-pass.so.cc:75:19: error: member initializer 'ModulePass' does not name a non-static data member or base class AFLCoverage() : ModulePass(ID) { ^~~~~~~~~~~~~~ instrumentation/afl-llvm-pass.so.cc:1007:10: error: cannot initialize a parameter of type 'llvm::Pass *' with an rvalue of type '(anonymous namespace)::AFLCoverage *' PM.add(new AFLCoverage()); ^~~~~~~~~~~~~~~~~ /usr/include/llvm/IR/LegacyPassManager.h:48:26: note: passing argument to parameter 'P' here virtual void add(Pass *P) = 0; ^ 4 errors generated. There are various relevant upstream commits touching this code, eg: https://github.com/AFLplusplus/AFLplusplus/commit/90fd61d14a3a154ed58461a9e3eaf2c91d094a86 I will try to see if I can fix this with upstream commits. My mistake, I forgot to add this to our rebuild list. We'll make sure to include it when we do the f36 update. If you need any help fixing this, let me know. There are various regressions upstream. I think I'm nearly there with a fix. f36 side tag is here if you want to do the f36 build too: f36-build-side-52384 Started the build into the side tag for f36: $ fedpkg build --target=f36-build-side-52384 Building american-fuzzy-lop-4.00c-3.git285a5cb3.fc36 for f36-build-side-52384 Created task: 85012915 Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=85012915 Watching tasks (this may be safely interrupted)... 85012915 build (f36-build-side-52384, /rpms/american-fuzzy-lop.git:7dee587d7a6c783b75df10a211c4e1f4b7b50a44): open (buildvm-x86-10.iad2.fedoraproject.org) 85012916 buildSRPMFromSCM (/rpms/american-fuzzy-lop.git:7dee587d7a6c783b75df10a211c4e1f4b7b50a44): free |