Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm packaging: error: Missing build-id #268

Closed
sergey-safarov opened this issue Apr 4, 2020 · 1 comment
Closed

rpm packaging: error: Missing build-id #268

sergey-safarov opened this issue Apr 4, 2020 · 1 comment

Comments

@sergey-safarov
Copy link

I try compile master fcd2544 on CentOS 8 and get this error

+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile 1
+ /usr/lib/rpm/brp-python-hardlink
+ PYTHON3=/usr/libexec/platform-python
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Processing files: amazon-ssm-agent-2.3.930.0-1.el8.x86_64
error: Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/amazon-ssm-agent
error: Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-document-worker
error: Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-session-worker
error: Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-session-logger
error: Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-cli
error: Generating build-id links failed


RPM build errors:
    Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/amazon-ssm-agent
    Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-document-worker
    Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-session-worker
    Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-session-logger
    Missing build-id in /root/rpmbuild/BUILDROOT/amazon-ssm-agent-2.3.930.0-1.el8.x86_64/usr/bin/ssm-cli
    Generating build-id links failed

Related post

As work around go build maybe extened as

go build -ldflags "-s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -extldflags=-Wl,-z,now,-z,relro,-z,defs"
@shihuazhang
Copy link
Contributor

Thanks for reaching out.

We do not support CentOS 8 at the moment, base on the link you provided, there might be issue with building the Agent on CentOS in general.

We generally recommend building the Agent on Linux, and apologize for the inconvenience.
I will be closing this issue. Please feel free to reopen it if you have any concerns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants