public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Building a Cygwin version of GCC that targets the PowerPC...
@ 2000-09-27 11:07 Adrian Michaud
  2000-09-28  3:00 ` Rob Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian Michaud @ 2000-09-27 11:07 UTC (permalink / raw)
  To: crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

Title: Building a Cygwin version of GCC that targets the PowerPC...






Does anyone know of, or have a pointer to instructions on how to build the latest GCC on Cygwin that targets a PowerPC processor?  IE:   GCC hosted on Windows that builds PowerPC .elf object files...

Thanks,


Adrian




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

* RE: Building a Cygwin version of GCC that targets the PowerPC...
  2000-09-27 11:07 Building a Cygwin version of GCC that targets the PowerPC Adrian Michaud
@ 2000-09-28  3:00 ` Rob Taylor
  2000-09-28  6:19   ` Rob Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Taylor @ 2000-09-28  3:00 UTC (permalink / raw)
  To: crossgcc

Adrian Michaud wrote:
>Does anyone know of, or have a pointer to instructions on how to build the
latest >GCC on Cygwin that targets a PowerPC processor?  IE:   GCC hosted on
Windows that >builds PowerPC .elf object files...

yep. see attached text file. if you have any problems feel free to ask.

Rob Taylor
Flying Pig Systems

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

* RE: Building a Cygwin version of GCC that targets the PowerPC...
  2000-09-28  3:00 ` Rob Taylor
@ 2000-09-28  6:19   ` Rob Taylor
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Taylor @ 2000-09-28  6:19 UTC (permalink / raw)
  To: crossgcc

> Adrian Michaud wrote:
> >Does anyone know of, or have a pointer to instructions on how to build the
> latest >GCC on Cygwin that targets a PowerPC processor?  IE:   GCC hosted on
> Windows that >builds PowerPC .elf object files...
>
> yep. see attached text file. if you have any problems feel free to ask.

just spotted an errata for the above:
the line

'get cygwin, and source for binutils-2.10 gcc-2.95.2-core, gcc-2.85.2,
newlib-1.82'

should read
'get cygwin, and source for binutils-2.10 gcc-2.95.2-core, gcc-2.95.2,
newlib-1.82'

(just in case anyone got confused ;)


Rob Taylor
Flying Pig Systems


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Building a Cygwin version of GCC that targets the PowerPC...
@ 2000-09-29  6:34 Adrian Michaud
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Michaud @ 2000-09-29  6:34 UTC (permalink / raw)
  To: 'Rob Taylor', crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]

Title: RE: Building a Cygwin version of GCC that targets the PowerPC...






This is how I unzipped the packages:


gzip -dc package_name.tar.gz | tar xvf -


Also, the "core" and the non-core package all got unzipped into the same directory... Is this bad?


Thanks,


Adrian



-----Original Message-----
From: Rob Taylor [ mailto:robt@flyingpig.com ]
Sent: Friday, September 29, 2000 2:24 AM
To: crossgcc
Subject: RE: Building a Cygwin version of GCC that targets the
PowerPC...




>I get the following error when typeing in "make" for the gcc-core section of
those
>instructions you gave me.. Any idea what is wrong here?:


did you extract the tar.gz's with tar? if you used winzip all the soft links
will be broken and files will appear to have gone missing.


(i'll add this to my instructions ;)


Rob Taylor
Flying Pig Systems



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com




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

* Building a Cygwin version of GCC that targets the PowerPC...
@ 2000-09-29  4:21 Rob Taylor
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Taylor @ 2000-09-29  4:21 UTC (permalink / raw)
  To: crossgcc

>   A couple of things jumped out at me from that text file:-
>
> >get cygwin, and source for binutils-2.10 gcc-2.95.2-core, gcc-2.85.2,
> >newlib-1.82
>
>   I don't understand this. Surely gcc-2.95.2-core is a subset of what's
> in gcc-2.95.2, so that step should be unnecessary?

true, but I've never been able to figure out a simple way to configure it so it
just builds a core - If anyone knows a straightforward way, please let me know
;)
This is the just the way I learnt to do it, and it's pretty foolproof.


> >for some reason the build produces a gcc spec file with CR/LF's rather than
> >LF line endings, so convert  the line endings on
> >
> >/usr/target-powerpc/lib/gcc-lib/powerpc-unknown-eabi/2.95.2/spec
>
>   The reason for this would be that the drive on which you're doing
> the build is mounted in text mode, most likely. If you have a binary mode
> mount point in your cygwin setup, you can create a build directory there,
> and it should work fine.
>
Hmm. nope. here's my output from mount

$ mount
Device              Directory           Type         Flags
C:\cygwin\bin       /usr/bin            user         binmode
C:\cygwin\lib       /usr/lib            user         binmode
C:\cygwin           /                   user         binmode

Rob Taylor
Flying Pig Systems


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Building a Cygwin version of GCC that targets the PowerPC...
  2000-09-28 11:08 Adrian Michaud
@ 2000-09-29  4:21 ` Rob Taylor
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Taylor @ 2000-09-29  4:21 UTC (permalink / raw)
  To: crossgcc

>I get the following error when typeing in "make" for the gcc-core section of
those
>instructions you gave me.. Any idea what is wrong here?:

did you extract the tar.gz's with tar? if you used winzip all the soft links
will be broken and files will appear to have gone missing.

(i'll add this to my instructions ;)

Rob Taylor
Flying Pig Systems


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Building a Cygwin version of GCC that targets the PowerPC...
@ 2000-09-28 11:08 Adrian Michaud
  2000-09-29  4:21 ` Rob Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian Michaud @ 2000-09-28 11:08 UTC (permalink / raw)
  To: crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2135 bytes --]

Title: RE: Building a Cygwin version of GCC that targets the PowerPC...






I get the following error when typeing in "make" for the gcc-core section of those instructions you gave me.. Any idea what is wrong here?:

administrator@ADMICH-1 /home/gcc-win32/build-win32/gcc-core
$make


.
.
.
<Tons of stuff happen in here>
.
.
.


  /home/gcc-win32/build-win32/gcc-core/gcc/xgcc -B/home/gcc-win32/build-win32/gc
c-core/gcc/ -B/usr/target-powerpc/powerpc-unknown-eabi/bin/ -c -DHAVE_CONFIG_H -
g -O2 -I. -I../../../../gcc-2.95.2/libiberty/../include   ../../../../gcc-2.95.2
/libiberty/choose-temp.c -o pic/choose-temp.o
/home/gcc-win32/build-win32/gcc-core/gcc/xgcc -B/home/gcc-win32/build-win32/gcc-
core/gcc/ -B/usr/target-powerpc/powerpc-unknown-eabi/bin/ -c -DHAVE_CONFIG_H -g
-O2 -I. -I../../../../gcc-2.95.2/libiberty/../include  ../../../../gcc-2.95.2/li
biberty/choose-temp.c
../../../../gcc-2.95.2/libiberty/choose-temp.c:29: stdio.h: No such file or dire
ctory
../../../../gcc-2.95.2/libiberty/choose-temp.c:30: sys/types.h: No such file or
directory
../../../../gcc-2.95.2/libiberty/choose-temp.c:32: unistd.h: No such file or dir
ectory
../../../../gcc-2.95.2/libiberty/choose-temp.c:35: stdlib.h: No such file or dir
ectory
../../../../gcc-2.95.2/libiberty/choose-temp.c:38: sys/file.h: No such file or d
irectory
make[1]: *** [choose-temp.o] Error 1
make[1]: Leaving directory `/home/gcc-win32/build-win32/gcc-core/powerpc-unknown
-eabi/libiberty'
make: *** [all-target-libiberty] Error 2


administrator@ADMICH-1 /home/gcc-win32/build-win32/gcc-core
$




-----Original Message-----
From: Rob Taylor [ mailto:robt@flyingpig.com ]
Sent: Thursday, September 28, 2000 2:18 AM
To: crossgcc
Subject: RE: Building a Cygwin version of GCC that targets the
PowerPC...




Adrian Michaud wrote:
>Does anyone know of, or have a pointer to instructions on how to build the
latest >GCC on Cygwin that targets a PowerPC processor?  IE:   GCC hosted on
Windows that >builds PowerPC .elf object files...


yep. see attached text file. if you have any problems feel free to ask.


Rob Taylor
Flying Pig Systems




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

* RE: Building a Cygwin version of GCC that targets the PowerPC...
@ 2000-09-28  6:49 David Korn
  0 siblings, 0 replies; 8+ messages in thread
From: David Korn @ 2000-09-28  6:49 UTC (permalink / raw)
  To: 'Rob Taylor', crossgcc

>Adrian Michaud wrote:
>>Does anyone know of, or have a pointer to instructions on how
>>to build the latest GCC on Cygwin that targets a PowerPC processor?  IE:
>>GCC hosted on Windows that builds PowerPC .elf object files...
>
>yep. see attached text file. if you have any problems feel free to ask.
>
>Rob Taylor
>Flying Pig Systems


  A couple of things jumped out at me from that text file:-

>get cygwin, and source for binutils-2.10 gcc-2.95.2-core, gcc-2.85.2,
>newlib-1.82

  I don't understand this. Surely gcc-2.95.2-core is a subset of what's
in gcc-2.95.2, so that step should be unnecessary? (And I'm assuming that
85 is a typo for .95)

>for some reason the build produces a gcc spec file with CR/LF's rather than
>LF line endings, so convert  the line endings on
>
>/usr/target-powerpc/lib/gcc-lib/powerpc-unknown-eabi/2.95.2/spec

  The reason for this would be that the drive on which you're doing
the build is mounted in text mode, most likely. If you have a binary mode
mount point in your cygwin setup, you can create a build directory there,
and it should work fine.

>[ NOTE:
>(if you dont have a suitable tool use the following shell script - create a
>file called dos2unix with this in and stick it in your /usr/local/bin)
>
>#!/bin/sh
>cat $1 | sed "s/^M\{1,\}$//" | sed "$ s/^Z//" > $2
>
>]

  This will come in handy! Thanks!

         DaveK
-- 
 "The secret of life is honesty and fair dealing. If you can fake that,
you've got it made." -Groucho Marx


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-09-29  6:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-27 11:07 Building a Cygwin version of GCC that targets the PowerPC Adrian Michaud
2000-09-28  3:00 ` Rob Taylor
2000-09-28  6:19   ` Rob Taylor
2000-09-28  6:49 David Korn
2000-09-28 11:08 Adrian Michaud
2000-09-29  4:21 ` Rob Taylor
2000-09-29  4:21 Rob Taylor
2000-09-29  6:34 Adrian Michaud

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).