我正在尝试使用rpmbuild工具构建一个rpm。我有源代码,建立约30 GB的二进制文件。我正在为其制作rpm的软件有几十个可执行文件。当我只复制单个可执行文件的二进制文件时(例如,init)我的rpm构建成功。但是,当我将整个构建转储到rpm时,rpmbuild会执行所有操作,但最后会给出一个seg错误。
以下是我的规范文件:
# This is a sample spec file for wget
%define _topdir /root/mywget
%define name source
%define release 1
%define version 1.12
%define _builddir /root/mywget/BUILD/glenlivet
%define _buildrootdir /root/mywget/BUILDROOT
%define _buildroot /root/mywget/BUILDROOT
%define _sourcedir /root/mywget/SOURCES
BuildRoot: %{_buildroot}
Summary: GNU source
License: GPL
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.gz
Prefix: /usr
Group: Development/Tools
%description
The GNU sample program downloads files from the Internet using the command-line.
%prep
%setup -q -n glenlivet
%build
cd %{_builddir}
make all
%install
rm -rf %{_buildrootdir}
mkdir -p %{_buildrootdir}/bin
cp -p -r %{_builddir}/build/obj-x64/* %{_buildrootdir}/bin/
%files
%defattr(-,root,root)
/bin/*如果我只复制一些二进制文件(比如一个实用程序及其依赖的二进制文件),它就能正常工作。但是当我试图复制整个构建时,我得到了一个seg错误。在rpmbuild执行以下部分后,我得到了seg错误:%prep %build %install
rpmbuild还处理我的源文件。
处理文件: source-1.12-1
查找可提供以下功能:
查找需要:
查找补充剂:
提供:......
要求:......
检查解包文件:/ usr/lib/rpm/check-files /root/mywget/BUILDROOT
检查解包文件:/ usr/lib/rpm/check-files /root/mywget/BUILDROOT
分段故障
有什么问题的线索吗?或者rpmbuild在哪里失败了?提前感谢
发布于 2012-07-11 04:05:47
我应该在谷歌上了解更多关于这个问题的信息。似乎在尝试创建大于2 2GB的RPM时,rpmbuild有一些问题。有一个bug被归档了:
https://stackoverflow.com/questions/11420657
复制相似问题