为什么编译 wine老出现这样的错误-C compiler cannot create executables[已解决]

Wine、Cedega、CrossOver 等配置
回复
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

为什么编译 wine老出现这样的错误-C compiler cannot create executables[已解决]

#1

帖子 gyx2545965 » 2008-07-29 9:36

在编译wine的时候老是出现
C compiler cannot create executables
See `config.log' for more details.
那位大虾帮忙看看,是不是缺什么?
谢谢了!

以下是config.log的部分类容!
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:2617: $? = 0
configure:2624: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
configure:2627: $? = 1
configure:2650: checking for C compiler default output file name
configure:2677: gcc -m32 conftest.c >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2680: $? = 1
configure:2718: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.1.2"
| #define PACKAGE_STRING "Wine 1.1.2"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2725: error: C compiler cannot create executables
See `config.log' for more details.
上次由 gyx2545965 在 2008-07-30 10:02,总共编辑 3 次。
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

#2

帖子 gyx2545965 » 2008-07-29 9:47

自己 解决了,要设置编译路径,$export CC=gcc,设置一下CC
变量就好了,希望给遇到同样问题的兄弟一些帮助!
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

#3

帖子 gyx2545965 » 2008-07-29 10:03

哎,又遇到新问题了!
我的是64位的,编译的时候又出现这样的错误:
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -D__i386__ -o gettid.o gettid.c
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -D__i386__ -o interlocked.o interlocked.c
{standard input}: Assembler messages:
{standard input}:38: Error: suffix or operands invalid for `push'
{standard input}:39: Error: suffix or operands invalid for `push'
{standard input}:46: Error: suffix or operands invalid for `pop'
{standard input}:47: Error: suffix or operands invalid for `pop'
make[2]: *** [interlocked.o] Error 1
make[2]: Leaving directory `/home/livingwithgod/Desktop/wine-1.1.1/libs/port'
make[1]: *** [port] Error 2
make[1]: Leaving directory `/home/livingwithgod/Desktop/wine-1.1.1/libs'
make: *** [libs] Error 2

我现在是没辙了!谁知道告诉我以下,谢谢!
头像
aric286
帖子: 960
注册时间: 2007-12-03 9:54
联系:

#4

帖子 aric286 » 2008-07-29 10:18

没遇到过,水平太烂,飘。。。。
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

#5

帖子 gyx2545965 » 2008-07-29 10:48

查了一下,为什么我的系统没有lib32这个文件夹阿,usr目录和根目录都没有,是不是要自己装?
那怎么装呢?
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

#6

帖子 gyx2545965 » 2008-07-29 10:52

编译一个wine把人都快弄疯了,郁闷阿!
头像
windowssux
帖子: 618
注册时间: 2006-08-06 16:58
来自: 北海

#7

帖子 windowssux » 2008-07-29 12:15

64位的官网不是有教程吗?
头像
sgsdxzy
帖子: 430
注册时间: 2008-07-19 11:14

#8

帖子 sgsdxzy » 2008-07-29 19:09

见http://forum.ubuntu.org.cn/viewtopic.php?t=116411
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

#9

帖子 gyx2545965 » 2008-07-30 8:10

就是看着教程做的,不然怎么会找那个 lib32文件夹了,我在usr目录下一看,没有那个lib32文件夹阿!
头像
gyx2545965
帖子: 82
注册时间: 2007-11-09 15:55

#10

帖子 gyx2545965 » 2008-07-30 10:01

问题解决了啊,我的gcc少安装一个gcc-4.2-multilib的包,然后安照那个步骤就搞定了,谢谢大家!
回复