Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile mingw32 libs with emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andreas99
n00b
n00b


Joined: 08 May 2004
Posts: 3

PostPosted: Fri Mar 21, 2008 7:54 am    Post subject: Compile mingw32 libs with emerge Reply with quote

Hello,

I've build a mingw32 compiler in gentoo. Now I could build win32 binaries. But many libraries in win32 format are missing for real world application. For example boost. Is it possible to compile boost in portage for mingw32? Or do I have to compile all libs beside portage?

I've seen here[1] a tutorial with ARCH="arm". But it seems there's no ARCH="mingw32". With xmingw before it was easier to get some basic mingw32 packages compiled and up-to-date. Is there a similar way with crossdev?

[1] http://gentoo-wiki.com/HOWTO_Cross_Compile

regards
Andreas
Back to top
View user's profile Send private message
andreas99
n00b
n00b


Joined: 08 May 2004
Posts: 3

PostPosted: Fri Mar 21, 2008 9:35 am    Post subject: Reply with quote

Now I found two tutorials:

http://gentoo-wiki.com/HOWTO_MinGW
http://www.gentoo.org/proj/en/base/embedded/cross-development.xml

I made it exact as explained. Now I like to xmerge glibc:

> xmerge -vp glibc

Calculating dependencies... done!
[ebuild N ] sys-libs/timezone-data-2007k to /usr/i686-mingw32/ USE="-elibc_FreeBSD -elibc_glibc -nls" 0 kB
[ebuild N ] sys-libs/glibc-2.6.1 to /usr/i686-mingw32/ USE="-debug -gd -glibc-omitfp -hardened -multilib -nls -profile -selinux -vanilla" 16,007 kB

But then it dies with:

>>> Compiling source in /var/tmp/portage/sys-libs/timezone-data-2007k/work ...
sed \
-e 's|AWK=[^}]*|AWK=awk|g' \
-e 's|TZDIR=[^}]*|TZDIR=/usr/share/zoneinfo|' \
<tzselect.ksh >tzselect
chmod +x tzselect
i686-mingw32-gcc -DTZDIR=\"/usr/share/zoneinfo\" -O2 -pipe -std=gnu99 -c -o zic.o zic.c
In file included from zic.c:8:
private.h:97:58: sys/wait.h: No such file or directory
zic.c: In function `dolink':
zic.c:662: warning: implicit declaration of function `symlink'
zic.c: In function `mkdirs':
zic.c:2671: error: `S_IRGRP' undeclared (first use in this function)
zic.c:2671: error: (Each undeclared identifier is reported only once
zic.c:2671: error: for each function it appears in.)
zic.c:2671: error: `S_IXGRP' undeclared (first use in this function)
zic.c:2671: error: `S_IROTH' undeclared (first use in this function)
zic.c:2671: error: `S_IXOTH' undeclared (first use in this function)
zic.c:2671: error: too many arguments to function `mkdir'
make: *** [zic.o] Error 1

Ok, where is sys/wait.h

> epm -qf /usr/include/sys/wait.h
glibc-2.6.1

I need timezone-data to compile glibc and I need glibs to compile timezone-data on mingw32.

Maybe I installed the toolchain not complete. Any ideas or hints?

regards
Andreas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum