public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* RE:How to make a gcc for MPC860 ?
@ 2000-09-26 23:08 沈惠如
  2000-10-07 19:15 ` Pun H. Shiu
  0 siblings, 1 reply; 4+ messages in thread
From: 沈惠如 @ 2000-09-26 23:08 UTC (permalink / raw)
  To: crossgcc; +Cc: bie.jiuling

Hi

Firstly, I would like to say thanks to bie.jiuling for his reply to my question
I have not try his patch file yet.
I think it will work well. :)

One thing I would like to share with everyone who try to make a gcc compiler for 860 is :
get "gcc.2.95.2.tar.gz"  not  "gcc.2.95.2.core + gcc.2.95.2.g++" <-- according to  < http://sources.redhat.com/ecos/tools/linux-powerpc-eabi.html >
I check my configure.out, and find that it seems that I miss some files.
So I get lots of error "can't find file xxx"
I try the gcc.2.95.2.tar.gz and follow the steps in the < http://sources.redhat.com/ecos/tools/linux-powerpc-eabi.html >
Thank God, everything works ! :)

good luck to everyone !

Ruby

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

* RE:How to make a gcc for MPC860 ?
  2000-09-26 23:08 RE:How to make a gcc for MPC860 ? 沈惠如
@ 2000-10-07 19:15 ` Pun H. Shiu
  2000-10-08  3:34   ` How " Kai Ruottu
  0 siblings, 1 reply; 4+ messages in thread
From: Pun H. Shiu @ 2000-10-07 19:15 UTC (permalink / raw)
  To: 沈惠如; +Cc: crossgcc

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

Could you help me out or give some advice?
(what kind of flags/files/ENVs should I have?)

I try that the the make process goes fine. My
custom part of "configure" is 

--target=powerpc-eabi
--prefix=/tmp/pun \
--exec-prefix=/tmp/pun/H-i686-pc-linux-gnu \

but I get the following error. 


The following are the errors
--- from terminal (when I comment out the "#include <stdio.h>") ---
ship@marlet[/tmp/pun/test]73>/tmp/pun/H-i686-pc-linux-gnu/bin/powerpc-eabi-gcc
nn.c -I/tmp/pun/gcc/gcc-2.95.2/libio
-I/tmp/pun/gcc/gcc-2.95.2/libio/stdio
/tmp/pun/H-i686-pc-linux-gnu/powerpc-eabi/bin/ld: warning: cannot
find entry symbol _start; defaulting to 01800074
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x8): undefined
reference to `__SDATA_START__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0xc): undefined
reference to `__SBSS_END__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x14): undefined
reference to `__SDATA2_START__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x18): undefined
reference to `__SBSS2_END__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x1c): undefined
reference to `__GOT_START__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x28): undefined
reference to `__GOT_END__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x2c): undefined
reference to `__GOT2_START__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x30): undefined
reference to `__GOT2_END__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x34): undefined
reference to `__FIXUP_START__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x38): undefined
reference to `__FIXUP_END__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x4c): undefined
reference to `__EXCEPT_START__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x50): undefined
reference to `__EXCEPT_END__'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi-ctors.o)(.sdata+0x0): undefined
reference to `__init'
/tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi-ctors.o): In
function `__do_global_ctors':
/tmp/build/gcc/gcc/eabi-ctors.c(.sdata+0x4): undefined reference to `__fini'
collect2: ld returned 1 exit status
--- from terminal (when I comment out the "#include <stdio.h>") ---

--- from terminal (when I have "#include <stdio.h>")  ---
ship@marlet[/tmp/pun/test]75>/tmp/pun/H-i686-pc-linux-gnu/bin/powerpc-eabi-gcc
nn.c -I/tmp/pun/gcc/gcc-2.95.2/libio
-I/tmp/pun/gcc/gcc-2.95.2/libio/stdio In file included from
/tmp/pun/gcc/gcc-2.95.2/libio/stdio/stdio.h:29,
                 from nn.c:1:
/tmp/pun/gcc/gcc-2.95.2/libio/libio.h:30: _G_config.h: No such file or directory
--- from terminal (when I have "#include <stdio.h>")  ---
thank you, 
pun

On Wed, 27 Sep 2000, [big5] ¨H´f¦p wrote:

> Hi
> 
> Firstly, I would like to say thanks to bie.jiuling for his reply to my question
> I have not try his patch file yet.
> I think it will work well. :)
> 
> One thing I would like to share with everyone who try to make a gcc compiler for 860 is :
> get "gcc.2.95.2.tar.gz"  not  "gcc.2.95.2.core + gcc.2.95.2.g++" <-- according to  < http://sources.redhat.com/ecos/tools/linux-powerpc-eabi.html >
> I check my configure.out, and find that it seems that I miss some files.
> So I get lots of error "can't find file xxx"
> I try the gcc.2.95.2.tar.gz and follow the steps in the < http://sources.redhat.com/ecos/tools/linux-powerpc-eabi.html >
> Thank God, everything works ! :)
> 
> good luck to everyone !
> 
> Ruby
> 

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

* Re: How to make a gcc for MPC860 ?
  2000-10-07 19:15 ` Pun H. Shiu
@ 2000-10-08  3:34   ` Kai Ruottu
  0 siblings, 0 replies; 4+ messages in thread
From: Kai Ruottu @ 2000-10-08  3:34 UTC (permalink / raw)
  To: Pun H. Shiu
  Cc: ¨H´f¦p,
	crossgcc

"Pun H. Shiu" wrote:
> 
> I try that the the make process goes fine. My
> custom part of "configure" is
> 
> --target=powerpc-eabi
> --prefix=/tmp/pun \
> --exec-prefix=/tmp/pun/H-i686-pc-linux-gnu \
> 
> but I get the following error.
> /tmp/pun/H-i686-pc-linux-gnu/powerpc-eabi/bin/ld: warning: cannot
> find entry symbol _start; defaulting to 01800074
> /tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x8): undefined
> reference to `__SDATA_START__'
> /tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0xc): undefined
> reference to `__SBSS_END__'

 Please browse the message archive of this list, at least the recent ones like
the following:

>> I acn get as far as the test stage of the build then get an error message
>> about the newly built compiler not producing execututables.
>
> Please explain which kind of system you think the 'mipsel-r3000-elfl' to
> be ?  Ok, a R3000-compatible CPU and little-endian ELF object format but
> what is the opsys or the I/O-structure in your board ?  Where does your
> 'Hello World' write the message? And what is the memory layout for your
> executables?
>
>  When you have these things clear, you perhaps will find the glue libraries
> for the supported MIPS-boards, select someone of them for the extra one for
> linking, besides only the 'libc.a', then select the linker script for the
> same board and get the memory layout from it. When everything is set for
> a known target, then the compiler can produce executables for it. The default
> settings are in the 'specs' file ('.../gcc/specs' during the build) and the
> essential specs are the '*link:' and the '*lib:'. To the first you add the
> linker script name and to the second the glue library name. Something like:
>
> ----------------------------- clip ----------------------------------------
> *link:
> %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} %{bestGnum} %{shared}
> %{non_shared} %(linker_endian_spec) -T idt.ld%s
>
> *lib:
> -lc -lidt -lc
>
> *libgcc:
> ----------------------------- clip ----------------------------------------

 Some targets are fully defined, some are not. The m68k-*, mips*-* and powerpc-eabi
aren't, so you must use the stuff for some real target board for them.

 You can link programs only for a known target.

Cheers, Kai


------
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] 4+ messages in thread

* How to make a gcc for MPC860 ?
@ 2000-09-23  3:20 沈惠如
  0 siblings, 0 replies; 4+ messages in thread
From: 沈惠如 @ 2000-09-23  3:20 UTC (permalink / raw)
  To: crossgcc

Hi

I try to make a gcc comliler for a motorola MPC860 CPU in a Linux host.
I follow every step in http://sources.redhat.com/ecos/tools/linux-powerpc-eabi.html

First, I build the GNU Binary Utilities following the steps list in this web page
note: I have untar the binutils 2.10 to /src/binutils/binutils-2.10 exactly follow the instructions in the web page

mkdir -p /tmp/build/binutils
cd /tmp/build/binutils
/src/binutils/binutils-2.10/configure --target=powerpc-eabi \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
-v 2>&1 | tee configure.out 

and then

make -w all install 2>&1 | tee make.out 

I think I make it, because there are files produced in 
/tools/H-i686-pc-linux-gnu/
there are three sub directories
bin/ lib/ powerpc-eabi/

Now, I try to make a gcc fot 860

PATH=/tools/H-i686-pc-linux-gnu/bin:$PATH ; export PATH    (for sh, ksh and bash users)
mkdir -p /tmp/build/gcc
cd /tmp/build/gcc
 /src/gcc/gcc-2.95.2/configure --target=powerpc-eabi \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
--with-gnu-as --with-gnu-ld --with-newlib \
-v 2>&1 | tee configure.out 

>>>>> BUT, the configuration is not end up correctly !!!!!!!!
It end up with an error message:
configuration rs6000-ibm-eabi not supported

So I try to fix this problem by add the option --with-cpu=860

 /src/gcc/gcc-2.95.2/configure --target=powerpc-eabi \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
--with-gnu-as --with-gnu-ld --with-newlib \
--with-cpu=860 \     <-----------------------------add this
-v 2>&1 | tee configure.out 

the error message " configuration rs6000-ibm-eabi not supported" is gone
But, I still fail
Part of the configure.out are list bellow
......................................................................................
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... no
sed: can't read /src/gcc/gcc-2.95.2/gcc/intl/po2tbl.sed.in: No such file or dir
/src/gcc/gcc-2.95.2/gcc/configure: /src/gcc/gcc-2.95.2/gcc/po/POTFILES.in: No such file or directory <----- ERROR, I guess
checking assembler alignment features...
checking assembler subsection support...
checking assembler instructions...
Using the Haifa scheduler.
Links are now set up to build a cross-compiler for powerpc-unknown-eabi
  from i686-pc-linux-gnu.
creating ./config.status
creating Makefile
creating intl/Makefile
sed: can't read /src/gcc/gcc-2.95.2/gcc/intl/Makefile.in: No such file or directory <----- ERROR, I guess
creating po/Makefile.in
sed: can't read /src/gcc/gcc-2.95.2/gcc/po/Makefile.in.in: No such file or diretory <----- ERROR, I guess
creating fixinc/Makefile
sed: can't read /src/gcc/gcc-2.95.2/gcc/fixinc/Makefile.in: No such file or dirtory <----- ERROR, I guess
creating cp/Makefile
creating auto-host.h
auto-host.h is unchanged
linking /src/gcc/gcc-2.95.2/gcc/intl/libgettext.h to intl/libintl.h
configure: error: /src/gcc/gcc-2.95.2/gcc/intl/libgettext.h: File not found
pwd
Configure in /tmp/build/gcc/gcc failed, exiting.
rm -f Makefile.tem /tmp/cONf486.com /tmp/cONf486.tgt /tmp/cONf486.hst /tmp/cONf
...........................................................................................................................................................................
please, someone can help me ???

Thanks a lot in advance !!!! 

Ruby, e-mail :890436@ccl.itri.org.tw

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

end of thread, other threads:[~2000-10-08  3:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-26 23:08 RE:How to make a gcc for MPC860 ? 沈惠如
2000-10-07 19:15 ` Pun H. Shiu
2000-10-08  3:34   ` How " Kai Ruottu
  -- strict thread matches above, loose matches on Subject: below --
2000-09-23  3:20 沈惠如

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