Build ID problem with erlang

Jan Kratochvil jan.kratochvil at redhat.com
Sat Aug 18 20:51:35 UTC 2007


On Sat, 18 Aug 2007 22:11:15 +0200, Gérard Milmeister wrote:
> I get an "No build ID note found" while building a new release of
> erlang. The object .so file in question linked built using "gcc
> -shared", so there must be some other problem. Can someone with more
> knowledge than I look into this?
> Here is the build log:
> http://koji.fedoraproject.org/koji/getfile?taskID=108562&name=build.log

# extracting debug info from /var/tmp/erlang-R11B-5.2.fc8-root-kojibuilder/usr/lib64/erlang/lib/crypto-1.5.1.1/priv/obj/crypto_drv.o
# *** ERROR: No build ID note found in /var/tmp/erlang-R11B-5.2.fc8-root-kojibuilder/usr/lib64/erlang/lib/crypto-1.5.1.1/priv/obj/crypto_drv.o

This is not a complaint about .so but about a .o file.
It is correct as the build-id note is useless in the kernel unloadable file so
it is not produced there by gcc.

it appears to me as this file should not be included in the final .rpm and
it got there accidentally due to a too generic .spec rule:
	%files
	...
	%{_libdir}/erlang

There should be probably in %install some command like:
	find $RPM_BUILD_ROOT/%{_libdir}/erlang -name "*.o" | xargs rm -f
or more specific (?)
	rm -rf $RPM_BUILD_ROOT/%{_libdir}/erlang/lib/*/priv


Regards,
Jan




More information about the fedora-devel-list mailing list