Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2020 09:02:59 +0200
From:      Ralf Mardorf <ralf-mardorf@riseup.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Possible to compile tree on a different OS?
Message-ID:  <20200616090259.0d5f0f1e@archlinux>
In-Reply-To: <483b-5ee86500-35-519df400@194132122>
References:  <20200616081259.4b1b4143@archlinux> <483b-5ee86500-35-519df400@194132122>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tue, 16 Jun 2020 08:20:57 +0200, mayuresh@kathe.in wrote:
>On Tuesday, June 16, 2020 11:42 AM IST, Ralf Mardorf wrote: 
> 
>> On Tue, 16 Jun 2020 07:16:37 +0200, mayuresh@kathe.in wrote:  
>> >The NetBSD folks have mechanisms in place to allow compiling
>> >(including cross-compiling) their entire (or partial) source tree
>> >under a different operating system. Eg. I can download and compile
>> >the NetBSD source tree under a Ubuntu system using GNU build tools.
>> >
>> >Does FreeBSD have such facilities in place too?  
>> 
>> By googling I couldn't find a script such as
>> https://www.netbsd.org/docs/guide/en/chap-build.html , but a howto
>> 
>> https://marcelog.github.io/articles/cross_freebsd_compiler_in_linux.html
>>
>You have not understood my requirement.
>I want to download the latest FreeBSD source tree on my machine
>running native Ubuntu only and compile that source tree. As an example
>of what's possible under NetBSD, read the snippet (below) from the
>NetBSD mailing list.
>
>==== NetBSD mailing list snippet ====
>as per martin husemann <martin@duskware.de>
>
>cd $(top-dir-where-you-put-the-netsbd-tree)
>./build.sh -m evbarm64-el tools kernel=MYKERNEL
>[snip]

The first link I posted is about build.sh, so I seemingly
understand quite good what you want. You don't understand my reply.
Likely (I can't say for sure) FreeBSD doesn't provide a script
comparable to NetBSD's build.sh, at least I had no success when
googling. The second link posted by me is a tutorial on how to set up
"a cross compiler (gcc) for freebsd under linux", which is a starting
point, an alternative to a script that automagically sets up
"everything".



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200616090259.0d5f0f1e>