Re: Cross-compiling for i686-pc-mingw32

2010-09-01 Thread Andrey Repin
Greetings, Charles Wilson!

 With cygwin-1.5.25 I can cross-compile libraries for native win32 by
 starting with the following configure command:
 
 ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc
 -mno-cygwin' host_alias=i686-pc-mingw32
 
 and that has worked fine on the few occasions that I've tried it.
 
 However, with cygwin-1.7.5, it doesn't work.

 For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
 honest-to-god cross compiler version of gcc-4 instead (e.g.
 i686-pc-mingw32-gcc)

Aww... now i'm struck with it.
Tried to compile http://www.acme.com/software/mini_httpd/
Installed gcc-mingw, it pulled up some additional packets including gcc
itself.
Then I ran make just for test. Cygwin build went fine, apart from htpasswd
(there's getline redefined in source), but I don't really need it.
Then tried to switch to mingw32 and...

$ gcc -b i686-pc-mingw32 -O   -c mini_httpd.c
gcc: couldn't run `i686-pc-mingw32-gcc-3.4.4': No such file or directory

Tried the suggested gcc-3 -mno-cygwin, and got a whole bunch of unresolved
function names.
So... am I doing something wrong or it's not yet ready to do so?


--
WBR,
 Andrey Repin (anrdae...@freemail.ru) 01.09.2010, 17:53

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cross-compiling for i686-pc-mingw32

2010-09-01 Thread Larry Hall (Cygwin)

On 9/1/2010 10:35 AM, Andrey Repin wrote:

Greetings, Charles Wilson!


With cygwin-1.5.25 I can cross-compile libraries for native win32 by
starting with the following configure command:

./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc
-mno-cygwin' host_alias=i686-pc-mingw32

and that has worked fine on the few occasions that I've tried it.

However, with cygwin-1.7.5, it doesn't work.



For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
honest-to-god cross compiler version of gcc-4 instead (e.g.
i686-pc-mingw32-gcc)


Aww... now i'm struck with it.
Tried to compile http://www.acme.com/software/mini_httpd/
Installed gcc-mingw, it pulled up some additional packets including gcc
itself.
Then I ran make just for test. Cygwin build went fine, apart from htpasswd
(there's getline redefined in source), but I don't really need it.
Then tried to switch to mingw32 and...

$ gcc -b i686-pc-mingw32 -O   -c mini_httpd.c
gcc: couldn't run `i686-pc-mingw32-gcc-3.4.4': No such file or directory

Tried the suggested gcc-3 -mno-cygwin, and got a whole bunch of unresolved
function names.
So... am I doing something wrong or it's not yet ready to do so?


Can you be more specific about what you did?  For example, your original
post stated you could use 'gcc -mno-cygwin' when configuring back in the
days of 1.5.x.  Are you saying that substituting 'gcc-3' for 'gcc' in that
invocation doesn't work with 1.7.x?  If so, we need to see more details.  See

Problem reports:   http://cygwin.com/problems.html

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cross-compiling for i686-pc-mingw32

2010-09-01 Thread Christopher Faylor
On Wed, Sep 01, 2010 at 06:35:18PM +0400, Andrey Repin wrote:
Greetings, Charles Wilson!

 With cygwin-1.5.25 I can cross-compile libraries for native win32 by
 starting with the following configure command:
 
 ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc
 -mno-cygwin' host_alias=i686-pc-mingw32
 
 and that has worked fine on the few occasions that I've tried it.
 
 However, with cygwin-1.7.5, it doesn't work.

 For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
 honest-to-god cross compiler version of gcc-4 instead (e.g.
 i686-pc-mingw32-gcc)

Aww... now i'm struck with it.
Tried to compile http://www.acme.com/software/mini_httpd/
Installed gcc-mingw, it pulled up some additional packets including gcc
itself.
Then I ran make just for test. Cygwin build went fine, apart from htpasswd
(there's getline redefined in source), but I don't really need it.
Then tried to switch to mingw32 and...

$ gcc -b i686-pc-mingw32 -O   -c mini_httpd.c
gcc: couldn't run `i686-pc-mingw32-gcc-3.4.4': No such file or directory

Tried the suggested gcc-3 -mno-cygwin, and got a whole bunch of unresolved
function names.
So... am I doing something wrong or it's not yet ready to do so?

Or, maybe if you're in the wrong mailing list.

I don't see any reason to spend much time trying to help people not use
Cygwin in this mailing list.  If you're having problems building
something which is supposed to be built with MinGW then you should be
checking out the resources at http://mingw.org/ .

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cross-compiling for i686-pc-mingw32

2010-09-01 Thread Andrey Repin
Greetings, Christopher Faylor!

 With cygwin-1.5.25 I can cross-compile libraries for native win32 by
 starting with the following configure command:
 
 ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc
 -mno-cygwin' host_alias=i686-pc-mingw32
 
 and that has worked fine on the few occasions that I've tried it.
 
 However, with cygwin-1.7.5, it doesn't work.

 For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
 honest-to-god cross compiler version of gcc-4 instead (e.g.
 i686-pc-mingw32-gcc)

Aww... now i'm struck with it.
Tried to compile http://www.acme.com/software/mini_httpd/
Installed gcc-mingw, it pulled up some additional packets including gcc
itself.
Then I ran make just for test. Cygwin build went fine, apart from htpasswd
(there's getline redefined in source), but I don't really need it.
Then tried to switch to mingw32 and...

$ gcc -b i686-pc-mingw32 -O   -c mini_httpd.c
gcc: couldn't run `i686-pc-mingw32-gcc-3.4.4': No such file or directory

Tried the suggested gcc-3 -mno-cygwin, and got a whole bunch of unresolved
function names.
So... am I doing something wrong or it's not yet ready to do so?

 Or, maybe if you're in the wrong mailing list.

 I don't see any reason to spend much time trying to help people not use
 Cygwin in this mailing list.  If you're having problems building
 something which is supposed to be built with MinGW then you should be
 checking out the resources at http://mingw.org/ .

It is not supposed to, and it is building fine with cygwin (and working
surprisingly fine, too).
I just want to know, if it's expected behavior for now, or do I need some more
packages installed to be able to cross-compile applications, besides gcc-mingw
and associated.


--
WBR,
 Andrey Repin (anrdae...@freemail.ru) 01.09.2010, 21:03

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Cross-compiling for i686-pc-mingw32

2010-08-07 Thread Sisyphus

Hi,

With cygwin-1.5.25 I can cross-compile libraries for native win32 by 
starting with the following configure command:


./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin 
CC='gcc -mno-cygwin' host_alias=i686-pc-mingw32


and that has worked fine on the few occasions that I've tried it.

However, with cygwin-1.7.5, it doesn't work.
To begin with, '-mno-cygwin' now causes an error - so I've tried removing 
the CC argument and leaving the rest of the command unchanged. Then the 
building of the library (currently proj-4.7.0) works fine - but the 
resulting library is built for i686-pc-cygwin, not for i686-pc-mingw32.


Do I need to run a different configure command ?
Or have I missed something ?

Attached is the config.log for one of my cross-compilation attempts.
In it I see:

configure:3745: checking build system type
configure:3763: result: i686-pc-cygwin
configure:3785: checking host system type
configure:3800: result: i686-pc-mingw32

However, proj.exe (one of the executables that gets built) needs the cygwin 
dll in order to run.
With cygwin-1.5.25, proj.exe is definitely a win32 app (doesn't need the 
cygwin dll).


Cheers,
Rob



config.log
Description: Binary data
--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

Re: Cross-compiling for i686-pc-mingw32

2010-08-07 Thread Charles Wilson
On 8/7/2010 9:45 AM, Sisyphus wrote:
 With cygwin-1.5.25 I can cross-compile libraries for native win32 by
 starting with the following configure command:
 
 ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc
 -mno-cygwin' host_alias=i686-pc-mingw32
 
 and that has worked fine on the few occasions that I've tried it.
 
 However, with cygwin-1.7.5, it doesn't work.

For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
honest-to-god cross compiler version of gcc-4 instead (e.g.
i686-pc-mingw32-gcc)

--
Chuck

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cross-compiling for i686-pc-mingw32

2010-08-07 Thread Sisyphus


- Original Message - 
From: Charles Wilson cyg...@cwilson.fastmail.fm



However, with cygwin-1.7.5, it doesn't work.


For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
honest-to-god cross compiler version of gcc-4 instead (e.g.
i686-pc-mingw32-gcc)


Thanks Chuck. That works well  I look forward to being able to 
cross-compile with gcc-4.


Cheers,
Rob


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple