configure: error: C compiler cannot create executables

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
vlotho
Newbie
Newbie
Posts: 4
Joined: Wed May 20, 2009 8:49 am

configure: error: C compiler cannot create executables

Post by vlotho »

hi,

je me présente ou plutot ma distrib ^^ :
I introduce myself or rather my distribution
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=athlon64 -mtune=athlon64 -Wno-error -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="aac alsa css dvd dvdr encode esd ffmpeg flac gnome gstreamer jpeg ladcca ladspa lame
mp3 mpeg mplayer raw shorten svg v4l2 wavpack win32codecs x264 xine xvid mmx sse sse2 X gtk cairo"
MAKEOPTS="-j2"
PORTDIR_OVERLAY=/usr/local/portage

GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/
ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
uname -a
Linux encodage 2.6.28-gentoo-r5 #1 SMP Wed May 6 13:53:57 CEST 2009 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

gcc-config -l
[1] x86_64-pc-linux-gnu-4.4.0 *


and my problem :
x86_64-pc-linux-gnu-gcc: '-V' must come at the start of the command line
configure:2756: $? = 1
configure:2779: checking for C compiler default output file name
configure:2801: x86_64-pc-linux-gnu-gcc -m32 -march=athlon64 -mtune=athlon64 -Wno-error -O2 -pipe -Wl,-O1 conftest.c >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gn$
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gn$
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2805: $? = 1
configure:2843: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.1.21"
| #define PACKAGE_STRING "Wine 1.1.21"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2849: error: in `/var/tmp/portage/app-emulation/wine-1.1.21/work/wine-1.1.21':
configure:2852: error: C compiler cannot create executables
can u help me ?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: configure: error: C compiler cannot create executables

Post by vitamin »

vlotho wrote:Re: configure: error: C compiler cannot create executables
http://wiki.winehq.org/WineOn64bit
vlotho
Newbie
Newbie
Posts: 4
Joined: Wed May 20, 2009 8:49 am

Post by vlotho »

for wine64 on 64 bits system
when i compile with sources i've this errors
for the file install-wine-deps.sh, it works for ubuntu exclusively and if i skip this file i ve this error :
server.c:875: warning: ignoring return value of 'fchdir', declared with attribut e warn_unused_result
server.c: In function 'server_init_thread':
server.c:1042: warning: assignment makes pointer from integer without a cast
server.c:1043: warning: assignment makes pointer from integer without a cast
server.c:1044: warning: assignment makes pointer from integer without a cast
server.c:1045: warning: assignment makes pointer from integer without a cast
server.c:1047: error: 'struct init_thread_request' has no member named 'teb_high '
server.c:1048: error: 'struct init_thread_request' has no member named 'peb_high '
server.c:1049: error: 'struct init_thread_request' has no member named 'entry_hi gh'
server.c:1050: error: 'struct init_thread_request' has no member named 'ldt_copy _high'
server.c:1055: error: 'struct init_thread_request' has no member named 'pointer_ bytes'
server.c:1062: error: 'const struct init_thread_reply' has no member named 'poin ter_bytes'
make[2]: *** [server.o] Error 1
make[2]: Leaving directory `/root/wine64-git/dlls/ntdll'
make[1]: *** [ntdll] Error 2
make[1]: Leaving directory `/root/wine64-git/dlls'
make: *** [dlls] Error 2
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

vlotho wrote:for wine64 on 64 bits system
You need that why? Wine-64 is highly experemential and runs only few win64 apps. It can not run regular win-32 binaries.
vlotho
Newbie
Newbie
Posts: 4
Joined: Wed May 20, 2009 8:49 am

Post by vlotho »

i need wine64 for video encoding. i want use avsfilter with codecs 64bits.
without chroot if possible.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

configure: error: C compiler cannot create executables

Post by austin987 »

On Thu, May 21, 2009 at 7:55 AM, vlotho <[email protected]> wrote:
i need wine64 for video encoding. i want use avsfilter with codecs 64bits
I highly doubt that will work yet.

--
-Austin
vlotho
Newbie
Newbie
Posts: 4
Joined: Wed May 20, 2009 8:49 am

Post by vlotho »

I am trying to install without chroot version but I hangs on java package which gives me an error extraction

Extracting...
/var/tmp/portage/app-emulation/emul-linux-x86-java-1.6.0.13/distdir/jdk-6u13-dlj-linux-i586.bin: line 821: ./install.sfx.7333: No such file or directory
Failed to extract the files. Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.
*
* ERROR: app-emulation/emul-linux-x86-java-1.6.0.13 failed.
* Call stack:
* ebuild.sh, line 48: Called src_unpack
* environment, line 2734: Called die
* The specific snippet of code:
* sh "${DISTDIR}"/${At} --accept-license --unpack || die "Failed to unpack";
* The die message:
* Failed to unpack
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

vlotho wrote:/var/tmp/portage/app-emulation/emul-linux-x86-java-1.6.0.13/distdir/jdk-6u13-dlj-linux-i586.bin: line 821: ./install.sfx.7333: No such file or directory
And what's that got to do with Wine? Ask gento forum why doesn't it work.
Locked