public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc for PowerPc
@ 2000-08-03  0:03 kaushik mondal
  0 siblings, 0 replies; 9+ messages in thread
From: kaushik mondal @ 2000-08-03  0:03 UTC (permalink / raw)
  To: help-gcc

Can we configure gcc so that it generates object files
in COFF format ?
What is the 'target' name for such a configuration?
Regards,
Kaushik

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

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

* Re: Gcc for PowerPC
  2005-04-13  9:33 Gcc for PowerPC Chen, Qin Fei
@ 2005-04-13  9:45 ` Ramana Radhakrishnan
  0 siblings, 0 replies; 9+ messages in thread
From: Ramana Radhakrishnan @ 2005-04-13  9:45 UTC (permalink / raw)
  To: Chen, Qin Fei; +Cc: gcc-help

Chen, Qin Fei wrote:
> Hi,
> 
> I can use gcc compile for Intel and AMD cpu by specifying the switch "-mcpu=pentium4", but can't get powerPC work. if I set the switch to "-mcpu=powerpc", I always get the error message "cc1: error:had value <powerpc> for -mcpu switch". Could you help me and provide some advice if any. Thanks.
> 
> best regards.........qinfei
> 
> 

If you are using the -mcpu=powerpc with the same GCC image 
that is used to build i386 apps, then the error is expected.
You might choose to use that option with GCC built for powerpc.

cheers
Ramana


-- 
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)

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

* Gcc for PowerPC
@ 2005-04-13  9:33 Chen, Qin Fei
  2005-04-13  9:45 ` Ramana Radhakrishnan
  0 siblings, 1 reply; 9+ messages in thread
From: Chen, Qin Fei @ 2005-04-13  9:33 UTC (permalink / raw)
  To: gcc-help

Hi,

I can use gcc compile for Intel and AMD cpu by specifying the switch "-mcpu=pentium4", but can't get powerPC work. if I set the switch to "-mcpu=powerpc", I always get the error message "cc1: error:had value <powerpc> for -mcpu switch". Could you help me and provide some advice if any. Thanks.

best regards.........qinfei


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

* RE: gcc for PowerPC
@ 2000-12-15  3:55 David Korn
  0 siblings, 0 replies; 9+ messages in thread
From: David Korn @ 2000-12-15  3:55 UTC (permalink / raw)
  To: 'Daniel Glozman', gcc-help

>-----Original Message-----
>From: Daniel Glozman [ mailto:daniel@simpod.com ]
>Sent: 13 December 2000 12:46
>To: gcc-help@gcc.gnu.org
>Subject: gcc for PowerPC
>
>
>  Hello,
>I'm compiling gcc-2.95.2 with target=powerpc-eabi
>On sun-solaris and cygwin I get the same error :
                     [snip]
>_muldi3
>../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
>../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
>make[3]: *** [libgcc2.a] Error 1
>make[3]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
>make[2]: *** [stmp-multilib-sub] Error 2
>make[2]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
>make[1]: *** [stmp-multilib] Error 1
>make[1]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
>make: *** [all-gcc] Error 2
>
>It seems like the include path is not updated.
>what should it contain ?

   Hi Dan, 

 Someone may have already answered this for you, but I couldn't find it,
so I may be repeating what you've already been told. The problem is that
gcc needs the header files for the target you're compiling for, and those
are the ones it's looking for at this stage. It's building libgcc2.a,
which contains support functions for the compiled code, so it has to be
compiled to run on the target, and therefore it needs the target headers.

 If you've got a real target system running some rtos, you should place
the header files from it into $prefix/$target/sys-include before you
start the build, or use the option --with-headers=/path/to/header/files
when configuring. If you don't have a target system running, you should
get newlib and use the headers from that.

        DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community." 


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

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

* Re: gcc for PowerPC
  2000-12-13  4:46 Daniel Glozman
  2000-12-13 11:23 ` Gerjan Teselink
@ 2000-12-13 12:40 ` Alexandre Oliva
  1 sibling, 0 replies; 9+ messages in thread
From: Alexandre Oliva @ 2000-12-13 12:40 UTC (permalink / raw)
  To: Daniel Glozman; +Cc: gcc-help

On Dec 13, 2000, "Daniel Glozman" <daniel@simpod.com> wrote:

> I'm compiling gcc-2.95.2 with target=powerpc-eabi

> ../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
> ../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory

Get newlib.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: gcc for PowerPC
  2000-12-13  4:46 Daniel Glozman
@ 2000-12-13 11:23 ` Gerjan Teselink
  2000-12-13 12:40 ` Alexandre Oliva
  1 sibling, 0 replies; 9+ messages in thread
From: Gerjan Teselink @ 2000-12-13 11:23 UTC (permalink / raw)
  To: Daniel Glozman; +Cc: GCC

Hi,

Because it is an CrossCompiler i advise you too use another prefix (the
default is /usr/)  e.g --prefix=/powerpc

First you will have to compile and install  glibc. With the same prefix
(powerpc) and then de binutils (with the same prefix) and the same goes voor
gcc. See also the CrossFAQ.

Kind regards,

Gerjan Teselink
System-Engineer
Jonker ETB BV




----- Original Message -----
From: "Daniel Glozman" <daniel@simpod.com>
To: <gcc-help@gcc.gnu.org>
Sent: Wednesday, December 13, 2000 1:45 PM
Subject: gcc for PowerPC


>   Hello,
> I'm compiling gcc-2.95.2 with target=powerpc-eabi
> On sun-solaris and cygwin I get the same error :
>
> for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
> _ashldi3 _ashrdi3 _ffsdi2 _ud
> iv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi
> _fixunssfsi _fixunsdfdi _fi
> xdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi
> _fixtfdi _fixunstfdi _floatdi
> tf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache
_trampoline
> __main _exit _ctors _pur
> e; \
> do \
>   echo ${name}; \
>
>
>
/home/daniel/download/ppc-gcc/gcc/xgcc -B/home/daniel/download/ppc-gcc/gcc/
> -B/usr/local/powerpc-e
>
abi/bin/ -I/usr/local/powerpc-eabi/include -O2  -DCROSS_COMPILE -DIN_GCC -DH
> AIFA    -g -O2 -I./inclu
>
de   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -mstrict-align -I. -I../.
> ./gcc-2.95.2/gcc -I../..
> /gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c -DL${name} \
>        ../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   powerpc-eabi-ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> ../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
> ../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
> make[3]: *** [libgcc2.a] Error 1
> make[3]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
> make[2]: *** [stmp-multilib-sub] Error 2
> make[2]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
> make[1]: *** [stmp-multilib] Error 1
> make[1]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
> make: *** [all-gcc] Error 2
>
> It seems like the include path is not updated.
> what should it contain ?
>
> Thank you.
>

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

* gcc for PowerPC
@ 2000-12-13  4:46 Daniel Glozman
  2000-12-13 11:23 ` Gerjan Teselink
  2000-12-13 12:40 ` Alexandre Oliva
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Glozman @ 2000-12-13  4:46 UTC (permalink / raw)
  To: gcc-help

  Hello,
I'm compiling gcc-2.95.2 with target=powerpc-eabi
On sun-solaris and cygwin I get the same error :

for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _ud
iv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi
_fixunssfsi _fixunsdfdi _fi
xdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi
_fixtfdi _fixunstfdi _floatdi
tf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline
__main _exit _ctors _pur
e; \
do \
  echo ${name}; \


/home/daniel/download/ppc-gcc/gcc/xgcc -B/home/daniel/download/ppc-gcc/gcc/ 
-B/usr/local/powerpc-e
abi/bin/ -I/usr/local/powerpc-eabi/include -O2  -DCROSS_COMPILE -DIN_GCC -DH
AIFA    -g -O2 -I./inclu
de   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -mstrict-align -I. -I../.
./gcc-2.95.2/gcc -I../..
/gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c -DL${name} \
       ../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  powerpc-eabi-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/home/daniel/download/ppc-gcc/gcc'
make: *** [all-gcc] Error 2

It seems like the include path is not updated.
what should it contain ?

Thank you.

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

* gcc for PowerPc
@ 2000-08-05  2:56 kaushik mondal
  0 siblings, 0 replies; 9+ messages in thread
From: kaushik mondal @ 2000-08-05  2:56 UTC (permalink / raw)
  To: help-gcc

Hi,
can gcc be configured for PowerPc processors such that
it generates the object files in COFF format?
What is the 'target' name for such a configuration?
Regards,
Kaushik

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

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

* gcc for PowerPc
@ 2000-08-02 21:47 kaushik mondal
  0 siblings, 0 replies; 9+ messages in thread
From: kaushik mondal @ 2000-08-02 21:47 UTC (permalink / raw)
  To: help-gcc

Is it possible to configure gcc for PowerPc processor
such that it generates object files in the COFF
format?
What is the 'target' name to be specified for such a
configuration?
Regards,
Kaushik

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

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

end of thread, other threads:[~2005-04-13  9:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-03  0:03 gcc for PowerPc kaushik mondal
  -- strict thread matches above, loose matches on Subject: below --
2005-04-13  9:33 Gcc for PowerPC Chen, Qin Fei
2005-04-13  9:45 ` Ramana Radhakrishnan
2000-12-15  3:55 gcc " David Korn
2000-12-13  4:46 Daniel Glozman
2000-12-13 11:23 ` Gerjan Teselink
2000-12-13 12:40 ` Alexandre Oliva
2000-08-05  2:56 gcc for PowerPc kaushik mondal
2000-08-02 21:47 kaushik mondal

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