Getting started on a MPC555

Eddy's user eddy@fericom.net
Fri Aug 8 00:18:00 GMT 2003


Hi, 

I want to use newlib with gcc on a MPC555. I have already configured
gcc, linked and tested applications without a libc and everything works
fine. 

As far as I understand for using newlib I now need to take following
steps (please correct me if I am wrong or missing something): 

1. cd newlib-1.11.0; ./configure --prefix=/usr/local/crossgcc
--host=i686-pc-linux-gnu --target=powerpc-eabi
2. make
3. Link my application with newlib

Then I should be able to use functions sprintf(), strcpy(), memcmp()
which don't do IO.

IO functions contain unresolved symbols to open(),read(),write(), etc.
but since I do not need them the linker will not complain and not
include them in the binary. In order to use them later I would have to
write my own libgloss. Am I correct? 

I have my own startup code that initializes the Controller and calls
main(). Is it OK if it's not call crt0.o? (Is crt0 a special filename or
something?) 

Do I need to call any routines that initialize the library in my startup
code? 

Now here's the actual problem I am having right now: 
When I type make in newlib-1.11.0 I get following error message: 
------------------
[...]
make DO=distclean DODIRS="doc libnosys rs6000 " "CC=powerpc-eabi-gcc
-B/root/newlib-1.11.0/powerpc-eabi/newlib/ -isystem
/root/newlib-1.11.0/powerpc-eabi/newlib/targ-include -isystem
/root/newlib-1.11.0/newlib/libc/include" "CFLAGS=-O2 -g -O2"
"AR=powerpc-eabi-ar" "RANLIB=powerpc-eabi-ranlib" "AR_FLAGS=qc"
"MAKEINFO=makeinfo" "AS=powerpc-eabi-as" "LD=powerpc-eabi-ld"
"CROSS_CFLAGS=" "TARGET_CFLAGS=" "exec_prefix=/usr/local"
"prefix=/usr/local" "tooldir=/usr/local/powerpc-eabi"
"INSTALL=/usr/bin/install -c" "INSTALL_PROGRAM=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644" subdir_do; \
make multi-clean DO=distclean
make[2]: Entering directory `/root/newlib-1.11.0/powerpc-eabi/libgloss'
make[2]: *** No rule to make target `subdir_do'.  Stop.
make[2]: Leaving directory `/root/newlib-1.11.0/powerpc-eabi/libgloss'
make[2]: Entering directory `/root/newlib-1.11.0/powerpc-eabi/libgloss'
make[2]: *** No rule to make target `multi-clean'.  Stop.
make[2]: Leaving directory `/root/newlib-1.11.0/powerpc-eabi/libgloss'
make[1]: *** [distclean] Error 2
make[1]: Leaving directory `/root/newlib-1.11.0/powerpc-eabi/libgloss'
make: *** [powerpc-eabi/libgloss/Makefile] Error 1
------------------

Can you give me a hint what I doing wrong? 


Thanks

Eddy 



More information about the Newlib mailing list