From owner-freebsd-doc@FreeBSD.ORG Mon Mar 30 06:23:50 2015 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4F0B266 for ; Mon, 30 Mar 2015 06:23:50 +0000 (UTC) Received: from mail-pd0-x234.google.com (mail-pd0-x234.google.com [IPv6:2607:f8b0:400e:c02::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 817409F4 for ; Mon, 30 Mar 2015 06:23:50 +0000 (UTC) Received: by pdnc3 with SMTP id c3so165821349pdn.0 for ; Sun, 29 Mar 2015 23:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=XKHaQ9uGjjIl7ZF0NnHAAnhh5lUvZGl/9hMnViHShMI=; b=d2GVpbf7y2eq0IMr4q5lmhcmgJzK9kNeK5AZ4PsQyiKz8DzE215UesmAVYRsho1+NQ E2octiRFVGF2r/+2QeBDLrnwJwbA68Z2LUFjR1ev4nn0BAPLx1k5InhsrpOVESgEWy9I d1KwK3lEO13Ya2GczPeqiK1l9EK/TE4Zrk2LMPRG+FF4Lq2D5ZrQLwFssXdxrKxTlZ8l RDAOvJ9yCsO5pHrqVX8DROSLDO9HACn9GZIse62/hJnmn3O0kb62Qym7AsNK+lNmNMVC KKHfCXjGEYN/jsdQiAGYSDcjnHLII7QLX84kcJnqf6X40Z7Lya8bJwgQ0pAkFN/Bs5SH AO0g== X-Received: by 10.68.132.134 with SMTP id ou6mr54697386pbb.121.1427696629971; Sun, 29 Mar 2015 23:23:49 -0700 (PDT) Received: from splendens.lostwoods ([133.21.188.95]) by mx.google.com with ESMTPSA id r7sm9287433pdm.16.2015.03.29.23.23.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 23:23:48 -0700 (PDT) Message-ID: <5518EBEB.5080807@gmail.com> Date: Mon, 30 Mar 2015 06:23:39 +0000 From: Raven Iqqe User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-doc@freebsd.org Subject: Wrong command in the FreeBSD wiki page about cross compiling Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 06:23:50 -0000 Hi, all. The command in FreeBSD wiki page, "A_Brief_Guide_To_Cross_Compiling_FreeBSD" (https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD) seems to be wrong. In the "Build World" section of the "Building and Installing World" part, it says; % make buildworld TARGET=arm TARGET_ARCH=armeb MAKEOBJDIRPREFIX=/home/bob/obj But, for some reason, setting MAKEOBJDIRPREFIX as a command line argument should not be done as that is described in man page build(7). The correct one is below; % MAKEOBJDIRPREFIX=/home/bob/obj make buildworld TARGET=arm TARGET_ARCH=armeb or exporting it as a persistent environment variable, % export MAKEOBJDIRPREFIX=/home/bob/obj % make buildworld TARGET=arm TARGET_ARCH=armeb This problem of failing cross compiling is reported a few times. https://lists.freebsd.org/pipermail/freebsd-bugs/2015-January/059735.html http://comments.gmane.org/gmane.os.freebsd.stable/91829 https://lists.freebsd.org/pipermail/freebsd-questions/2014-January/255447.html I encountered the same problem as the last one. I don't know why the original author wrote such a command and if it works in some particular environment or not. My uname -a is below; FreeBSD blahblahblahof.blahblah 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 18:57:59 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 Thanks, raviqqe (raviqqe@gmail.com)