From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 19 13:29:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70589106566B for ; Thu, 19 Jun 2008 13:29:39 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id EC60C8FC22 for ; Thu, 19 Jun 2008 13:29:38 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so1046781uge.37 for ; Thu, 19 Jun 2008 06:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=yHNhnlgr++r5ljyf4S0Ed0jTw8UbkhhidIwArKRg+1c=; b=MchuIVhlPZHlgDwNmUL8Stkq0Bomip6/MuHdc3bcByq678fa48w0YFRLTuIONdwFIe fjntjJRgfXsHbnA9PAmQuCg9En7/22swVhBAl971qz86i0WZhyWP2i9kPN2fGighWI42 FRcn6N0g6rTbfnOaDzbMSiTyDEztDDfPG2J2U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=KW+6MFTlD6XaFK1tB7PL/fkkcJZpGuwgybY3P3Jwg4HwhMLVZU3RjBcJeuoBjpudyM ATPHB8wXvoZz/WGS97AAnO9AAOH3TSrzSiE9zuaxGrV5+eJoRK2FndJNFSAq69w/hYdP mENHWWtLqv36gllo6UKaOP1VGpS8P2eXMpImE= Received: by 10.210.67.4 with SMTP id p4mr1850653eba.77.1213882177826; Thu, 19 Jun 2008 06:29:37 -0700 (PDT) Received: by 10.210.22.4 with HTTP; Thu, 19 Jun 2008 06:29:37 -0700 (PDT) Message-ID: <3c0b01820806190629o7264cfaeg6fa6a08a6822047e@mail.gmail.com> Date: Thu, 19 Jun 2008 09:29:37 -0400 From: "Alexander Sack" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-hackers@freebsd.org Subject: Cross platform building best practices (building 6 on 7) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 13:29:39 -0000 Hello Folks: I've done a lot of Googling and scouring the lists about this particular subject so I apologize for rehashing it. However, I'm still confused on what's the best way to perform BSD cross platform builds. Ideally what I want to have is an environment whereby I can build a 6.1-RELEASE tree on a 7.0-RELEASE box. I thought originally I could check out a 6.1 release version, perform make world, and then use the output of that build as either a basis for a jail or a toolchain. However, as noted by previous threads, 6.x doesn't build on a 7.x due to gcc4/binutils compatibility issues (please correct me if I'm wrong). I then thought I could potentially download a patched binutils, copy it into src/contrib/binutils and that would potentially fix it. No dice (and I'm still debugging why since this binutils package DOES build outside of the make world infrastructure without issue, this very well could be pilot error on my part since I didn't update the VERSION string and didn't trim the source files as per the FreeBSD-deleteList etc.). I THEN thought if I build/install a gcc-3.x/bintuils toolchain I could complie a 6.x on a 7.x machine. Well I haven't done that yet since at this point I believe I'm diverged from the path of FreeBSD build enlightenment! Moreover, if would be NICE if I could bootstrap the normal dev tools from the exiting make world build tree. I'm not yet ready for a lot of hackery on the build tree without asking around. :D! Does anyone due cross-platform builds (without host virtualization)? Thanks! -aps