Bug 1603845

Summary: dwz: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Mohan Boddu <mboddu>
Component: dwzAssignee: Marek Polacek <mpolacek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jakub, mjw, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dwz-0.12-9.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-20 14:15:50 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: 1551327, 1602938    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Mohan Boddu 2018-07-19 19:10:07 UTC
dwz failed to build from source in Fedora rawhide

https://koji.fedoraproject.org/koji/taskinfo?taskID=28175363


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Please fix dwz at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
dwz will be orphaned. Before branching of Fedora 30,
dwz will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Mohan Boddu 2018-07-19 19:10:19 UTC
Created attachment 1461576 [details]
build.log

Comment 2 Mohan Boddu 2018-07-19 19:10:26 UTC
Created attachment 1461577 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Mohan Boddu 2018-07-19 19:10:30 UTC
Created attachment 1461578 [details]
state.log

Comment 4 Marek Polacek 2018-07-19 19:30:06 UTC
I think we should commit this:

diff --git a/dwz.spec b/dwz.spec
index dba2668..15e7fc8 100644
--- a/dwz.spec
+++ b/dwz.spec
@@ -1,14 +1,14 @@
 Summary: DWARF optimization and duplicate removal tool
 Name: dwz
 Version: 0.12
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: GPLv2+ and GPLv3+
 Group: Development/Tools
 # git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
-#   --prefix=%{name}-%{version}/ %{name}-%{version} \
-#   | bzip2 -9 > %{name}-%{version}.tar.bz2
+#   --prefix=%%{name}-%%{version}/ %%{name}-%%{version} \
+#   | bzip2 -9 > %%{name}-%%{version}.tar.bz2
 Source: %{name}-%{version}.tar.bz2
-BuildRequires: elfutils-libelf-devel%{?_isa}
+BuildRequires: gcc, elfutils-libelf-devel
 
 %description
 The dwz package contains a program that attempts to optimize DWARF
@@ -37,6 +37,10 @@ make DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
 %{_mandir}/man1/dwz.1*
 
 %changelog
+* Thu Jul 19 2018 Marek Polacek <polacek> 0.12-9
+- remove %{?_isa} from BuildRequires
+- add gcc to BuildRequires
+
 * Thu Jul 12 2018 Fedora Release Engineering <releng> - 0.12-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Comment 5 Jakub Jelinek 2018-07-19 19:36:28 UTC
Thanks.
Please mention #1545173 for the first item.  Will you build it or should I?

Comment 6 Marek Polacek 2018-07-19 19:49:28 UTC
(In reply to Jakub Jelinek from comment #5)
> Thanks.
> Please mention #1545173 for the first item.  Will you build it or should I?

Will do.  I could build it, but I don't have the commit privileges; can you perhaps add me (I think here <https://src.fedoraproject.org/rpms/dwz>)?  Thanks.

Comment 7 Marek Polacek 2018-07-20 14:15:50 UTC
Fixed.

Comment 8 Igor Raits 2018-07-23 11:04:37 UTC
Matches:
make: cc: Command not found

Suggested fix:
BuildRequires:  gcc