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


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

gcc 2.7.0 cross to m68k-unknown-aout


Hello.. I recently joined this list and have a question about configuring
GCC 2.7.0 as a cross compiler.  The target is an old 3B1 which has a M68010
inside.  There is no more UNIX; it's used for an OS class at CSU Sacramento
(California) programming `on the bare metal'. I've built (mega manual
tweaking) GCC 1.39 way back when so the system works.  I'm creating an 
install script to automate the whole build process.

Once GCC2 is installed, I'd like to require minimal options that _must_ be
passed in.  Using GCC1, I always specify the project's include directory
and always specify the directory where crt0.o is located.  Could the answer
to my questions below be to build my own "config/mh-spede.cf" file?  

I used this line below to configure the cross GCC which is compiled with
a normal (non-cross) GCC 2.7.0 compiler (host is Solaris 2.5/Sparc).

% ./configure ${thisHost} --target=m68k-unknown-aout \
   --prefix=/usr/local/spede/gcc68 --program-prefix=68- --nfp \
   --enable-targets=m68k-aout --with-gnu-as --with-gnu-ld


*** Compile Questions:
I'm curious if the default is really my 68010 without a math coproc.
I see these defines to cpp using the -v option:
	-D__HAVE_68881__ -Dmc68020 -D__mc68020__ -D__mc68020
I infer that -msoft-float isn't being passed around.
Under "*predefines" in my specs file I've made it to:
    	-Dmc68000 -msoft-float
Is this sufficient?  When doing a "bare" system, --nfp doens't have
much of an effect.

How can I always include a specific include file.

Also, `genmultilib' wants to build the M68020+M68881 library.  But I
have only (always) a M68010.  How to I tell the Makefile not to worry?


*** Link Question:
When I link the crt0.o file doesn't have a path spec in front of it.
Note I haven't installed crt0.o, so there really is nothing to find
just yet.

	$ 68-gcc -v -o dummy -g    dummy.o  
	Reading specs from 
/usr/local/spede/gcc68/lib/gcc-lib/m68k-unknown-aout/2.7.0/specs
	gcc version 2.7.0
	 /usr/local/spede/gcc68/m68k-unknown-aout/bin/ld -o dummy crt0.o \
	 -L/usr/local/spede/gcc68/lib/gcc-lib/m68k-unknown-aout/2.7.0 \
	 -L/usr/local/spede/gcc68/m68k-unknown-aout/lib dummy.o -lgcc -lg -lc 
-lgcc
	/usr/local/spede/gcc68/m68k-unknown-aout/bin/ld: cannot open crt0.o: No 
such file or directory
	$ 

How do I insert a path for crt0.o ?


This got long... Thanks for your time.

----------------------------------------------------------
 #define  POSIX_ME_HARDER  1
 brian witt          //    aleks@spoda.gentoo.com