[РЕШЕНО] Установка MinGW

Не получается сделать сабж.
Делал так:
1. autounmask =dev-util/mingw-runtime-3.15.2
2. # emerge dev-util/mingw-runtime
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/mingw-runtime-3.15.2
* mingwrt-3.15.2-mingw32-src.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
*
* ERROR: dev-util/mingw-runtime-3.15.2 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* mingw-runtime-3.15.2.ebuild, line 45: Called die
* The specific snippet of code:
* die "Invalid configuration"
* The die message:
* Invalid configuration
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-util/mingw-runtime-3.15.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-util/mingw-runtime-3.15.2/temp/die.env'.
*

>>> Failed to emerge dev-util/mingw-runtime-3.15.2, Log file:

>>> '/var/tmp/portage/dev-util/mingw-runtime-3.15.2/temp/build.log'

* Messages for package dev-util/mingw-runtime-3.15.2:

*
* ERROR: dev-util/mingw-runtime-3.15.2 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* mingw-runtime-3.15.2.ebuild, line 45: Called die
* The specific snippet of code:
* die "Invalid configuration"
* The die message:
* Invalid configuration
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-util/mingw-runtime-3.15.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-util/mingw-runtime-3.15.2/temp/die.env'.

Что здесь не правильно, почему не устанавливается- непонятно.

Это делается только через

Это делается только через sys-devel/crossdev
смотреть тут
http://www.gentoo-wiki.info/MinGW

К сожалению, была ошибка: #

К сожалению, была ошибка:

# crossdev i686-mingw32
----------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH: x86
* Target Portage ARCH: x86
* Target System: i686-mingw32
* Stage: 4 (C/C++ compiler)

* binutils: binutils-[latest]
* gcc: gcc-[latest]
* headers: w32api-[latest]
* libc: mingw-runtime-[latest]

* PORTDIR_OVERLAY: /usr/i686-mingw32/usr/portage
* PORT_LOGDIR: /var/log/portage
* PKGDIR: /usr/portage/packages/cross/i686-mingw32
* PORTAGE_TMPDIR: /var/tmp/cross/i686-mingw32
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig ... [ ok ]
* Log: /var/log/portage/cross-i686-mingw32-binutils.log
* Emerging cross-binutils ... [ ok ]
* Log: /var/log/portage/cross-i686-mingw32-w32api-quick.log
* Emerging cross-w32api-quick ... [ ok ]
* Log: /var/log/portage/cross-i686-mingw32-mingw-runtime-headers.log
* Emerging cross-mingw-runtime-headers ... [ ok ]
* Log: /var/log/portage/cross-i686-mingw32-gcc-stage1.log
* Emerging cross-gcc-stage1 ... [ ok ]
* Log: /var/log/portage/cross-i686-mingw32-w32api.log
* Emerging cross-w32api ...

* w32api failed :(
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-i686-mingw32-info.log
* /var/log/portage/cross-i686-mingw32-w32api.log
stas usr # cat /var/log/portage/cross-i686-mingw32-w32api.log

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) cross-i686-mingw32/w32api-3.13 from unknown repo
* w32api-3.13-mingw32-src.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking w32api-3.13-mingw32-src.tar.gz to /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/work
* Applying w32api-3.7-DESTDIR.patch ... [ ok ]
>>> Source unpacked in /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/work
>>> Compiling source in /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/work/w32api-3.13-mingw32 ...
* econf: updating w32api-3.13-mingw32/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating w32api-3.13-mingw32/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-mingw32 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/i686-mingw32/usr/lib --host=i686-mingw32 --prefix=/usr/i686-mingw32/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-mingw32-gcc... gcc
checking for i686-mingw32-ar... i686-mingw32-ar
checking for i686-mingw32-as... i686-mingw32-as
checking for i686-mingw32-ranlib... i686-mingw32-ranlib
checking for i686-mingw32-ld... i686-mingw32-ld
checking for i686-mingw32-dlltool... i686-mingw32-dlltool
checking for i686-mingw32-windres... i686-mingw32-windres
checking for build environment... standard
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/ddk/Makefile
config.status: creating lib/directx/Makefile
make -j2
make AS="i686-mingw32-as" CC="gcc" CPPFLAGS="" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" AR="i686-mingw32-ar" RANLIB="i686-mingw32-ranlib" LD="i686-mingw32-ld" DLLTOOL="i686-mingw32-dlltool" TAR="tar" TARFLAGS="z" TARFILEEXT=".tar.gz" WINDRES="i686-mingw32-windres" -C lib
make[1]: Entering directory `/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/work/w32api-3.13-mingw32/lib'
gcc -c -O3 -march=pentium4 -pipe -fomit-frame-pointer -I./../include -o shell32.o shell32.c
gcc -c -O3 -march=pentium4 -pipe -fomit-frame-pointer -I./../include -o scrnsave.o scrnsave.c
In file included from /usr/include/sys/select.h:47,
from /usr/include/sys/types.h:221,
from /usr/include/stdlib.h:321,
from ./../include/objbase.h:13,
from ./../include/ole2.h:10,
from ./../include/windows.h:115,
from scrnsave.c:11:
/usr/include/bits/time.h:70: ошибка: повторное определение ‘struct timeval’
In file included from /usr/include/sys/types.h:221,
from /usr/include/stdlib.h:321,
from ./../include/objbase.h:13,
from ./../include/ole2.h:10,
from ./../include/windows.h:115,
from scrnsave.c:11:
/usr/include/sys/select.h:78: ошибка: несовместимые типы для ‘fd_set’
./../include/winsock2.h:64: ошибка: здесь была предыдущая декларация ‘fd_set’
/usr/include/sys/select.h:109: ошибка: несовместимые типы для ‘select’
./../include/winsock2.h:632: ошибка: здесь была предыдущая декларация ‘select’
make[1]: *** [scrnsave.o] Error 1
make[1]: Leaving directo2api-3.13/work/w32api-3.13-mingw32/lib'
make: *** [lib] Error 2
*
* ERROR: cross-i686-mingw32/w32api-3.13 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2883: Called die
* The specific snippet of code:
* emake || die
* The die message:
* (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/temp/environment'.
* This ebuild is from an overlay: '/usr/local/portage/xneur/'
*

>>> Failed to emerge cross-i686-mingw32/w32api-3.13, Log file:

>>> '/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/temp/build.log'

* Messages for package cross-i686-mingw32/w32api-3.13:
*
* ERROR: cross-i686-mingw32/w32api-3.13 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2883: Called die
* The specific snippet of code:
* emake || die
* The die message:
* (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/w32api-3.13/temp/environment'.
* This ebuild is from an overlay: '/usr/local/portage/xneur/'
*

Похоже ты не одинок. Попробуй

Похоже ты не одинок. Попробуй поставить компилятор по старее и им собрать. Можешь попробуй написать в http://bugs.gentoo.org/

Компилятор постарее?

То есть?... gcc ? Так может тут в флагах дело? - Искал на gentoo.org свою ошибку, но там пишут совсем о других проблемах.

Да - gcc. Там идут накладки в

Да - gcc. Там идут накладки в *.h. Повторы объявлений структур и т.д.
У тебя стабильной или нестабильной версии gcc?
Можешь также изменить версию mingw32-gcc на более старую или новую.
Как это сделать смотри справку по crossdev

gcc стабильной версии. Здесь

gcc стабильной версии.

Здесь другой способ нашел:

crossdev --gcc 3.4.6 -t i686-mingw32

Правда, там тоже ошибка. Но уже другая:
...
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/xgcc -B/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/ -B/usr/i686-mingw32/bin/ -B/usr/i686-mingw32/lib/ -isystem /usr/i686-mingw32/include -O2 -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/include -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/cygwin/include -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/w32api/include -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I. -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include -DL_chkstk -xassembler-with-cpp -c /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.asm -o libgcc/./_chkstk.o
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/xgcc -B/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/ -B/usr/i686-mingw32/bin/ -B/usr/i686-mingw32/lib/ -isystem /usr/i686-mingw32/include -O2 -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/include -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/cygwin/include -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/w32api/include -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I. -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include -DL_muldi3 -c /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/mingw32.h:32,
from tconfig.h:17,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:36:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:30:19: stdio.h: Нет такого файла или каталога
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/mingw32.h:32,
from tconfig.h:17,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:36:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:415: error: syntax error before '*' token/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/xgcc -B/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/ -B/usr/i686-mingw32/bin/ -B/usr/i686-mingw32/lib/ -isystem /usr/i686-mingw32/include -O2 -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/include -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/cygwin/include -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../winsup/w32api/include -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I. -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include -DL_negdi2 -c /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c -o libgcc/./_negdi2.o

/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:415: warning: function declaration isn't a prototype
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:417: error: syntax error before '*' token
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:417: warning: function declaration isn't a prototype
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:37:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:72:19: stdio.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:75:23: sys/types.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:78:19: errno.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:85:20: string.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:89:20: stdlib.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:90:20: unistd.h: Нет такого файла или каталога
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/include/syslimits.h:7,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/include/limits.h:11,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:93,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:37:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/include/limits.h:122:75: no include path in which to find limits.h
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:37:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:96:18: time.h: Нет такого файла или каталога
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/mingw32.h:32,
from tconfig.h:17,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:36:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:30:19: stdio.h: Нет такого файла или каталога
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/mingw32.h:32,
from tconfig.h:17,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:36:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:415: error: syntax error before '*' token
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:415: warning: function declaration isn't a prototype
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:417: error: syntax error before '*' token
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config/i386/cygwin.h:417: warning: function declaration isn't a prototype
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:37:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:72:19: stdio.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:75:23: sys/types.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:78:19: errno.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:85:20: string.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:89:20: stdlib.h: Нет такого файла или каталога
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:90:20: unistd.h: Нет такого файла или каталога
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/include/syslimits.h:7,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/include/limits.h:11,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:93,
from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:37:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/build/gcc/include/limits.h:122:75: no include path in which to find limits.h
In file included from /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/libgcc2.c:37:
/var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/tsystem.h:96:18: time.h: Нет такого файла или каталога
...

Долгое и упорное мучение

Долгое и упорное мучение гугла дало результат: собралось при
CC=i686-mingw32-gcc emerge cross-i686-mingw32/w32api

(Так же собирал все остальные пакеты, ибо они тоже не хотели собираться)
Теперь встал такой необычный вопрос: После
1. export SYSROOT="/usr/i686-mingw32"
2. Как написано здесь создал xmerge. При запуске xmerge говорит:
!!! /usr/i686-mingw32/etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)

!!! If you have just changed your profile configuration, you should revert
!!! back to the previous configuration. Due to your current profile being
!!! invalid, allowed actions are limited to --help, --info, --sync, and
!!! --version.

И вот вопрос: Что ему нужно?

По ссылке выше написано, что

По ссылке выше написано, что нужно создать профиль.

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".