Article View: gnu.gcc.help
Article #53100GCC2.0 sun4 -> sun3-sunos4.1.1 cross compile problems
From: Ryan Harlicker
Date: Wed, 18 Mar 1992 02:29
Date: Wed, 18 Mar 1992 02:29
98 lines
5903 bytes
5903 bytes
Hi,
I've been having some problems getting a Sun4 system to compile a cross
compiler for a sun3 machine. This is the config and compiler output.
The interesting stuff is at the end. This is the result of several
tries so don't worry about how short this list is.
Any suggestions gratefully accepted,
Ryan Harlicker
harlick@plains.nodak.edu
Script started on Tue Mar 17 20:11:20 1992
/compile
zsh: correct `configure' to `continue' [nyae]? n
zsh: command not found: configure
/tmp/GCC-2.0
/compile
Linked `config.h' to `/tmp/GCC-2.0/compile/config/xm-sparc.h'.
Linked `tm.h' to `/tmp/GCC-2.0/compile/config/sun3.h'.
Linked `md' to `/tmp/GCC-2.0/compile/config/m68k.md'.
Linked `aux-output.c' to `/tmp/GCC-2.0/compile/config/m68k.c'.
Linked `tconfig.h' to `/tmp/GCC-2.0/compile/config/xm-m68k.h'.
Created `Makefile'.
Links are now set up for host sun4 and target sun3-sunos4.1.1.
Script started on Tue Mar 17 20:20:37 1992
make: Fatal error: No arguments to build
/tmp/GCC-2.0
if [ -d /tmp/GCC-2.0//usr/local/lib ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/lib ; fi
if [ -d /tmp/GCC-2.0//usr/local/lib/gcc ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/lib/gcc ; fi
if [ -d /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1 ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1 ; fi
if [ -d /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c` ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c` ; fi
if [ -d /tmp/GCC-2.0//usr/local/bin ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/bin ; fi
parent=`echo /tmp/GCC-2.0//usr/local/man/man1|sed -e 's@/[^/]*$@@'`; \
if [ -d $parent ] ; then true ; else mkdir $parent ; fi
if [ -d /tmp/GCC-2.0//usr/local/man/man1 ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/man/man1 ; fi
if [ -f gcc-cross ] ; \
then \
if [ -d /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/. ] ; \
then \
for file in as ld ar ranlib; do \
if [ -f /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/$file ] ; \
then true; \
else \
ln -s /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/bin/$file /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/$file \
|| (echo "#!/bin/sh"; echo /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/bin/$file "$@") > /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/$file; \
fi; \
done; \
for file in /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/lib/*; do \
if [ -f $file ] ; \
then \
if [ -f /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/`basename $file` ] ; \
then true; \
else \
ln -s $file /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/`basename $file` \
|| install -c $file /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/`basename $file`; \
fi; \
else true; \
fi; \
done; \
if [ -d /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/include/. ] ; then \
ln -s /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/include /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/sys-include \
|| (if [ -d /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/sys-include ] ; then true ; else mkdir /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/sys-include ; fi; \
cd /tmp/GCC-2.0//usr/local/sun3-sunos4.1.1/include; tar cf - . | (cd /tmp/GCC-2.0//usr/local/lib/gcc/sun3-sunos4.1.1/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' /tmp/GCC-2.0/compile/version.c`/sys-include; tar xpf -)); \
else true; fi; \
else true; \
fi; \
else true; \
fi;
echo "__foo () {}" > dummy.c
./gcc -DCROSS_COMPILE -g -B./ -c dummy.c
as: error: unknown option 'm'
as: error: unknown option 'c'
as: error: unknown option '6'
as: error: unknown option '8'
as: error: unknown option '0'
as: error: unknown option '2'
as: error: unknown option '0'
usage: as [-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 `libgcc1.null'
script done on Tue Mar 17 20:21:49 1992
--
/------------------------------------------------------/
/----------------- Ryan Scott Harlicker ---------------/
/----------------harlick@plains.nodak.edu--------------/
/------------------------------------------------------/
Technical Details
Message-ID:
<16045@plains.NoDak.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!plains!harlickReferences:
<9203070519.AA25407@silence.princeton.nj.us> <9203070815.AA26886@zerkalo.harvard.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f397c0a3e96707c9 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-03-17 18:39:37 PST Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!plains!harlick From: harlick@plains.NoDak.edu (Ryan Harlicker) Newsgroups: gnu.gcc.help Subject: GCC2.0 sun4 -> sun3-sunos4.1.1 cross compile problems Message-ID: <16045@plains.NoDak.edu> Date: 18 Mar 92 02:29:57 GMT Article-I.D.: plains.16045 References: <9203070519.AA25407@silence.princeton.nj.us> <9203070815.AA26886@zerkalo.harvard.edu> Distribution: gnu Organization: North Dakota State University Lines: 98