This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't build gcc 3.3.4 Linux to Sun Cross compiler


Hi All

I'm attempting to build a gcc 3.3.4 linux to sun cross compiler.  I've
compiled binutils 2.14 and installed them into my $prefix directory and then
put $prefix/bin at the beginning of my $PATH.

I've attached the errors I've received below.  The last time I saw assembler
errors was when I hadn't put $prefix/bin in my path, but I have done that.
My configure my gcc was:

../gcc-3.3.4/configure --host=$host --target=$target --with-sysroot=$sysroot
 --with-gnu-as --with-gnu-ld --enable-languages=c,c++,objc --disable-shared

where host = i686-pc-linux-gnu
target = sparc-sun-solaris2.9

I'm building the compiler on a RH8 machine using the RH shipped compiler. If
anyone has any tips I'd appreciate them.

Thanks in Advance
Mark

Last section of compile log file:

SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='../../gcc-3.3.4/gcc/mkmap-symver.awk' \
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='../../gcc-3.3.4/gcc/libgcc-std.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='. sparcv9' \
mkinstalldirs='/bin/sh ../../gcc-3.3.4/gcc/mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TM_DEFINES="" \
HEADERS="ansidecl.h  sparc/biarch64.h sparc/sparc.h dbxelf.h elfos.h svr4.h
spar
c/sysv4.h sol2.h sparc/sol2.h sparc/sol2-gld.h sparc/sol2-bi.h
sparc/sol2-gld-bi
.h sparc/sol2-gas-bi.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ../../gcc-3.3.4/gcc/mkconfig.sh tconfig.h
/cdl/apps/.software/linux/gcc-3.3.4-cross/build-gcc/gcc/xgcc -B/cdl/apps/.so
ftwa
re/linux/gcc-3.3.4-cross/build-gcc/gcc/ -B/usr/local/sparc-sun-solaris2.9/bi
n/ -
B/usr/local/sparc-sun-solaris2.9/lib/ -isystem
/usr/local/sparc-sun-solaris2.9/i
nclude  -c -o crt1.o -x assembler-with-cpp
../../gcc-3.3.4/gcc/config/sparc/sol2
-c1.asm
/tmp/ccBOzYmh.s: Assembler messages:
/tmp/ccBOzYmh.s:5: Warning: rest of line ignored; first ignored character is
`!'
/tmp/ccBOzYmh.s:7: Warning: rest of line ignored; first ignored character is
`!'
/tmp/ccBOzYmh.s:8: Warning: rest of line ignored; first ignored character is
`!'
/tmp/ccBOzYmh.s:9: Warning: rest of line ignored; first ignored character is
`!'
/tmp/ccBOzYmh.s:10: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:10: Error: no such instruction: `you can redistribute it
and/or
modify it'
/tmp/ccBOzYmh.s:11: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:12: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:12: Error: no such instruction: `either version 2,or (at
your op
tion)any'
/tmp/ccBOzYmh.s:13: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:14: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:15: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:16: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:17: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:18: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:19: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:20: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:20: Error: no such instruction: `for example,they cover
modifica
tion of the file,and'
/tmp/ccBOzYmh.s:21: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:22: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:23: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:24: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:24: Error: no such instruction: `without even the implied
warran
ty of'
/tmp/ccBOzYmh.s:25: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:26: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:27: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:28: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:29: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:29: Error: no such instruction: `see the file COPYING. If
not,wr
ite to'
/tmp/ccBOzYmh.s:30: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:31: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:32: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:33: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:34: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:35: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:36: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:37: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:38: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:40: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:41: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:42: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:45: Error: unknown pseudo-op: `.proc'
/tmp/ccBOzYmh.s:49: Error: bad register name `%fp!Mark bottom frame pointer'
/tmp/ccBOzYmh.s:50: Error: no such instruction: `ld [%sp+(16 *
4)+0],%l0!argc'
/tmp/ccBOzYmh.s:51: Error: bad register name `%l1!argv'
/tmp/ccBOzYmh.s:53: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:54: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:58: Error: suffix or operands invalid for `sub'
/tmp/ccBOzYmh.s:61: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:62: Error: no such instruction: `orcc %g0,%g1,%g0'
/tmp/ccBOzYmh.s:66: Error: no such instruction: `be .nope'
/tmp/ccBOzYmh.s:68: Error: bad register name `%g1'
/tmp/ccBOzYmh.s:72: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:73: Error: no such instruction: `set _fini,%o0'
/tmp/ccBOzYmh.s:74: Error: too many memory references for `call'
/tmp/ccBOzYmh.s:76: Error: too many memory references for `call'
/tmp/ccBOzYmh.s:79: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:79: Error: no such instruction: `there is no defined way to'
/tmp/ccBOzYmh.s:80: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:81: Error: bad register name `%l0'
/tmp/ccBOzYmh.s:82: Error: bad register name `%l1'
/tmp/ccBOzYmh.s:87: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:88: Error: no such instruction: `sll %l0,2,%o2'
/tmp/ccBOzYmh.s:89: Error: bad register name `%o2'
/tmp/ccBOzYmh.s:90: Error: bad register name `%l1'
/tmp/ccBOzYmh.s:91: Error: no such instruction: `set _environ,%o3'
/tmp/ccBOzYmh.s:92: Error: no such instruction: `st %o2,[%o3]!*_environ'
/tmp/ccBOzYmh.s:93: Error: too many memory references for `call'
/tmp/ccBOzYmh.s:95: Error: too many memory references for `call'
/tmp/ccBOzYmh.s:97: Error: too many memory references for `call'
/tmp/ccBOzYmh.s:99: Warning: rest of line ignored; first ignored character
is `!
'
/tmp/ccBOzYmh.s:101: Error: unrecognized symbol type ""
make[1]: *** [crt1.o] Error 1
make[1]: Leaving directory
`/cdl/apps/.software/linux/gcc-3.3.4-cross/build-gcc/
gcc'
make: *** [all-gcc] Error 2

[mark@locutus build-gcc]$




Mark Cuss, B. Sc.
Real Time Systems Analyst
System Administrator
CDL Systems Ltd
Suite 230
3553 - 31 Street NW
Calgary, AB, Canada

Phone: 403 289 1733 ext 226
Fax: 403 282 1238
www.cdlsystems.com



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