-current cross compile for -stable
    LI Xin 
    delphij at delphij.net
       
    Tue Aug 28 23:17:22 PDT 2007
    
    
  
Danny Braniss wrote:
>> On Tue, Aug 28, 2007 at 12:19:42PM +0300, Danny Braniss wrote:
>>>> On 8/28/07, LI Xin <delphij at delphij.net> wrote:
>>>>> Danny Braniss wrote:
>>>>>> till now I used a stable box to cross compile for other
>>>>>> arch/stable|current.  today i decided to try out -current as  a
>>>>>> base to cross compile. does it work? since i get:
>>>>>>
>>>>>> export MAKEOBJDIRPREFIX=/r+d/obj/cs4
>>>>>> cd /r+d/6.2/src; make  TARGET_ARCH=amd64 buildworld
>>>>>> ...
>>>>> This won't work.  In order to build -STABLE you have to install a
>>>>> chrooted RELENG_6 environment and chroot into it to make it work.
>>>> I think there is a hack for ports' tinderbox, patch is at
>>>> http://www.marcuscom.com/downloads/binutils.diff
>>>> Not sure it appears in ports@ mailing or tinderbox's.
>>> well, I can confirm that it works. 1)I'm now testing the result
>>> by  using the result to make buildworld - goto 1 :-).
>>>
>>> so, if it works for tinderbox, and for me, can it be 'installed'?
>> There's no reason to - if you want to build RELENG_6 on a 7.x box, you
>> should have RELENG_6 chroot to do so.  You'll just keep running into
>> problems as we don't support builds the way you're trying.
> 
> one of the things that attracted me to FreeBSD was the fact that I could 
> cross-compile. I always, till now, used a RELENG as a base (solid? :-) to
> build CURRENT, but now, so close to releases, I decided to try the other way,
> just before upgrading.
> 
> So now I have some questions:
> 	- Is documented != supported?
> 	- is building on a RELENG for CURRRENT ok?
I think there is some misunderstanding.  The supported way is to
"upgrade", means to compile -CURRENT for instance, from a RELENG base;
the reverse, however, is not well "supported".  The "official" way to
cross compile older sources on a newer world is to create a chroot
environment.
Cheers,
-- 
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070829/5d45f4f5/signature.pgp
    
    
More information about the freebsd-current
mailing list