You are not logged in.

#1 2007-03-29 13:23:24

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Compile Error: ld: cannot find -lgcc C compiler cannot create execut

I've just get my system change to arch64 from arch32.

When I try to build wine. It shows:

checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No rule to make target `depend'.  Stop.
==> ERROR: Build Failed.  Aborting...

and see this part of config.log

gcc: '-V' must come at the start of the command line
configure:2366: $? = 1
configure:2389: checking for C compiler default output file name
configure:2416: gcc -m32 -march=x86-64 -O2 -pipe   conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/./libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/./libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2419: $? = 1
configure:2457: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.22"
| #define PACKAGE_STRING "Wine 0.9.22"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {

I run "ld -lgcc"

[root@sgu wine0922]# ld -lgcc
ld: cannot find -lgcc

---------------

When i was building another package, i get this err info:

conftest.cc:14:28: error: ac_nonexistent.h: No such file or directory

Offline

#2 2007-03-29 13:26:34

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: Compile Error: ld: cannot find -lgcc C compiler cannot create execut

wine needs a 32bit environment to run/get compiled or a multilib x86_64 system. watch the gcc -m32 call - so no way without touching the pure 64bit philosophy behind arch64!

Offline

#3 2007-03-29 13:42:18

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: Compile Error: ld: cannot find -lgcc C compiler cannot create execut

I do really need wine, because my ebank login need activex.

How to add lib32 to arch64?

Offline

Board footer

Powered by FluxBB