InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Snow Leopard xnu kernel test patch (http://infinitemac.com/showthread.php?t=4227)

pαuℓzurrr. 09-30-2009 01:40 PM

Quote:

Originally Posted by xXrkidXx (Post 36382)
anybody got it fully patched yet? and in kernel form lol?

Not yet ;) I think we might be talking days... Getting close :)

Quote:

Originally Posted by never_mind (Post 36353)
Morning ;)

I get these errors now:

Code:

xnu-1456.1.26/osfmk/i386/i386_init.c: In function ‘slave_tsc_init’:
/xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: implicit declaration of function ‘abs’
/xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: nested extern declaration of ‘abs’
/xnu-1456.1.26/osfmk/i386/i386_init.c: In function ‘slave_tsc_run_trials’:
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: error: ‘TSCSYNC_NUM_TRIALS’ undeclared (first use in this function)
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: error: (Each undeclared identifier is reported only once
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: error: for each function it appears in.)
/xnu-1456.1.26/osfmk/i386/i386_init.c:706: error: called object ‘tscsync’ is not a function
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: warning: unused variable ‘deltas’

That stuff it errors on is defined in osfmk/i386/mp.c, but I don't get how this should be available in osfmk/i386/i386_init.c. Does it need to be compiled before i386_init.c (i guess its a global define or so??)

Any thoughts?

Got the same error now. Can you tell me how you solved it? :)

Also have a error in cpuid_legacy.h32:1 error: "KB" redefined...

aryajuanda 09-30-2009 02:31 PM

my latest try :

http://pastebin.com/mdd2a7ad

Code:

CC phys.o
cc1: warnings being treated as errors
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c: In function ‘_absolutetime_to_microtime’:
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c:143: warning: ‘return’ with no value, in function returning non-void
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c:163: warning: this function may return with or without a value
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c: In function ‘rtc_clock_stepping’:
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c:523: warning: implicit conversion shortens 64-bit value into a 32-bit value
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c: In function ‘rtc_clock_stepped’:
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c:554: warning: implicit conversion shortens 64-bit value into a 32-bit value
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c: In function ‘rtc_set_timescale’:CC ip6_forward.o

/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c:642: warning: implicit conversion shortens 64-bit value into a 32-bit value
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/rtclock.c:643: warning: implicit conversion shortens 64-bit value into a 32-bit value
make[6]: *** [rtclock.o] Error 1
make[6]: *** Waiting for unfinished jobs....
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c: In function ‘kernel_trap’:
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:829: error: ‘kmod_lock’ undeclared (first use in this function)
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:829: error: (Each undeclared identifier is reported only once
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:829: error: for each function it appears in.)
cc1: warnings being treated as errors
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:831: warning: implicit declaration of function ‘mutex_lock’
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:831: warning: nested extern declaration of ‘mutex_lock’
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:832: warning: implicit declaration of function ‘kmod_lookupbyaddress’
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:832: warning: nested extern declaration of ‘kmod_lookupbyaddress’
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:832: warning: assignment makes pointer from integer without a cast
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:837: warning: implicit declaration of function ‘mutex_unlock’
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/osfmk/i386/trap.c:837: warning: nested extern declaration of ‘mutex_unlock’
make[6]: *** [trap.o] Error 1


xXrkidXx 09-30-2009 08:11 PM

yesss were gettting closer!! I CAN FEEL IT lol! God, i need a copy of OS X, windows is SO slow... that or more RAM :P so are all these messages just errors people are encountering? or is this just a log?

pαuℓzurrr. 10-01-2009 03:38 PM

Code:

/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/start.s:202:junk `(_sse3emu_size)' after expression
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/start.s:207:4294967296 shortened to 0
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/start.s:209:junk `(_master_idt)' after expression
make[6]: *** [start.o] Error 1
make[6]: *** Waiting for unfinished jobs....
cc1: warnings being treated as errors
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c: In function ‘_absolutetime_to_microtime’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c:143: warning: ‘return’ with no value, in function returning non-void
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c:163: warning: this function may return with or without a value
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c: In function ‘rtc_clock_stepping’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c:523: warning: implicit conversion shortens 64-bit value into a 32-bit value
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c: In function ‘rtc_clock_stepped’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c:554: warning: implicit conversion shortens 64-bit value into a 32-bit value
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c: In function ‘rtc_set_timescale’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c:642: warning: implicit conversion shortens 64-bit value into a 32-bit value
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/rtclock.c:643: warning: implicit conversion shortens 64-bit value into a 32-bit value
make[6]: *** [rtclock.o] Error 1
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_osfmk] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

Not sure what to do now? Anyone knows how the fix it? :p

xXrkidXx 10-02-2009 12:40 PM

Anything yet guys? It'd be such a shame to not see a kernel soon... I'm missing the good 'ol days of OS X... Windows is failing miserably

pαuℓzurrr. 10-02-2009 03:53 PM

lol no not yet :p im sure when its ready youll see it everywhere :p

direlime 10-02-2009 04:27 PM

By the looks of it, you guys are getting close. Good luck! :D

maya77 10-03-2009 01:57 AM

Andy,

I'm sure this all will go faster if you have working SL installation.

Please use these instructions and necessary files to install it:
http://rapidshare.com/files/287963888/SL_Stuff.zip
Several solutions failed for me, but this one worked.

Lykich 10-03-2009 06:31 AM

These tools the patch too is necessary ?

bootstrap_cmds-72.tar.gz
dtrace-78.tar.gz
kext_tools-177.tar.gz
cxxfilt-9.tar.gz

My result:
Code:

my-Mac:~ slava$ cd xnu-1456.1.26
my-Mac:xnu-1456.1.26 slava$ make ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS="RELEASE"
MIG clock.h
Generating libkern/version.h from /Users/slava/xnu-1456.1.26/libkern/libkern/version.h.template
MIG clock_priv.h
MIG default_pager_object.h
MIG host_priv.h
MIG host_security.h
MIG ledger.h
MIG lock_set.h
MIG mach_host.h
Generating bsd/sys/syscall.h from /Users/slava/xnu-1456.1.26/bsd/kern/syscalls.master
MIG mach_port.h
MIG mach_vm.h
MIG memory_object_control.h
MIG memory_object_name.h
MIG kextd_mach.h
MIG processor.h
MIG gssd_mach.h
MIG processor_set.h
MIG lockd_mach.h
MIG security.h
MIG task.h
MIG task_access.h
MIG thread_act.h
MIG upl.h
MIG vm_map.h
MIG audit_triggers_server.h
MIG clock_reply_server.h
MIG exc_server.h
MIG mach_exc_server.h
MIG memory_object_server.h
MIG memory_object_default_server.h
MIG notify_server.h
MIG task_access_server.h
Missing }.
make[4]: *** [/Users/slava/xnu-1456.1.26/BUILD/obj//RELEASE_I386/osfmk/RELEASE/Makefile] Error 1
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_osfmk] Error 2
make[1]: *** Waiting for unfinished jobs....
CC WKdmCompress.o
CC WKdmDecompress.o
CC bootargs.o
CC device_tree.o
CC pe_gen.o
CC randomdev.o
CC pe_init.o
CC pe_bootargs.o
CC IOHibernateRestoreKernel.o
CC pe_identify_machine.o
CC smf.o
CC pe_kprintf.o
CC pe_interrupt.o
CC fips_sha1.o
CC comp.o
CC pe_serial.o
LDFILELIST pexpert
CC prng.o
In file included from /Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92,
                from /Users/slava/xnu-1456.1.26/iokit/Kernel/IOLib.cpp:55:
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_begin(kernel_mach_header_t*, const char*)’:
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_limit(kernel_mach_header_t*, const char*)’:
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope
make[6]: *** [IOLib.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
CC yarrowUtils.o
In file included from /Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92,
                from /Users/slava/xnu-1456.1.26/iokit/Kernel/IOHibernateIO.cpp:160:
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_begin(kernel_mach_header_t*, const char*)’:
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_limit(kernel_mach_header_t*, const char*)’:
/Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope
CC sha1mod.o
C++ IOLocks.cpo
make[6]: *** [IOHibernateIO.cpo] Error 1
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_iokit] Error 2
In file included from /Users/slava/xnu-1456.1.26/bsd/sys/sysctl.h:92,
                from /Users/slava/xnu-1456.1.26/bsd/dev/unix_startup.c:49:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast
cc1: warnings being treated as errors
In file included from /Users/slava/xnu-1456.1.26/bsd/sys/sysctl.h:92,
                from /Users/slava/xnu-1456.1.26/bsd/sys/user.h:81,
                from /Users/slava/xnu-1456.1.26/bsd/sys/vfs_context.h:8,
                from /Users/slava/xnu-1456.1.26/bsd/sys/vnode_internal.h:87,
                from /Users/slava/xnu-1456.1.26/bsd/dev/vn/vn.c:104:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast
make[6]: *** [vn.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC unix_startup.o
CC memdev.o
CC shadow.o
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_bsd] Error 2
make: *** [all] Error 2
my-Mac:xnu-1456.1.26 slava$

Code build :
http://www.applesana.es/foro/77/2217...-mac-os-x.html

xXrkidXx 10-03-2009 08:29 PM

woohoo, keep working hard guys! were so close i can taste Snow Kitty! lol