我在使用scratchbox,make install
时遇到以下错误$ cd $HOME/sbox2/src
$ git clone git://gitorious.org/scratchbox2/scratchbox2.git
$ cd scratchbox2
$ git checkout 2.3.90 -b devel_env
$ ./autogen.sh
$ ./configure --prefix=$HOME/sbox2/bin/scratchbox
$ make install
make install后出错:---
ignite@ignite:~/sbox2/src/scratchbox2$ make install
make[1]: Entering directory `/home/ignite/sbox2/src/scratchbox2'
echo "/* Automatically generated file. Do not edit. */" >include/scratchbox2_version.h
echo '#define SCRATCHBOX2_VERSION "'`cat .version`'"' >>include/scratchbox2_version.h
echo '#define LIBSB2_SONAME "'"libsb2.so.1"'"' >>include/scratchbox2_version.h
[CC] sblib/sb_log.o
[ARCHIVE] sblib/libsblib.a
[SHLIB] preload/libsb2.so
[CC] utils/sb2dctl.o
In file included from /usr/include/i386-linux-gnu/sys/socket.h:251:0,
from /usr/include/netinet/in.h:25,
from utils/sb2dctl.c:25:
utils/sb2dctl.c: In function ‘recvfrom_nomap_nolog’:
/usr/include/i386-linux-gnu/bits/socket2.h:65:1: error: inlining failed in call to always_inline ‘recvfrom’: mismatched arguments
utils/sb2dctl.c:166:2: error: called from here
make[1]: *** [utils/sb2dctl.o] Error 1
make[1]: Leaving directory `/home/ignite/sbox2/src/scratchbox2'
make: *** [regular] Error 2
请建议我该如何解决。
答案 0 :(得分:0)
尝试关闭sb2dctl上的gcc优化,编辑utils / Makefile的第28行,在CFLAGS之后添加-O0(减去大写为零),如下所示。
# sb2dctl, a tool for communicating with sb2d
$(D)/sb2dctl: override CFLAGS := $(CFLAGS) -O0 -Wall -W -Werror \
在使用gcc 4.7.2及更高版本的Ubuntu 12.10 64bit上有类似的错误。可能是由gcc内联错误造成的。