Code: Select all
crossdev -t i686-pc-mingw32
gcc v4 asks me for some minispec files (I don't know what is it)
So i added some random --g param without success
gcc v3.3 complains about missing headers in some cygwin files ...
gcc v3.2 fails to compile because of the -march=prescott arg in my CFLAGS
So i changed my CFLAGS to "-O2 -pipe" just for i686-pc-mingw32 with gcc 3.2 but after, i got many "redefinitions" errors when compiling w32api
Code: Select all
In file included from /usr/include/sys/select.h:46,
from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from ../include/objbase.h:12,
from ../include/ole2.h:9,
from ../include/windows.h:114,
from scrnsave.c:10:
/usr/include/bits/time.h:70: redefinition of `struct timeval'
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from ../include/objbase.h:12,
from ../include/ole2.h:9,
from ../include/windows.h:114,
from scrnsave.c:10:
/usr/include/sys/select.h:78: conflicting types for `fd_set'
../include/winsock2.h:64: previous declaration of `fd_set'
/usr/include/sys/select.h:112: conflicting types for `select'
../include/winsock2.h:632: previous declaration of `select'
Thanks in advance,
Drusselnahg.
here's my mingw32-info.log
Code: Select all
--------------------------------------------------------------------------------
Host Portage ARCH: x86
Target Portage ARCH: x86
Target System: i686-mingw32
Stage: 4 (C/C++ compiler)
binutils: binutils-[latest]
gcc: gcc-3.3.6
headers: w32api-[latest]
libc: mingw-runtime-[latest]
PORTDIR_OVERLAY: /usr/local/portage
PORT_LOGDIR: /var/log/portage
PKGDIR: /usr/portage/packages/cross/i686-mingw32
PORTAGE_TMPDIR: /var/tmp/cross/i686-mingw32
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
Portage 2.1.6.13 (hardened/linux/x86/10.0, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.28-hardened-r9 i686)
=================================================================
System uname: Linux-2.6.28-hardened-r9-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 12 Sep 2009 10:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p39
dev-lang/python: 2.4.4-r6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MMS="prefork"
APACHE2_MODULES="actions alias auth_basic auth_digest dbd expires PHP PHP5 ZTS MPM authz_host dir mime mime_magic vhost_alias asis headers dav dav_fs dav_lock autoindex authz_owner authz_user authz_groupfile authn_file env alias"
ARCH="x86"
AUTOCLEAN="yes"
BOOTLEVEL="boot"
CBUILD="i686-pc-linux-gnu"
CCACHE_SIZE="2G"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
