From owner-freebsd-arm@freebsd.org Wed Oct 14 08:29:32 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BC2A9B8579 for ; Wed, 14 Oct 2015 08:29:32 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (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 0380FC1 for ; Wed, 14 Oct 2015 08:29:32 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by wicgb1 with SMTP id gb1so119754311wic.1 for ; Wed, 14 Oct 2015 01:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=23o8UAB8Jmz+A1+2TsmsoEE6R6hOm+krktMYcVXOspQ=; b=HGaQbfsp5gwocQUSZmi9jnhz3Af+reln/PxDnHG5YxGJk3aw+JyX7rLkLAbX97GR65 HeCH/t3zrUQ9hQIENcPjlxXNVGnwsw2fyZQCu7txoGymzuewqQckpdhUxwW82OPAa3YY quzcbHKPgJPIFLCpV/KRI7X+NxbH1ZVDMQhgo4WmIb5PXAwlcSNdkKEmQnzpmylMh/sg 75ZJnJcHkO2klvD1zpXrbmCpTh7R0Cy1Ag7z8tv62FOu8ryFnd8LPFfQPbQtr9WZ6sZf c4kGlHa3x2PflrUVKXT73XAGAd0gG0QclNY6je+5RKfEz3FkaOnSKtJ/nk5OCE2dUzIW zbjw== X-Received: by 10.194.189.137 with SMTP id gi9mr2720313wjc.17.1444811370456; Wed, 14 Oct 2015 01:29:30 -0700 (PDT) Received: from [192.168.1.131] (xdsl-205-163.nblnetworks.fi. [83.145.205.163]) by smtp.googlemail.com with ESMTPSA id it4sm8521429wjb.0.2015.10.14.01.29.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 01:29:29 -0700 (PDT) Subject: Re: machine/acle-compat.h missing To: John-Mark Gurney References: <561B4A25.2030703@gmail.com> <20151012232952.GR67524@funkthat.com> <20151013162244.GS67524@funkthat.com> Cc: freebsd-arm@freebsd.org From: Jukka Ukkonen X-Enigmail-Draft-Status: N1110 Message-ID: <561E1267.4000404@gmail.com> Date: Wed, 14 Oct 2015 11:29:27 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151013162244.GS67524@funkthat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2015 08:29:32 -0000 On 10/13/15 19:22, John-Mark Gurney wrote: > You should not need to set CC and CXX to build, and these are probably > causing your build failures... I don't have a RPi2, but the instructions > at: https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi%202%20image > should be enough, notice the following: > # make TARGET_ARCH=armv6 UBLDR_LOADADDR=0x2000000 buildworld > # make TARGET_ARCH=armv6 KERNCONF=RPI2 buildkernel Well, there is nothing different to what I have been doing unless we consider my setting the target architecture to armv6hf and use of an explicit source root path as somehow error prone. I tested again building with the default compiler on 10-stable. It identifies itself like this... > cc -v FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix Selected GCC installation: Now the error does not happen while building the new version of clang, but still this does not exactly count as a huge success either... --- sbin.all__D --- cc -O3 -pipe -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -c /tank/fish/jau/Xcomp/src.head/sbin/clri/clri.c -o clri.o --- tests.all__D --- --- _sub.all --- ===> tests/sys/pjdfstest/tests/granular (buildfiles) --- _sub.buildfiles --- mv: Kyuafile.auto.tmp: No such file or directory --- share.all__D --- colldef -I /tank/fish/jau/Xcomp/src.head/share/colldef -o uk_UA.ISO8859-5.out /tank/fish/jau/Xcomp/src.head/share/colldef/uk_UA.ISO8859-5.src --- tests.all__D --- *** [Kyuafile.auto] Error code 1 make[7]: stopped in /tank/fish/jau/Xcomp/src.head/tests/sys/pjdfstest/tests/ftruncate 1 error make[7]: stopped in /tank/fish/jau/Xcomp/src.head/tests/sys/pjdfstest/tests/ftruncate --- libexec.all__D --- gzip -cn /tank/fish/jau/Xcomp/src.head/contrib/atf/atf-sh/atf-check.1 > atf-check.1.gz --- tests.all__D --- *** [_sub.buildfiles] Error code 2 Just to clarify things and to make sure we are not comparing apples to oranges... Are you building for RPI2 on 10-stable? Do you use jail containers for the builds or plain separate source (and object) root path? Jailed builds have apparently sometimes behaved differently from builds using the actual host environment. > Once you have those built, then comes how to install it... One method > is to do: > make TARGET_ARCH=argv6 installworld DESTDIR= -DNO_ROOT > tar -czf rpi2.tgz @/METALOG My install phase has always been just fine. At the moment there does not seem to be a big risk that I would even have to test it again in any predictable future, because the build phase falls on its face. Maybe there is no need to worry about the install phase just yet. Thanks anyway. --jau