From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 16 02:51:17 2010 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 AEF84106566B for ; Tue, 16 Nov 2010 02:51:17 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 46F128FC0A for ; Tue, 16 Nov 2010 02:51:16 +0000 (UTC) Received: by wwd20 with SMTP id 20so211809wwd.31 for ; Mon, 15 Nov 2010 18:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:in-reply-to:references:x-mailer; bh=cLVqJ7FO3tSisKIZKW6QC4FdEehFtXd7xdI5CeWr0BE=; b=irLkBz2lSZlN1BCcXe5BRZZm2S8xhywnbQHsCFVtZwUv7tCrJ/EDSpplA89uy7+8++ qn35NYpVOOual1jjVFcRN2zklBXJFSn8V5jwju2rkaw1Xrl6VF8w/8Rz7W7JPJPTXgk8 bMdcQSE5/22Rri1Y/KXQkJQaBre893LY2Vg5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; b=lg5RiSp7MoGjtBV3XGm/5CXGM0pwOjPoap6A5+Pl9dpThqfMJ0rG0uiS2OFf9A+8pD ejFIAgO7InmlT3Q5dYKIAHDUvWUS9j8a6Cjn4Inc/CN6KULAu0AmCCwJgqohjGn5Jc1r v4hUTqKgvHwdVyMu5iVBgMPlT5HJ1/kA5I/7c= Received: by 10.227.151.148 with SMTP id c20mr6954331wbw.15.1289874322386; Mon, 15 Nov 2010 18:25:22 -0800 (PST) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id i19sm432179wbe.17.2010.11.15.18.25.19 (version=SSLv3 cipher=RC4-MD5); Mon, 15 Nov 2010 18:25:21 -0800 (PST) Message-ID: <20101116.022422.921.1@DEV> From: rank1seeker@gmail.com To: freebsd-hackers@FreeBSD.org Date: Tue, 16 Nov 2010 03:24:22 +0100 In-Reply-To: <4CA4C63F.4070503@icyb.net.ua> References: <4CA4C63F.4070503@icyb.net.ua> X-Mailer: POP Peeper (3.7.0.0) Cc: Subject: Unhappy with cross-worlding 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: Tue, 16 Nov 2010 02:51:17 -0000 So, I have Core 2 Duo, runing as i386. I decided to go for amd64 (it's name, is so deceiving, that I've just recently, accidentaly figured out, that it can be used, with intel CPUs, too) :P 8.1 cross build i386 -> amd64 has failed World completes successfully, but kernel fails: mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq - I/usr/obj/amd64/usr/src/sys/GENERIC /usr/src/sys/modules/amr/amr_linux/../../../dev/amr/amr_linux.c /usr/src/sys/modules/amr/amr_linux/../../../dev/amr/amr_linux.c:43:36: error: machine/../linux/linux.h: No such file or directory /usr/src/sys/modules/amr/amr_linux/../../../dev/amr/amr_linux.c:44:42: error: machine/../linux/linux_proto.h: No such file or directory mkdep: compile failed *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 2 errors *** Error code 2 1 error *** Error code 2 1 error Then, I've snapped and took an USB stick and did a binary 8.1 amd64 install on it. Booted from it and kernel compiled flawlessly PS: Core 2 Duo - 8.1 GENERIC Kernel build time: 10:30 --> i386 08:30 --> amd64 Yes, without caching! PORTS: ------ >From i386, when created USB amd64, I wanted to compile some ports(i386 -> amd64), for that USB stick, on my own. Especially because of port's patches ... DESTIR has been set, as usual, but TARGET, was a no go! Looking into documentation, only /usr/src, supports TARGET, used for cross world compilation. Also, after throwing an eye into /usr/ports/Mk ..., I've concluded that ports, simply can't be cross world compiled, as they don't support it. This 2 problems should be fixed. Domagoj