This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to test win32->PowerPC(860) cross complier


Hi all,

After installing the cygwin of following version:
*************************
$ uname -a
CYGWIN_NT-4.0 MOSA-MOB 1.3.2(0.39/3/2) 2001-05-20
23:28 i686 unknown
****************************
I have built and installed the following:

binutils-2.11.2.tar.gz
gcc-2.95.3.tar.gz
newlib-1.9.0.tar.gz

and as a resutl of this I got the following files
under
/usr/local/powerpc-unknown-eabi/bin :
*********************************
total 8597
-rwxr-xr-x    2 Administ None      1150092 Sep  2
12:08 ar.exe
-rwxr-xr-x    2 Administ None      1714881 Sep  2
12:09 as.exe
-rw-r--r--    1 Administ None            0 Sep  2
2001 files.txt
-rwxr-xr-x    1 Administ None       190088 Sep  2
12:37 gcc.exe
-rwxr-xr-x    2 Administ None      1701451 Sep  2
12:09 ld.exe
-rwxr-xr-x    2 Administ None      1252422 Sep  2
12:08 nm.exe
-rwxr-xr-x    2 Administ None      1150604 Sep  2
12:08 ranlib.exe
-rwxr-xr-x    2 Administ None      1640233 Sep  2
12:08 strip.exe
*******************************************************
Now I want the cross compiler to produce code for
powerPC860.

I have built compiler for powerpc-unknown-eabi.
First, I don,t know how to tell the gcc to produce
code for powerPC860.

If I try to compile a simple hello world application

I get the following error message:

$ gcc.exe test.c -o hello.elf 2>&1 | tee hello.log

**************************************
/usr/local/powerpc-unknown-eabi/bin/ld: warning:
cannot find entry symbol _start; defaulting to
01800074
/cygdrive/c/TEMP/ccR6SUgD.o: In function `main':
/cygdrive/c/TEMP/ccR6SUgD.o(.text+0x24): undefined
reference to `printf'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi.o)(.got2+0x8):

undefined reference to `__SDATA_START__'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi.o)(.got2+0xc):

undefined reference to `__SBSS_END__'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi.o)(.got2+0x14):

undefined reference to `__SDATA2_START__'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi.o)(.got2+0x18):

undefined reference to `__SBSS2_END__'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi-ctors.o):

In function `__do_global_ctors':
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0x1e):
undefined reference to `__CTOR_END__'
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0x26):
undefined reference to `__CTOR_LIST__'
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0x2a):
undefined reference to `__CTOR_LIST__'
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0x2e):
undefined reference to `__CTOR_END__'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi-ctors.o):

In function `__do_global_dtors':
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0xae):
undefined reference to `__DTOR_LIST__'
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0xb6):
undefined reference to `__DTOR_END__'
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0xba):
undefined reference to `__DTOR_END__'
/source/build/ppcgcc/gcc/eabi-ctors.c(.text+0xbe):
undefined reference to `__DTOR_LIST__'
/usr/local/lib/gcc-lib/powerpc-unknown-eabi/2.95.3/libgcc.a(eabi-ctors.o):

In function `__do_global_ctors':
/source/build/ppcgcc/gcc/eabi-ctors.c(.sdata+0x0):
undefined reference to `__init'
/source/build/ppcgcc/gcc/eabi-ctors.c(.sdata+0x4):
undefined reference to `__fini'
collect2: ld returned 1 exit status
************************************************

If I try:
$ gcc.exe test.c -o -mcpu=860 hello.elf 2>&1 | tee
hello.log
gcc.exe: hello.elf: No such file or directory

As you can see I have tried a number of combination
but not succeede.

Any kind of help in this regard

thanks in advance

best regards

/Mohammad




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]