From owner-freebsd-ports@freebsd.org Wed Sep 21 21:21:38 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 CE5A7BE32D5 for ; Wed, 21 Sep 2016 21:21:38 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id B691890 for ; Wed, 21 Sep 2016 21:21:38 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: by mailman.ysv.freebsd.org (Postfix) id B5F0FBE32C3; Wed, 21 Sep 2016 21:21:38 +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 B594CBE32C2 for ; Wed, 21 Sep 2016 21:21:38 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from resqmta-ch2-01v.sys.comcast.net (resqmta-ch2-01v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "resqmta-po-01v.sys.comcast.net", Issuer "COMODO RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B9E88C for ; Wed, 21 Sep 2016 21:21:38 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-01v.sys.comcast.net with SMTP id mow4b8TuxTaLwmoxVbOeeS; Wed, 21 Sep 2016 21:21:37 +0000 Received: from www.cyberbotx.com ([68.37.67.123]) by resomta-ch2-16v.sys.comcast.net with SMTP id moxUbxwHYbtIGmoxUbGZ0X; Wed, 21 Sep 2016 21:21:37 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 21 Sep 2016 17:21:33 -0400 From: Naram Qashat To: Mark Felder Cc: ports@freebsd.org Subject: Re: Cannot build lang/phantomjs In-Reply-To: <1474486006.358784.732993105.052B651A@webmail.messagingengine.com> References: <27958404612712b5de113f525c2096bb@cyberbotx.com> <1474486006.358784.732993105.052B651A@webmail.messagingengine.com> Message-ID: X-Sender: cyberbotx@cyberbotx.com User-Agent: Roundcube Webmail/1.2.0 X-CMAE-Envelope: MS4wfOaKqXFi96U5p/CvdmfZTY4zn38t42kaBT5zWeeAFPZGykpi7IzSKD8Luay8DpHg3F6gsvKvPaLNLduOisRBCXmLI1r8UHv0hkIYptpvbpcDRK/VuM95 1F9iFxlICcYISC7rO2Se/gyPYJtFdJ/mBEsUoVCqW8hkSyXa+SmxLiiKmxrBOPBWbiKg6ovacgc4oQbB3G0rW3wZVxYsNj+PRSs= 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:21:38 -0000 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).