Bug 2070640 - F37FailsToInstall: american-fuzzy-lop-clang
Summary: F37FailsToInstall: american-fuzzy-lop-clang
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: american-fuzzy-lop
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F37FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2022-03-31 15:50 UTC by Miro Hrončok
Modified: 2022-04-01 13:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-03-31 17:41:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2022-03-31 15:50:24 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

Your package (american-fuzzy-lop) Fails To Install in Fedora 37:

can't install american-fuzzy-lop-clang:
  - nothing provides clang(major) = 13 needed by american-fuzzy-lop-clang-4.00c-2.fc37.x86_64
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-37-x86_64 --disablerepo='*' --enablerepo=local install american-fuzzy-lop-clang


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Richard W.M. Jones 2022-03-31 16:13:10 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.

Comment 2 Richard W.M. Jones 2022-03-31 16:15:50 UTC
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.

Comment 3 Tom Stellard 2022-03-31 17:12:33 UTC
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.

Comment 4 Richard W.M. Jones 2022-03-31 17:25:33 UTC
There are various regressions upstream.  I think I'm nearly there with a fix.

Comment 5 Richard W.M. Jones 2022-03-31 17:33:19 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=84980446

Comment 6 Tom Stellard 2022-04-01 04:42:01 UTC
f36 side tag is here if you want to do the f36 build too: f36-build-side-52384

Comment 7 Richard W.M. Jones 2022-04-01 13:50:41 UTC
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


Note You need to log in before you can comment on or make changes to this bug.