From owner-freebsd-ports@freebsd.org Wed Sep 21 21:49:33 2016 Return-Path: Delivered-To: freebsd-ports@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 D713DBE4157 for ; Wed, 21 Sep 2016 21:49:33 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BE306E73 for ; Wed, 21 Sep 2016 21:49:33 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id B9F93BE4156; Wed, 21 Sep 2016 21:49:33 +0000 (UTC) Delivered-To: ports@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 B9A5BBE4155 for ; Wed, 21 Sep 2016 21:49:33 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 95B1AE72 for ; Wed, 21 Sep 2016 21:49:33 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 556FC2061D; Wed, 21 Sep 2016 17:49:32 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute7.internal (MEProxy); Wed, 21 Sep 2016 17:49:32 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=j7/WpSpJ9qAk/qw g87H+agSa1fk=; b=TbGJICAmXc60PSuSAbzSwHommhFzHWf9VOJq6AoMG1CZRTF otpxmh9IVrbo900/49f8XK3dP/oFGwkbomMSmYP3ph9CJtDiRniFyXwxD2hioXja 9kRuLik1JJ248oQg25sBrKxdn7yeTTQ630T1Gy7QcH1Fjwg6Vb387AqQ3pI0= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3303DCC7E4; Wed, 21 Sep 2016 17:49:32 -0400 (EDT) Message-Id: <1474494572.2995185.733127289.275A86B7@webmail.messagingengine.com> X-Sasl-Enc: nN2sBf2Gtj4zEXCAYHXdXQwO6j0LW+j6ealMpWhVEw74 1474494572 From: Mark Felder To: Naram Qashat Cc: ports@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-43c89091 Subject: Re: Cannot build lang/phantomjs Date: Wed, 21 Sep 2016 16:49:32 -0500 In-Reply-To: References: <27958404612712b5de113f525c2096bb@cyberbotx.com> <1474486006.358784.732993105.052B651A@webmail.messagingengine.com> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2016 21:49:33 -0000 On Wed, Sep 21, 2016, at 16:21, Naram Qashat wrote: > On 2016-09-21 15:26, Mark Felder wrote: > > On Wed, Sep 21, 2016, at 12:52, Naram Qashat wrote: > >> I can't seem to get the phantomjs port to build for me under FreeBSD > >> 10.3. I have lang/gcc installed (so I have gcc48 and g++48) and clang > >> is > >> the base compiler. It seems that it is trying to use g++48, but there > >> is > >> no freebsd-g++48 mkspec and it fails to even start building. > >> > >> I've even tried to set CC and CXX manually but that doesn't help > >> because > >> of the mkspec issue. It seems to always try using gcc48 and g++48 > >> regardless of what CC and CXX are set to. > >> > > > > Do you have more details about how you're trying to build it? It builds > > with clang, not gcc. It should not be attempting to use gcc at all. > > I'm building using portupgrade, but the problem happens even if I build > directly with make from /usr/ports/lang/phantomjs too. I use portconf, > but even with all the options commented out in there, it still doesn't > build. > > > Here is the cluster build log for 10.1 amd64 (10.1 is build target for > > all packages used for 10.1, 10.2, and 10.3) > > > > http://beefy2.nyi.freebsd.org/data/101amd64-quarterly/422328/logs/phantomjs-2.0.0_4.log > > Looking at that build log, I see a difference when it checks for g++ and > g++48. On my system, since I have g++ and g++48 from lang/gcc, it sets > PLATFORM to freebsd-g++ when it finds g++ and then to freebsd-g++48 when > it finds g++48, so XPLATFORM gets set to freebsd-g++48 instead of > freebsd-clang. I assume that uninstalling lang/gcc would make it build, > but this seems more like a problem with how phantomjs is checking for > compilers (and then not having the required mkspec). I strongly suggest building with synth or poudriere which provide a cleanroom build environment. -- Mark Felder ports-secteam member feld@FreeBSD.org