On Tue, Feb 26, 2008 at 9:47 AM, John Sonnenschein <johnsonnenschein at gmail.com> wrote: > On Tue, Feb 19, 2008 at 8:06 AM, Tom Riddle <rarebitusa at yahoo.com> wrote: > > I don't want to give anyone the wrong impression here, this is essentially > all of Guy's work over the past 3 months that I have merged into the projects > repo. It is up to date now. > > > > John could you please give it a test run build? Thanks > > > > Busy week. > > Something about building genassym is broken, it calls > /opt/onbld/bin/i386/cw instead of the ppc version it should. My quick > hack to get that error fixed was to enter usr/src/uts/chrp/genassym > and give the failed command with proper arguments, ie: > > the incorrect: > /opt/onbld/bin/i386/cw _cc -D_KERNEL -D_SYSCALL32 -D_DDI_STRICT -Dchrp > -D_MACHDEP -DC2_AUDIT -_gcc=-fno-eliminate-unused-debug-symbols > -_gcc=-fno-eliminate-unused-debug-types -I../../chrp -I../../ppc -Y > I,../../common \ > -I/usr/include -U__powerpc -o debug32/genassym > ../../chrp/ml/genassym.c mod_structs.s > > Becomes: > > /opt/onbld/bin/ppc/cw _cc -D_KERNEL -D_SYSCALL32 -D_DDI_STRICT -Dchrp > -D_MACHDEP -DC2_AUDIT -_gcc=-fno-eliminate-unused-debug-symbols > -_gcc=-fno-eliminate-unused-debug-types -I../../chrp -I../../ppc -Y > I,../../common \ > -I/usr/include -U__powerpc -o debug32/genassym > ../../chrp/ml/genassym.c mod_structs.s > > subtle difference, but the latter works, the former doesn't. > > also, usr/src/uts/ppc/Makefile.files contains reference to a > test_fork.o, which does not exist ( anymore? ), commented it out. It > seems to export these symbols, because they broke: > > Undefined first referenced > symbol in file > unit_test_level1 ./debug32/unix.o > unit_test_level2 ./debug32/unix.o > fast_trap64 ./debug32/unix.o > fast_trap32 ./debug32/unix.o > set_dabr ./debug32/unix.o > page_compare ./debug32/unix.o > > > > ( and the aforementioned requirement that one set the environment > variable LD_LIBRARY_PATH=/opt/onbld/lib:$LD_LIBRARY_PATH was needed as > well) >
Okay, so it appears just simply touch(1)-ing usr/src/uts/ppc/test/test_fork.c is sufficient to get a clean build. -- PGP Public Key 0x437AF1A1 Available on hkp://pgp.mit.edu