[uCsimm] M68K gcc build woes...

From: Tom Walsh (tom@cyberiansoftware.com)
Date: Fri Jul 28 2000 - 19:34:59 EDT


        This is my first go-around on building gcc as a cross-compiler ... for
any target (other than X86 :). I got the uClinuxgcc-kit-160899 tarball
from the uClinux.org site, the gcc- and binutils-2.9.1 sources.
Untarred the kit, placed the gcc + binutils tarballs into the
/uclinuxgcc-kit-160899 dir. Removed the old gcc & binutils with rpm,
these were the m68k-coff-gcc, m68k-coff-binutils, m68k-pic-coff-gcc and
m68k-pic-coff-binutils packages (deleting old binaries from the
system). Next I edited the Makefile within the kit to have the
INSTALLDIR pointed to /opt/uClinux, then did a make. Everything seems
to proceed fine with no apparent errors. After the compiles, I made my
entry of '/opt/uClinux/lib' into /etc/ld.so.conf, then ran ldconfig.
Also symlinked the binaries from /opt/uClinux/bin from within /usr/bin
so these were found in the PATH.

        The kernel compiles and runs without apparent problems, the kernel used
the prior romdisk.img. BUT, when I do a 'make clean' on the uC-src's,
then a make, I get endless amounts of warnings complaining:

 make -C src
 make[1]: Entering directory `/home/opt/ez328simm-1pre7/linux/src'
 for i in libns agetty httpd init inetd ping telnetd sh mount pppd tty
boottools levee fileutils shutils sysutils ifattach ipfwadm ; do make -C
$i; done
 make[2]: Entering directory `/home/opt/ez328simm-1pre7/linux/src/libns'
 m68k-pic-coff-gcc -O2 -fomit-frame-pointer -I../include -DL_writeall
serial.c -c -o writeall.o
 In file included from /opt/uClinux/m68k-pic-coff/include/sys/types.h:4,
                  from /opt/uClinux/m68k-pic-coff/include/stdio.h:6,
                  from serial.c:12:
 /opt/uClinux/m68k-pic-coff/include/gnu/types.h:133: warning:
`__FD_SETSIZE' redefined
 /opt/uClinux/m68k-pic-coff/include/linux/posix_types.h:33: warning:
this is the location of the previous definition
 /opt/uClinux/m68k-pic-coff/include/gnu/types.h:136: warning:
`__NFDBITS' redefined
 /opt/uClinux/m68k-pic-coff/include/linux/posix_types.h:30: warning:
this is the location of the previous definition

        Then it finishes out with another error (clue?):

 make[2]: Leaving directory
 cp `find -name \*.coff | sed -e s/.coff//` bin
 cp: missing destination file
 Try `cp --help' for more information.
 make[1]: *** [all] Error 1
 make[1]: Leaving directory `/home/opt/ez328simm-1pre7/linux/src'
 make: *** [bin] Error 2


        More info: I also tried to install the entire development cold, removed
everything, built the gcc & binutils, then installed the rpms (sans the
gcc & binutils packages) and I still have the same problems.

        When I check the individual src directories, I can see no *.coff
files. I don't have any more ideas? I had hoped to build the
gcc- source up to the uClinux patch level so that I could apply
the PIC32 patches. Anyone have suggestions as to what is going wrong
with the build?



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 ucsimm@uclinux.com list server http://www.uClinux.com/

This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:37 EST