Bug 1603845 - dwz: FTBFS in Fedora rawhide
Summary: dwz: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dwz
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marek Polacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1551327 F29FTBFS
TreeView+ depends on / blocked
 
Reported: 2018-07-19 19:10 UTC by Mohan Boddu
Modified: 2018-07-23 11:04 UTC (History)
3 users (show)

Fixed In Version: dwz-0.12-9.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-20 14:15:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (4.45 KB, text/plain)
2018-07-19 19:10 UTC, Mohan Boddu
no flags Details
root.log (32.00 KB, text/plain)
2018-07-19 19:10 UTC, Mohan Boddu
no flags Details
state.log (599 bytes, text/plain)
2018-07-19 19:10 UTC, Mohan Boddu
no flags Details

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


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