Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xnu-{114,115} compile problems?



Umesh,

That was indeed the problem; thanks! For your reference, it was necessary
to change "-mcpu=750" to "-mcpu=604". Eliminating "-fschedule-insns" alone
was not enough...

Antonio


On 1/28/01 3:25 PM, "email@hidden"
<email@hidden> wrote:

> On Friday, January 26, 2001, at 09:17 AM, "Antonio, Noriko, and Maria
> Lagana" <email@hidden> wrote:
>
>> I tried to compile xnu-114-4, xnu-115-2, and xnu-115-4-2 in OS X PB (2E14)
>> with the latest developer tools (the ones posted on 11/30/2000) and the
>> libs
>> from cctools and headers of libstreams that were posted on Darwinfo.org on
>> 12/12/2000. In each case, the compile fails with the error shown below:
>>
>> /Users/lagana/Development/cvs/xnu/xnu-{version}/osfmk/vm/vm_fault.c:1860:
>> internal error--insn does not satisfy its constraints:
>> (insn 7410 697 7411 (set (reg:SI 0 r0)
>> (high:SI (const:SI (plus:SI (symbol_ref:SI ("vm_stat"))
>> (const_int 16 [0x10]))))) 418 {elf_high} (nil)
>> (nil))
>> make[6]: *** [vm_fault.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] Error 2
>> make[1]: *** [build_all] Error 2
>> make: *** [all] Error 2
>>
>> xnu-113-7 and earlier versions compile fine so I don't think that my
>> developer tools are broken.
>>
>> Has anybody succeeded to compile xnu-114 and later versions in OS X PB
>> (2E14)?
>
> I think "-mcpu=750 -fschedule-insns" in xnu/makedefs/MakeInc.def causes
> this compiler crash. It can be worked around by making the following
> change in xnu/makedefs/MakeInc.def
>
> -export CFLAGS_RELEASEPPC = -O2 -mcpu=750 -fschedule-insns
> -export CFLAGS_RELEASE_TRACEPPC = -O2 -mcpu=750 -fschedule-insns
> -export CFLAGS_DEBUGPPC = -O1 -mcpu=750 -fschedule-insns
> +export CFLAGS_RELEASEPPC = -O2 -mcpu=604
> +export CFLAGS_RELEASE_TRACEPPC = -O2 -mcpu=604
> +export CFLAGS_DEBUGPPC = -O1 -mcpu=604
>
> This is fixed in the latest compiler, but I am not sure whether it's
> pushed out to the public CVS or not ...
>
> Changing "-mcpu=750" to "-mcpu=604" may not be necessary, just deleting
> "-fschedule-insns" may fix your problem.
>
> --Umesh
> --
> Umesh Vaishampayan Apple Computer, Inc.
> Mac OS X Kernel Ph: (408) 974 0229




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.