From owner-freebsd-arm@freebsd.org Fri Oct 2 21:56: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 55302A0E8FC; Fri, 2 Oct 2015 21:56:32 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from srv56-45.cdn.bestreaming.com (ns330343.ip-37-187-119.eu [37.187.119.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BEDDF1A54; Fri, 2 Oct 2015 21:56:30 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (localhost [127.0.0.1]) by srv56-45.cdn.bestreaming.com (8.14.7/8.14.7) with ESMTP id t92LuOjC010079; Fri, 2 Oct 2015 23:56:25 +0200 (CEST) (envelope-from fbl@aoek.com) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 02 Oct 2015 23:56:24 +0200 From: =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= To: Michelle Sullivan Cc: freebsd-ports@freebsd.org, freebsd-arm@freebsd.org Subject: Re: Uses/compiler.mk does not trigger under RBPi In-Reply-To: <560DCFD7.30509@sorbs.net> References: <560DCFD7.30509@sorbs.net> Message-ID: X-Sender: fbl@aoek.com User-Agent: Roundcube Webmail/1.0.3 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: Fri, 02 Oct 2015 21:56:32 -0000 Hi Michelle, thank you for your suggestion. Is this another workaround? I mean: many port Makefiles are affected, in the sense that when built on Intel/AMD the ports just work because Uses/compiler.mk is sucked in automatically, but it is not on ARM. So, shall I report a bug on all the ports that use COMPILER_TYPE, or is there a way to have ARM trigger Uses/compiler.mk? Thank you. Regards, --- José Pérez El 2015-10-02 02:29, Michelle Sullivan escribió: > José Pérez wrote: >> Hi, >> I've notice that Uses/compiler.mk is not triggered and as a >> consequence does to set COMPILER_TYPE. >> >> me@raspberry-pi:~ % cat Makefile >> all: >> @${ECHO_CMD} ${LOCALBASE} >> @${ECHO_CMD} ${COMPILER_TYPE} >> .include >> me@raspberry-pi:~ % make >> /usr/local >> >> me@raspberry-pi:~ % >> >> As a result building ports is a nightmare. >> >> Note how in AMD64 it works: >> me@amd64:~ % make >> /usr/local >> clang >> me@amd64:~ % >> >> As a workaround I set COMPILER_TYPE=clang in /etc/make.conf but this >> is just an ugly hack. >> >> Can some expert trow a little light on this? Thank you. >> >> Regards, >> > Try adding: > > USES+= compiler > > to the makefile first... > > (and it still has some issues but that should solve the first)