From: Ralf Corsepius [mailto:email@example.com]
Sent: Wednesday, May 04, 2011 6:51 PM
To: Discussion of RPM packaging standards and practices for Fedora
Cc: Gupta2, Sunil
Subject: Re: [Fedora-packaging] problem in creating rpm "No build ID note found
On 05/04/2011 03:03 PM, Sunil_Gupta2(a)Dell.com wrote:
I am trying to create an rpm in Fedora14 and it fails when find-debuginfo.sh is executed
by rpm during build process.
Error comes "No build ID note found in" googling says passing
LDFLAGS+=--build-id in make will resolve the problem but it does not. Same package is
created in RHEL5.6 Without any errors . As far as I understand the gcc by default uses the
--build-id while compiling.
[root@localhost ~]# gcc pro.c
[root@localhost ~]# readelf -a a.out | grep -i build-id
02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr
.gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata
05 .note.ABI-tag .note.gnu.build-id
How to resolve this?
>Such kind of errors usually indicate that a package doesn't
honor CFLAGS/LDFLAGS correctly, e.g. overrides them with something incompatible.
It should then fail in RHEL5 as well
>Another situation I've seen this error occur, is a package
containing prebuilt binaries.
I am not sure but I think there is no prebuilt binary...My guess is if there is a change
in gcc or find-debuginfo.sh which is causing the problem.