public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Linux->Cygwin->PowerPC.
@ 1999-07-25 17:30 Brendan Simon
  1999-07-25 20:33 ` Linux->Cygwin->PowerPC Christopher Seawood
  1999-07-31 18:34 ` Linux->Cygwin->PowerPC Brendan Simon
  0 siblings, 2 replies; 10+ messages in thread
From: Brendan Simon @ 1999-07-25 17:30 UTC (permalink / raw)
  To: CygWin32, Cross-GCC

I've managed to compile egcs-1.1.2 as a Linux->Cygwin cross-compiler.
It installs and builds executables ok, though I have not tested the
executables on a Windows machine yet.

The next stage is to build a Cygwin->PowerPC cross-compiler using the
above cross-compiler.  I gave configure the --target=powerpc-eabi and
--host=i586-cygwin32 options and tried to build binutils-2.9.1.  It
succeeded and installed in the correct place with .exe extensions.  I
thought great !! but then I thought I would try to execute them on the
linux box and they did.  eg powerpc-eabi-ar -V gave me the version
number etc.  This is obviously wrong as the cygwin executables shouldn't
run on the Linux host.  It seems that the build process is picking up
the native egcs when building binutils, instead of the i586-cygwin32
version of the egcs tools.  Yes they are all in my path.

Is there an option I have to specify for configure ?

I thinking setting CC_FOR_TARGET=i586-cygwin32-gcc will work.  I guess
all other XXX_FOR_TARGET would need to be setup correctly as well.  I
thought that specifying --host=i586-cygwin32 would do all this for me.
Any ideas what I'm doing wrong.

Brendan Simon.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 17:30 Linux->Cygwin->PowerPC Brendan Simon
@ 1999-07-25 20:33 ` Christopher Seawood
  1999-07-25 20:49   ` Linux->Cygwin->PowerPC Brendan Simon
  1999-07-31 18:34   ` Linux->Cygwin->PowerPC Christopher Seawood
  1999-07-31 18:34 ` Linux->Cygwin->PowerPC Brendan Simon
  1 sibling, 2 replies; 10+ messages in thread
From: Christopher Seawood @ 1999-07-25 20:33 UTC (permalink / raw)
  To: Brendan Simon; +Cc: CygWin32, Cross-GCC

On Mon, 26 Jul 1999, Brendan Simon wrote:

> The next stage is to build a Cygwin->PowerPC cross-compiler using the
> above cross-compiler.  I gave configure the --target=powerpc-eabi and
> --host=i586-cygwin32 options and tried to build binutils-2.9.1.  It

> Is there an option I have to specify for configure ?

Try --build=i586-linux along with the others.

- cls




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 20:33 ` Linux->Cygwin->PowerPC Christopher Seawood
@ 1999-07-25 20:49   ` Brendan Simon
  1999-07-25 21:26     ` Linux->Cygwin->PowerPC Christopher Seawood
                       ` (2 more replies)
  1999-07-31 18:34   ` Linux->Cygwin->PowerPC Christopher Seawood
  1 sibling, 3 replies; 10+ messages in thread
From: Brendan Simon @ 1999-07-25 20:49 UTC (permalink / raw)
  To: Christopher Seawood; +Cc: CygWin32, Cross-GCC

Christopher Seawood wrote:

> On Mon, 26 Jul 1999, Brendan Simon wrote:
>
> > The next stage is to build a Cygwin->PowerPC cross-compiler using the
> > above cross-compiler.  I gave configure the --target=powerpc-eabi and
> > --host=i586-cygwin32 options and tried to build binutils-2.9.1.  It
>
> > Is there an option I have to specify for configure ?
>
> Try --build=i586-linux along with the others.

Doesn't configure automatically detect the build machine ?

Brendan.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 20:49   ` Linux->Cygwin->PowerPC Brendan Simon
@ 1999-07-25 21:26     ` Christopher Seawood
  1999-07-31 18:34       ` Linux->Cygwin->PowerPC Christopher Seawood
  1999-07-26  9:46     ` Linux->Cygwin->PowerPC Mumit Khan
  1999-07-31 18:34     ` Linux->Cygwin->PowerPC Brendan Simon
  2 siblings, 1 reply; 10+ messages in thread
From: Christopher Seawood @ 1999-07-25 21:26 UTC (permalink / raw)
  To: Brendan Simon; +Cc: CygWin32, Cross-GCC

On Mon, 26 Jul 1999, Brendan Simon wrote:

> Doesn't configure automatically detect the build machine ?

It should but I may be misinterpretting something I read in another doc.
See the explanation of canadian cross-compilers at
http://www.objsw.com/CrossGCC/FAQ-4.html .

- cls




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 20:49   ` Linux->Cygwin->PowerPC Brendan Simon
  1999-07-25 21:26     ` Linux->Cygwin->PowerPC Christopher Seawood
@ 1999-07-26  9:46     ` Mumit Khan
  1999-07-31 18:34       ` Linux->Cygwin->PowerPC Mumit Khan
  1999-07-31 18:34     ` Linux->Cygwin->PowerPC Brendan Simon
  2 siblings, 1 reply; 10+ messages in thread
From: Mumit Khan @ 1999-07-26  9:46 UTC (permalink / raw)
  To: brendan; +Cc: Christopher Seawood, CygWin32, Cross-GCC

Brendan Simon <brendan@dgs.monash.edu.au> writes:
> Christopher Seawood wrote:
> 
> > On Mon, 26 Jul 1999, Brendan Simon wrote:
> >
> > > The next stage is to build a Cygwin->PowerPC cross-compiler using the
> > > above cross-compiler.  I gave configure the --target=powerpc-eabi and
> > > --host=i586-cygwin32 options and tried to build binutils-2.9.1.  It
> >
> > > Is there an option I have to specify for configure ?
> >
> > Try --build=i586-linux along with the others.
> 
> Doesn't configure automatically detect the build machine ?
> 

You must specify build host for canadian cross to override some defaults
in the configure (which assumes host = build otherwise).

This discussion is probably a bit off-topic for cygwin list, and more 
appropriately done only in crossgcc.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 20:49   ` Linux->Cygwin->PowerPC Brendan Simon
  1999-07-25 21:26     ` Linux->Cygwin->PowerPC Christopher Seawood
  1999-07-26  9:46     ` Linux->Cygwin->PowerPC Mumit Khan
@ 1999-07-31 18:34     ` Brendan Simon
  2 siblings, 0 replies; 10+ messages in thread
From: Brendan Simon @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Christopher Seawood; +Cc: CygWin32, Cross-GCC

Christopher Seawood wrote:

> On Mon, 26 Jul 1999, Brendan Simon wrote:
>
> > The next stage is to build a Cygwin->PowerPC cross-compiler using the
> > above cross-compiler.  I gave configure the --target=powerpc-eabi and
> > --host=i586-cygwin32 options and tried to build binutils-2.9.1.  It
>
> > Is there an option I have to specify for configure ?
>
> Try --build=i586-linux along with the others.

Doesn't configure automatically detect the build machine ?

Brendan.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Linux->Cygwin->PowerPC.
  1999-07-25 17:30 Linux->Cygwin->PowerPC Brendan Simon
  1999-07-25 20:33 ` Linux->Cygwin->PowerPC Christopher Seawood
@ 1999-07-31 18:34 ` Brendan Simon
  1 sibling, 0 replies; 10+ messages in thread
From: Brendan Simon @ 1999-07-31 18:34 UTC (permalink / raw)
  To: CygWin32, Cross-GCC

I've managed to compile egcs-1.1.2 as a Linux->Cygwin cross-compiler.
It installs and builds executables ok, though I have not tested the
executables on a Windows machine yet.

The next stage is to build a Cygwin->PowerPC cross-compiler using the
above cross-compiler.  I gave configure the --target=powerpc-eabi and
--host=i586-cygwin32 options and tried to build binutils-2.9.1.  It
succeeded and installed in the correct place with .exe extensions.  I
thought great !! but then I thought I would try to execute them on the
linux box and they did.  eg powerpc-eabi-ar -V gave me the version
number etc.  This is obviously wrong as the cygwin executables shouldn't
run on the Linux host.  It seems that the build process is picking up
the native egcs when building binutils, instead of the i586-cygwin32
version of the egcs tools.  Yes they are all in my path.

Is there an option I have to specify for configure ?

I thinking setting CC_FOR_TARGET=i586-cygwin32-gcc will work.  I guess
all other XXX_FOR_TARGET would need to be setup correctly as well.  I
thought that specifying --host=i586-cygwin32 would do all this for me.
Any ideas what I'm doing wrong.

Brendan Simon.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 21:26     ` Linux->Cygwin->PowerPC Christopher Seawood
@ 1999-07-31 18:34       ` Christopher Seawood
  0 siblings, 0 replies; 10+ messages in thread
From: Christopher Seawood @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Brendan Simon; +Cc: CygWin32, Cross-GCC

On Mon, 26 Jul 1999, Brendan Simon wrote:

> Doesn't configure automatically detect the build machine ?

It should but I may be misinterpretting something I read in another doc.
See the explanation of canadian cross-compilers at
http://www.objsw.com/CrossGCC/FAQ-4.html .

- cls




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-25 20:33 ` Linux->Cygwin->PowerPC Christopher Seawood
  1999-07-25 20:49   ` Linux->Cygwin->PowerPC Brendan Simon
@ 1999-07-31 18:34   ` Christopher Seawood
  1 sibling, 0 replies; 10+ messages in thread
From: Christopher Seawood @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Brendan Simon; +Cc: CygWin32, Cross-GCC

On Mon, 26 Jul 1999, Brendan Simon wrote:

> The next stage is to build a Cygwin->PowerPC cross-compiler using the
> above cross-compiler.  I gave configure the --target=powerpc-eabi and
> --host=i586-cygwin32 options and tried to build binutils-2.9.1.  It

> Is there an option I have to specify for configure ?

Try --build=i586-linux along with the others.

- cls




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux->Cygwin->PowerPC.
  1999-07-26  9:46     ` Linux->Cygwin->PowerPC Mumit Khan
@ 1999-07-31 18:34       ` Mumit Khan
  0 siblings, 0 replies; 10+ messages in thread
From: Mumit Khan @ 1999-07-31 18:34 UTC (permalink / raw)
  To: brendan; +Cc: Christopher Seawood, CygWin32, Cross-GCC

Brendan Simon <brendan@dgs.monash.edu.au> writes:
> Christopher Seawood wrote:
> 
> > On Mon, 26 Jul 1999, Brendan Simon wrote:
> >
> > > The next stage is to build a Cygwin->PowerPC cross-compiler using the
> > > above cross-compiler.  I gave configure the --target=powerpc-eabi and
> > > --host=i586-cygwin32 options and tried to build binutils-2.9.1.  It
> >
> > > Is there an option I have to specify for configure ?
> >
> > Try --build=i586-linux along with the others.
> 
> Doesn't configure automatically detect the build machine ?
> 

You must specify build host for canadian cross to override some defaults
in the configure (which assumes host = build otherwise).

This discussion is probably a bit off-topic for cygwin list, and more 
appropriately done only in crossgcc.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-07-31 18:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-25 17:30 Linux->Cygwin->PowerPC Brendan Simon
1999-07-25 20:33 ` Linux->Cygwin->PowerPC Christopher Seawood
1999-07-25 20:49   ` Linux->Cygwin->PowerPC Brendan Simon
1999-07-25 21:26     ` Linux->Cygwin->PowerPC Christopher Seawood
1999-07-31 18:34       ` Linux->Cygwin->PowerPC Christopher Seawood
1999-07-26  9:46     ` Linux->Cygwin->PowerPC Mumit Khan
1999-07-31 18:34       ` Linux->Cygwin->PowerPC Mumit Khan
1999-07-31 18:34     ` Linux->Cygwin->PowerPC Brendan Simon
1999-07-31 18:34   ` Linux->Cygwin->PowerPC Christopher Seawood
1999-07-31 18:34 ` Linux->Cygwin->PowerPC Brendan Simon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).