Bug 836155 - root fails to compile from source rpm
Summary: root fails to compile from source rpm
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: root
Version: 17
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Mattias Ellert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-28 09:00 UTC by nvwarr
Modified: 2012-06-28 16:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-28 14:35:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description nvwarr 2012-06-28 09:00:19 UTC
Description of problem:

Rebuilding the root packages from the source rpm fails.

Version-Release number of selected component (if applicable):

root-5.32.03-1.fc17

How reproducible:

Always

Steps to Reproduce:
1. rpm -ivh root-5.32.03-1.fc17.src.rpm
2. rpmbuild -ba $HOME/rpmbuild/SPECS/root.spec
  
Actual results:

Build fails with:
Making include/compiledata.h
bin/rmkdepend -R -fcint/cint/main/cppmain.d -Y -w 1000 -- -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY  -I$HOME/rpmbuild/BUILD/root-5.32.03/cint/cint/inc -I$HOME/rpmbuild/BUILD/root-5.32.03/cint/cint/src -I$HOME/rpmbuild/BUILD/root-5.32.03/cint/cint/src/dict -Wno-unused-but-set-variable -pthread -I. -D__cplusplus -- cint/cint/main/cppmain.cxx
make: bin/rmkdepend: Command not found
make: *** [cint/cint/main/cppmain.o] Error 127
make: *** Waiting for unfinished jobs....
Running $HOME/rpmbuild/BUILD/root-5.32.03/cint/ROOT/configcint.mk
Making cint/cint/inc/configcint.h
error: Bad exit status from /var/tmp/rpm-tmp.zOLKos (%build)

Expected results:

Build should continue until the end.

Additional info:

Removing the line:
  rm -rf core/zip/src/[a-z]* core/zip/inc/[a-z]*
from the specfile, fixes the problem. It seems that the --disable-builtin-zlib doesn't stop zlib from being compiled and just deleting the source code for zlib doesn't fix things! However, the fact that it still seems to need this code implies that it hasn't really disabled the builtin version. So this is perhaps more of a workaround than a fix.

Comment 1 Mattias Ellert 2012-06-28 14:35:22 UTC
I can not reproduce this on Fedora 17. If I try to rebuild the Fedora 17 root source rpm on an up-to-date (all updates applied) Fedora 17 installation today it succeeds.

I have seen this compilation failure on Fedora 18, and the latest root source rpm in Fedora 18 has a patch for it. The problem I have seen in Fedora 18 is due to that Fedora 18 has a newer version of the glibc-headers that introduces an incompatibility with the root sources.

I have reported this upstream: https://savannah.cern.ch/bugs/?95267

I need to follow up on that. They have put the ball back in my court... I have to see if I can make a patch that works with the new system headers without breaking with the old ones.

Are you trying to compile the Fedora 17 root source rpm on Fedora 18 (rowhide), or have you for some reason installed a newer glibc-header package in your Fedora 17 than the one provided in the Fedora 17 repos?

Comment 2 nvwarr 2012-06-28 16:00:10 UTC
Standard Fedora 17 with all the updates and glibc-headers-2.15-37.fc17.x86_64. Is it perhaps a 64-bit issue? I have quitea few 32-bit libraries installed for compatability, so perhaps that is confusing the build?

I don't think this is the same issue as the bug you show. In that case, there is a problem compiling bin/rmkdepend, but in my case, the build doesn't even try to build it and then complains that it doesn't exist. I didn't post the full output from the build, but the lines I posted were the first reference to rmkdepend apart from the sed to fix the manpages. For some reason, it is completely skipping the build of bin/rmkdepend.

If I explicitly add a make bin/rmkdepend before the main make in the spec file, it builds bin/rmkdepend successfully, but then fails because include/TUnixSystem.h doesn't exist and if I fix that, it fails further along. i.e. when it creates the include directory, it is not copying all the headers into it. It's definitely a build problem, because it builds fine without the line rm -rf core/zip/src/[a-z]* core/zip/inc/[a-z]*


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