🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52725

GCC version 2.1

#52725
From: Tony Olsson
Date: Wed, 27 May 1992 10:45
57 lines
2829 bytes
Hi,

I'm trying to create a cross-compiler from a sun4 host to a sun3
target both running sunos4.1. I have successfully installed a gcc
version 2.1 for sun4-sunos4.1 with the include files fixed. However
when I tries to install the cross-compiler I get the following message

	set -e; \
	for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2  _lshrdi3 _lshldi3 _ashldi3 _ashrdi3   _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf  _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi  _varargs _eprintf _builtin_new _builtin_New _builtin_del  _bb _shtab _clear_cache _trampoline __main _exit; \
	do \
	  echo ${name}; \
	  ./gcc -O2 -DCROSS_COMPILE   -g -B./ -g1 -I. -I. -I./config -c -DL${name} \
	      ./libgcc2.c -o ${name}.o; \
	  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
	  /usr/local/sun3-sunos4.1/bin/ar rc tmplibgcc2.a ${name}.o; \
	  rm -f ${name}.o; \
	done
	_muldi3
	as: error: unknown option 'm'
	usage: as [-cg[87][89]] [-F[O][if]#] [-O[#]] [-S[C]] [-o objfile] [-L] [-R] [-Q]
	                [-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...] file.s...
	*** Error code 1
	make: Fatal error: Command failed for target `libgcc2.a'

I have done the following commands

	% make distclean
		...
	% configure --host=sun4-sunos4.1 --target=sun3-sunos4.1
	Linked `config.h' to `./config/xm-sparc.h'
	Linked `tm.h' to `./config/sun3.h'
	Linked `md' to `./config/m68k.md'
	Linked `aux-output.c' to `./config/m68k.c'
	Linked `tconfig.h' to `./config/xm-m68k.h'
	^GCreated `Makefile'.
	Links are now set up for host sun4-sunos4.1 and target sun3-sunos4.1.
	% make CC=/usr/local/bin/gcc CFLAGS="-g -O"
		...
	mv tmp-proto.1 protoize.1
	./cpp -traditional -DUNPRO ./proto-man \
	        | grep -v '^#' \
	                | awk 'NF > 0 {print}' > tmp-unproto.1
	mv tmp-unproto.1 unprotoize.1
	cp gcc gcc-cross
	% make install

All commands seems to be successfully executed except the last one
which gives the error message above. 

Thanks for ANY help!

-- Tony

<<< Tony Olsson, SoftLab ab	Phone : +46 13 21 24 70			>>>
<<< Teknikringen 14		Fax   : +46 13 21 33 14			>>>
<<< S-583 30 Linkoping		Email : tony@softlab.se			>>>
<<< SWEDEN			UUCP  : uunet!mcsun!seunet!heffa!tony	>>>
Technical Details
Message-ID: <9205270645.AA00596@softlab.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!softlab.SE!tony

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e0ab15a3dba52983,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-05-27 13:19:16 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!softlab.SE!tony
From: tony@softlab.SE (Tony Olsson)
Newsgroups: gnu.gcc.help
Subject: GCC version 2.1
Message-ID: <9205270645.AA00596@softlab.se>
Date: 27 May 92 10:45:37 GMT
Sender: gnulists@ai.mit.edu
Reply-To: tony@softlab.se
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 57