rpmbuild bails out due to missing build id

When rpm-building a package with PGI, rpm stumbles over this:

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /localhome/lpartec/rpmbuild/BUILD/package-Version...
extracting debug info from /localhome/lpartec/rpmbuild/BUILDROOT/package-Version...
*** ERROR: No build ID note found in /localhome/lpartec/rpmbuild/BUILDROOT/package-Version/
error: Bad exit status from /var/tmp/rpm-tmp.M593wL (%install)

This is due to the absence of build info (see also http://forums.fedoraforum.org/showthread.php?t=182293).

Is there a way of putting the build info into the resulting object files?

Thanks for your help,

Cheers, Peter.

Hi niessepe,

Are you trying to build a RPM package or install a RPM package containing with PGI compiled objects? If you are building, try adding the liker option “–build-id[=STYLE]” to set the build id. If you are using a PGI driver, such as pgfortran or pgcc, to perform the link, you can pass flags to the linker using “-Wl,”, i.e. “-Wl,–buidl-id”.

Hope this helps,
Mat