[Mingw-users] MinGW cross-compiler build experiences (x86-mingw32-build-1.0.sh)
- Date: Tue, 09 Mar 2010 18:24:52 -0800
- From: Natalie Tasman <natalie.tasman@xxxxxxxxxxxxx>
- Subject: [Mingw-users] MinGW cross-compiler build experiences (x86-mingw32-build-1.0.sh)
Jonathan,
Thank you for the information. I'd suspected that something like
process creation was the issue for autotools, with all of the associated
test programs. Thanks for confirming that.
Regarding the cross-compiling environment, I've gone through the process
myself, and here are my notes. I'm using x86-mingw32-build-1.0.sh.
1) edit the .conf file to update packages to more recent versions, where
possible. binutils version 2.20.1-2 doesn't build for me under ubuntu
9.04, with no useful error messages. gcc 3.4.5...-3 doesn't have src
tarballs, so you need ...-2:
assume GCC_VERSION 3.4.5-20060117-2
assume BINUTILS_VERSION 2.19.1
assume RUNTIME_VERSION 3.18
assume W32API_VERSION 3.14
2) manually download the following files; sourceforge has changed their
file release system since the script was authored, so the script can no
longer wget the files correctly.
binutils-2.19.1-src.tar.gz
gcc-core-3.4.5-20060117-2-src.tar.gz
gcc-g++-3.4.5-20060117-2-src.tar.gz
mingwrt-3.18-mingw32-src.tar.gz
w32api-3.14-mingw32-src.tar.gz
3) run the program with i686-pc-mingw as the host argument; have the
script find the files downloaded in 2) rather than try to get them itself.
After about ~10 min, done!
Thanks again for the details as well as verifying that the
cross-compiler environment worked for you, today.
Natalie
On 3/9/10 12:53 PM, Jonathan Marsden wrote:
> Natalie Tasman wrote:
>
>
>> Keith, we ofter hear that (to summarize) "it's not mingw's fault,
>> it's Windows which is intrinsically slow". For my own understanding,
>> I would love to hear a detailed explanation of what you think might
>> be going on.
>>
> Process creation is widely acknowledged to be significantly slower under
> Windows than under Linux/Unix. Google found me this set of posts about
> it, for example; there are many many articles around talking about this:
>
> http://stackoverflow.com/questions/47845/why-is-creating-a-new-process-more-expensive-on-windows-than-linux
>
> This means that software written assuming fork is cheap runs more slowly
> under Windows. And autoconf works by running many many small test programs.
>
>
>> On mingw.org, I see the page "http://mingw.org/wiki/LinuxCrossMinGW",
>> but that page hasn't been updated since Sept 2008 and I know (from
>> watching this list) that there's been a lot of updates since.
>>
> The script it runs was updated in March 2009, and the instructions on
> that wiki page remain valid, as far as I know. I just downloaded the
> tarball, unpacked it and ran the script, and 10 minutes later I had a
> functional cross-compilation environment. At that point, as a quick
> test I can do:
>
> echo -e 'main() {\nprintf("hello, world\\n");\n}'>hello.c
> ~/mingw/bin/i386-mingw32-gcc -o hello.exe hello.c
> file hello.exe
>
> and get
>
> hello.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
>
> and indeed that hello.exe binary runs fine under Windows.
>
> Jonathan
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@xxxxxxxxxxxxxxxxxxxxx
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users