[Crash-utility] trouble builing crash 4.0-3.14

Dave Anderson anderson at redhat.com
Tue Dec 12 19:19:11 UTC 2006


Guy Streeter wrote:

> I get errors trying to build crash 4.0-3.14 on a RHEL4u4 x86_64 system.
> Here are the errors I see:
>
> + /usr/lib/rpm/find-debuginfo.sh /home/hsv/streeter/redhat/BUILD/crash-4.0-3.14
> extracting debug info from /var/tmp/crash-root/usr/bin/crash
> cpio: crash-4.0-3.14/gdb-6.1/bfd/<internal>: No such file or directory
> cpio: crash-4.0-3.14/gdb-6.1/gdb/<internal>: No such file or directory
> cpio: crash-4.0-3.14/gdb-6.1/libiberty/<internal>: No such file or
> directory
> cpio: crash-4.0-3.14/gdb-6.1/readline/<internal>: No such file or
> directory
> 21666 blocks
> + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
> /var/tmp/rpm-tmp.13189: line 37: /usr/lib/rpm/check-rpaths: No such file
> or directory
> error: Bad exit status from /var/tmp/rpm-tmp.13189 (%install)
>
> I'm attaching the log of the build.
>
> thanks,
> --Guy

Must have something to do with the rpm package?  Certainly
the crash src.rpm package has no control over whether your
system has that "/usr/lib/rpm/check-rpaths" command installed,
right?

On my x86_64 RHEL4 box (not RHEL4-U4), the rpmbuild doesn't
do that "/usr/lib/rpm/check-rpaths" command after the cpio:

...
extracting debug info from /var/tmp/crash-root/usr/bin/crash
cpio: crash-4.0-3.14/gdb-6.1/bfd/<internal>: No such file or directory
cpio: crash-4.0-3.14/gdb-6.1/gdb/<internal>: No such file or directory
cpio: crash-4.0-3.14/gdb-6.1/libiberty/<internal>: No such file or directory
cpio: crash-4.0-3.14/gdb-6.1/readline/<internal>: No such file or directory
21663 blocks
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: crash-4.0-3.14
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.38239
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd crash-4.0-3.14
...

I think this may be remotely related to the change in the rpm
package used in RHEL4-U4?  As of RHEL4-U4, the module files
in the kernel-debuginfo package started to become useless because
of that, and we're trying to get them back in shape for RHEL4-U5.
(BZ #211903)

But why your system doesn't have "/usr/lib/rpm/check-rpaths"?
I give up...

At least it built the crash executable.  I always use the tar.gz file
because it's so much easier to deal with:

  $ tar xvzmf crash-xxx.tar.gz; cd crash-xxx; make; make install

Plus the above leaves the crash executable in its debug-full state
so you don't need to install the additional debuginfo package if
you want to run gdb on crash itself.

Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20061212/250569bc/attachment.htm>


More information about the Crash-utility mailing list