[coyotos-dev] Build error: syscall.o missing

Hunt Lin huntxp at gmail.com
Tue Jun 12 19:31:56 EDT 2007


Hi,

I re-sync and make, but still error:

make[2]: Entering directory `/opt/WORK/coyotos/src/sys/arch/i386/kernel'
/usr/bin/ccache /coyotos/host/bin/i386-unknown-coyotos-gcc
-Wl,-TBUILD/ldscript  -nostdlib -o BUILD/coyotos BUILD/boot.o
BUILD/interrupt.o BUILD/GDT.o BUILD/TSS.o BUILD/IRQ.o BUILD/PIC.o
BUILD/PageFault.o BUILD/HardClock.o BUILD/init.o BUILD/cpu.o
BUILD/cpuscan.o BUILD/console.o BUILD/vm.o BUILD/dispatch.o
BUILD/acpi.o BUILD/Object.o BUILD/hwmap.o BUILD/transmap.o
BUILD/kern_main.o BUILD/kern_ctype.o BUILD/kern_string.o
BUILD/kern_pstring.o BUILD/kern_printf.o BUILD/kern_mutex.o
BUILD/kern_Depend.o BUILD/kern_ObHash.o BUILD/kern_PhysMem.o
BUILD/kern_Queue.o BUILD/kern_Sched.o BUILD/kern_RevMap.o
BUILD/kern_CPU.o BUILD/kern_Capability.o BUILD/kern_MemWalk.o
BUILD/kern_Cache.o BUILD/kern_Process.o BUILD/kern_ObStore.o
BUILD/kern_Invoke.o BUILD/kern_qsort.o BUILD/kern_malloc.o
BUILD/cap_AddressSpace.o BUILD/cap_AppInt.o BUILD/cap_CapBits.o
BUILD/cap_Cap.o BUILD/cap_CapPage.o BUILD/cap_Checkpoint.o
BUILD/cap_Discrim.o BUILD/cap_Endpoint.o BUILD/cap_Entry.o
BUILD/cap_GPT.o BUILD/cap_IRQCtl.o BUILD/cap_LocalWindow.o
BUILD/cap_Memory.o BUILD/cap_Null.o BUILD/cap_ObStore.o
BUILD/cap_Page.o BUILD/cap_PinCtl.o BUILD/cap_Process.o
BUILD/cap_Range.o BUILD/cap_SchedCtl.o BUILD/cap_Schedule.o
BUILD/cap_Sleep.o BUILD/cap_Window.o -g -lgcc
BUILD/kern_Capability.o: In function `get_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
undefined reference to `__impl_get_pw'
BUILD/kern_Process.o: In function `set_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:100:
undefined reference to `__impl_set_pw'
BUILD/kern_Process.o: In function `get_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
undefined reference to `__impl_get_pw'
BUILD/cap_CapBits.o: In function `get_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
undefined reference to `__impl_get_pw'
BUILD/cap_CapPage.o: In function `get_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
undefined reference to `__impl_get_pw'
BUILD/cap_Discrim.o: In function `get_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
undefined reference to `__impl_get_pw'
BUILD/cap_LocalWindow.o: In function `get_pw':
/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
undefined reference to `__impl_get_pw'
BUILD/cap_Memory.o:/opt/WORK/coyotos/src/sys/arch/i386/kernel/./target-hal/syscall.h:72:
more undefined references to `__impl_get_pw' follow
collect2: ld returned 1 exit status
make[2]: *** [BUILD/coyotos] error 1
make[2]: Leaving directory `/opt/WORK/coyotos/src/sys/arch/i386/kernel'
*** RECURSIVE BUILD STOPS ***
make[1]: *** [recurse] error 1
make[1]: Leaving directory `/opt/WORK/coyotos/src/sys'
make: *** [package] error 2

So I think __impl_get_pw/__impl_set_pw must be defined in somewhere
maybe syscall.c.

How about fix?

hUNt0

2007/6/12, Jonathan S. Shapiro <shap at eros-os.com>:
> I apologize. I deleted syscall.c several days ago -- it was empty. Since
> the .o remained in my BUILD/ directory I didn't catch the Makefile
> mistake. We would have noticed sooner, but we have been writing contract
> proposals for the last several days.
>
> The correct fix is to delete the BUILD/syscall.o line from the list of
> OBJECTS in Makefile.
>
> The procedures in target-hal/syscall.h are required. Those should not be
> commented out.
>
> This is now fixed, and if you sync again you should get the fixes.
>
> Thanks for letting us know about it!
>
>
> shap
>
> On Tue, 2007-06-12 at 11:25 +0800, Hunt Lin wrote:
> > Hi,
> >
> > Recently I re-sync my coyotos source code, then re-make, I got the
> > following errors:
> >
> > /usr/bin/ccache /coyotos/host/bin/i386-unknown-coyotos-gcc
> > -Wl,-TBUILD/ldscript  -nostdlib -o BUILD/coyotos BUILD/boot.o
> > BUILD/interrupt.o BUILD/GDT.o BUILD/TSS.o BUILD/IRQ.o BUILD/PIC.o
> > BUILD/PageFault.o BUILD/HardClock.o BUILD/init.o BUILD/cpu.o
> > BUILD/cpuscan.o BUILD/console.o BUILD/vm.o BUILD/dispatch.o
> > BUILD/syscall.o BUILD/acpi.o BUILD/Object.o BUILD/hwmap.o
> > BUILD/transmap.o BUILD/kern_main.o BUILD/kern_ctype.o
> > BUILD/kern_string.o BUILD/kern_pstring.o BUILD/kern_printf.o
> > BUILD/kern_mutex.o BUILD/kern_Depend.o BUILD/kern_ObHash.o
> > BUILD/kern_PhysMem.o BUILD/kern_Queue.o BUILD/kern_Sched.o
> > BUILD/kern_RevMap.o BUILD/kern_CPU.o BUILD/kern_Capability.o
> > BUILD/kern_MemWalk.o BUILD/kern_Cache.o BUILD/kern_Process.o
> > BUILD/kern_ObStore.o BUILD/kern_Invoke.o BUILD/kern_qsort.o
> > BUILD/kern_malloc.o BUILD/cap_AddressSpace.o BUILD/cap_AppInt.o
> > BUILD/cap_CapBits.o BUILD/cap_Cap.o BUILD/cap_CapPage.o
> > BUILD/cap_Checkpoint.o BUILD/cap_Discrim.o BUILD/cap_Endpoint.o
> > BUILD/cap_Entry.o BUILD/cap_GPT.o BUILD/cap_IRQCtl.o
> > BUILD/cap_LocalWindow.o BUILD/cap_Memory.o BUILD/cap_Null.o
> > BUILD/cap_ObStore.o BUILD/cap_Page.o BUILD/cap_PinCtl.o
> > BUILD/cap_Process.o BUILD/cap_Range.o BUILD/cap_SchedCtl.o
> > BUILD/cap_Schedule.o BUILD/cap_Sleep.o BUILD/cap_Window.o -g -lgcc
> > i386-unknown-coyotos-gcc: BUILD/syscall.o: no such file or directory
> > make[4]: *** [BUILD/coyotos] error 1
> > make[4]: Leaving directory
> > `/opt/WORK/coyotos/src/sys/arch/i386/kernel'
> > *** RECURSIVE BUILD STOPS ***
> > make[3]: *** [recurse] error 1
> > make[3]: Leaving directory `/opt/WORK/coyotos/src/sys'
> > *** RECURSIVE BUILD STOPS ***
> > make[2]: *** [recurse] error 1
> > make[2]: Leaving directory `/opt/WORK/coyotos/src'
> > make[1]: *** [packages] error 2
> > make[1]: Leaving directory `/opt/WORK/coyotos/src'
> > make: *** [world] error 2
> >
> > I look in the http://www.opencm.org/opencm/~/PUBLIC/coyotos/DEV/sys, I
> > found the different as follows:
> >
> > 378    2007-06-07 18:35:23.297841 GMT    jwadams at eros-os.com
> > 377    2007-06-07 16:27:04.312275 GMT    shap at cs.jhu.edu
> >
> > After I modified the following two file, the building is ok
> > sys/arch/i386/kernel/Makefile (comment syscall.o)
> > sys/arch/i386/kernel/target-hal/syscall.h (comment
> > __impl_set_pw/__impl_get_pw)
> >
> > So I think the syscall.o is missing currently. What about fix? Give me
> > syscall.o ;->
> >
> > hUNt0.
> > _______________________________________________
> > coyotos-dev mailing list
> > coyotos-dev at smtp.coyotos.org
> > http://www.coyotos.org/mailman/listinfo/coyotos-dev
>
> _______________________________________________
> coyotos-dev mailing list
> coyotos-dev at smtp.coyotos.org
> http://www.coyotos.org/mailman/listinfo/coyotos-dev
>


More information about the coyotos-dev mailing list