如何在64位平台上编译32位的rpm包?遇到了下面的问题怎么解?

使用rpmbuild -bb SPECS/glib2.spec --define "_topdir `pwd`" --target=mipsel 便宜龙芯32位包时报如下错误
+ ./configure --build=mips64el-redhat-linux-gnu --host=mips64el-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-systemtap --enable-static --enable-installed-tests
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for mips64el-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/glib2/BUILD/glib-2.42.1':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
错误:/var/tmp/rpm-tmp.OruSXR (%build) 退出状态不好

RPM 构建错误:

    /var/tmp/rpm-tmp.OruSXR (%build) 退出状态不好

[root@sunhaiyong glib2]# rpmbuild -bb SPECS/glib2.spec --define "_topdir `pwd`" --target=mipsel 


 
已邀请:

heiher - 生态破坏者?

赞同来自: woodpecker

sudo yum install glibc.mipsel glibc-devel.mipsel

jiangtao9999

赞同来自:

See `config.log' for more details

这种没有详细信息的内容,是没法看出问题的。

要回复问题请先登录注册