Re: Building the 10.6.4 Kernel
Re: Building the 10.6.4 Kernel
- Subject: Re: Building the 10.6.4 Kernel
- From: Alexander von Below <email@hidden>
- Date: Sat, 11 Sep 2010 02:13:27 +0200
Thanks for your reply.
However, I have no clue why the makefile thiks it should use llvm-c
The error occurs even if I pass gcc-4.0 as the value for CC:
% make CC=/usr/bin/gcc-4.0
=========== make all for libstuff =============
/usr/bin/gcc-4.0 -std=c99 -O -DLTO_SUPPORT -g -I../../include -Wall -fno-builtin-round -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -static -c \
-I/Developer/usr/local/include \
-MD -dependency-file ./lto.d \
-o ./lto.o ../lto.c
../lto.c:8:24: error: llvm-c/lto.h: No such file or directory
Could anyone shed light on this?
xcode-select points to /Developer, containing the current stable release of Xcode (3.2.4)
Thanks
Alex
Am 11.09.2010 um 00:30 schrieb Terry Lambert:
> On Sep 10, 2010, at 3:03 PM, Alexander von Below wrote:
>> Hello List,
>>
>> Search seems broken for the archive, so I am sorry if this is a FAQ...
>>
>> I am trying to build a Darwin Kernel (using the 10.6.4 source), and I am using this page as a guide:
>>
>> http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KernelProgramming/build/build.html
>>
>> My first problems are:
>>
>> * Libstreams does no longer seem to be part of 10.6.4. Is it no longer needed?
>>
>> * Compiling cctools fails:
>>
>> ../lto.c:8:24: error: llvm-c/lto.h: No such file or directory
>> (and many more)
>>
>> Is there any place where I can find more hints on building my own?
>
> 10.6.4 is supposed to be compiled with gcc, not with llvm. You are using the wrong compiler because you have installed a newer XCode, and haven't specified gcc-4.2 should be used.
>
> I can't say about libstreams off the top of my head, but none of my kernels have ever linked against anything outside of xnu or the parts that came with the tar ball you use to get the Makefile working.
>
> -- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden