From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 15:57:13 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2123A16A4D9 for ; Thu, 21 Jul 2005 15:57:13 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id A192843E4D for ; Thu, 21 Jul 2005 15:56:27 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 0C0FA89BB7; Thu, 21 Jul 2005 17:56:25 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08801-05; Thu, 21 Jul 2005 17:56:21 +0200 (CEST) Received: from firewall.demig (p50839136.dip0.t-ipconnect.de [80.131.145.54]) by server.absolute-media.de (Postfix) with ESMTP id F38B78BB46; Thu, 21 Jul 2005 17:56:20 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j6LFplXP057129; Thu, 21 Jul 2005 17:51:47 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "markzero" Date: Thu, 21 Jul 2005 17:51:46 +0200 Message-ID: <001901c58e0c$1950bac0$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <20050721152700.GC70359@logik.ath.cx> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Importance: Normal X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: freebsd-questions@freebsd.org Subject: RE: suicidally ambitious compilation? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 15:57:13 -0000 > > > I'm thinking of setting up a jail specifically to try and compile an > > > OpenBSD release on FreeBSD. No 'cross compiling' will be > involved (same > > > target hardware architecture). > > > > > > Has anybody here ever tried, or heard of anybody trying this? > > > > > > I don't expect the journey to be without large potholes... > > > > That won't work. A jail is not something like vmware. It's > > just a FreeBSD inside a FreeBSD. > > I used emulators/qemu to install NetBSD into an > > image file from the installation cd. That worked for me > > as long as I did not try to start X inside qemu. > > So I think that OpenBSD will work too. > > (Interestingly the Knoppix live-cd runs emulated > > even in graphics mode!) > > Hi. > > I should have explained myself a little better. What I'm actually trying > to do is compile a minimal OpenBSD snapshot so that I can > distribute binaries > to my very slow firewall machine (which also lacks a compiler, for > security reasons). The jail is purely there because the OpenBSD > compilation process seems to make the assumption that it's working in > /usr/src so I thought it would be a good idea to partition the process > off from the rest of the system. Although I think it is possible, to build OpenBSD under FreeBSD, I wouldn't try it. The problem is to correctly re-create the _complete_ OpenBSD build environment. That means compiler, linker, make, and other tools that may be used for building. For the compiler, that means to build a cross compiler. The cpu may be the same, but gcc is always configured for a combination of . And you have to find out what gcc version OpenBSD is usually been built with. Other tools may differ in behaviour or command line options. For example, may be FreeBSD is using a gnu tool while OpenBSD is using a non-gnu tool. What about e.g. make? There is make and gmake under FreeBSD. So again I suggest you try the qemu solution (or buy an additional computer ;-). Norbert