glibc-2.3.5 addon for ColdFire trouble using crosstool

Peter Barada peter@the-baradas.com
Wed Apr 27 17:14:00 GMT 2005


>>> m68k-linux/gcc-3.4.3-glibc-2.3.5/lib/gcc/m68k-linux/3.4.3/../../../../m68k-linux/sys-include/sys/syscall.h:32:27: bits/syscall.h: No such file or directory
>>
>>Hrmph.  Dumb question: is there a coldfire-linux directory
>>somewhere with the missing file in it?

I think I figured it out.

With the make-install-lib-all.patch applied(and detected by
crosstool.sh), you change the build-glibc install rule to be:

GLIBC_INITIAL_INSTALL_RULE="install-lib-all install-headers"

instead of the more inclusive:

GLIBC_INITIAL_INSTALL_RULE=install

<bits/syscall.h> is added to the install-other target list by
glibc-2.3.5/misc/Makefile:

install-others += $(inst_includedir)/bits/syscall.h

And does not get installed unless you invoke 'install-other' as a target
to glibc's Makefile.

After I had my toolchian(with the missing <bits/syscall.h> I cd'd into
build-glibc, and with the toolchain in the path and executed: 

[peter@thunk build-glibc]$ make install_root=/opt/logicpd/ColdFire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux prefix= install-others

which ended up installing <bits/syscall.h> (among other stuff).

Now I'm off trying to build my kernel and userland using this.
Hopefully it will work :)

Thanks for all the help.

-- 
Peter Barada
peter@the-baradas.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list