Re: [uClinux-dev] Building m68k-elf

From: Tom Walsh (tom@cyberiansoftware.com)
Date: Fri Jan 19 2001 - 14:54:48 EST


Andrew Kohlsmith wrote:
> 
> I decided I was too anxious to wait...  I reconfigured binutils to use
> standard prefixes and installed.  Then I built gcc.  according to the
> directions you outlined with the exception that I only built the C compiler
> (no objc or c++, the c++ compile gives errors trying to compile the streams
> class).
> 
> After fixing one problem it worked!  (I think)
> 
> I had to create a symlink in /usr/local/m68k-elf/sys-include:
> # ln -s /opt/uClinux/linux/include/asm-m68k asm-m68k
> 
> or else the build would fail because it couldn't find
> asm-m68k/posix-types.h.  (asm/posix-types.h just says to include
> asm-m68k/posix-types.h)
> 
> After that change it compiles but with a lot of __FD_* redefinition warnings
> (__FD_ISSET, __FD_SET, __FD_CLR, __FD_ZERO, etc.).  I installed it and all
> seems okay.
> 
> I must execute /opt/uClinux/gcc-2.95.2/m68k-elf/gcc/xgcc since my system
> compiler is of a different version (2.91.66) and looks for its own version
> of the cross compiler (which it obviously doesn't find) but using that I can

Nope, nope, nope!  I avoided this problem by symlinkings
/usr/local/bin/m68k-elf-gcc to /usr/bin.  There should not be any
confusion between compiliers as the names are different.  I have four
different compilers on my linux box: gcc, arm-gcc, m68k-pic-coff-gcc,
and m68k-elf-gcc ... no problems.

Just a suggestion, don't try to "out-think" the system, wait until you
get a problem, then fix it?  :-)

Regards,

TomW


-- 
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:26 EDT