From owner-freebsd-ports@freebsd.org Fri May 18 15:13:19 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B462EAB386 for ; Fri, 18 May 2018 15:13:19 +0000 (UTC) (envelope-from 0101016373cfd7a2-a231a144-9162-4315-82b5-93d3823e99b5-000000@us-west-2.amazonses.com) 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 377B07A439 for ; Fri, 18 May 2018 15:13:19 +0000 (UTC) (envelope-from 0101016373cfd7a2-a231a144-9162-4315-82b5-93d3823e99b5-000000@us-west-2.amazonses.com) Received: by mailman.ysv.freebsd.org (Postfix) id EEF9AEAB385; Fri, 18 May 2018 15:13:18 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC798EAB384 for ; Fri, 18 May 2018 15:13:18 +0000 (UTC) (envelope-from 0101016373cfd7a2-a231a144-9162-4315-82b5-93d3823e99b5-000000@us-west-2.amazonses.com) Received: from a27-116.smtp-out.us-west-2.amazonses.com (a27-116.smtp-out.us-west-2.amazonses.com [54.240.27.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 499507A437; Fri, 18 May 2018 15:13:17 +0000 (UTC) (envelope-from 0101016373cfd7a2-a231a144-9162-4315-82b5-93d3823e99b5-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1526656391; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Subject:Message-ID:Feedback-ID; bh=Jk2dkTIfd8z+DlEscPMldthOTcBdVdrULez/VeM8Gg4=; b=APwLS1Me0aIMBUVnuvFne9u9ua34q3AtAqTMyjFPzLwL6tDKJ35RKtkjtFs0pHzv Q2omANNCHB7WlHopE861LCwbuaulGJlS8ooO1LEYG7SicRcVHPtfjsrCXV43wE2+43T 9AVcNhVXFopE9XrBWQ5uU0bQDYz6HJYg7tgA7Xw4= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on glory.vmeta.jp X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 May 2018 15:13:11 +0000 From: Koichiro Iwao To: ports@freebsd.org Subject: Why portmaster uses g++ not g++6 nor clang++? Message-ID: <0101016373cfd7a2-a231a144-9162-4315-82b5-93d3823e99b5-000000@us-west-2.amazonses.com> X-Sender: meta@freebsd.org User-Agent: Roundcube Webmail/1.3.6 X-SES-Outgoing: 2018.05.18-54.240.27.116 Feedback-ID: 1.us-west-2.ngRt4x2U/cWqug8pbfjwMxB6pcDw1fmN73bGmMLYyRI=:AmazonSES X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 15:13:19 -0000 Hi, I'm building devel/qt5-make by portmaster. Somehow portmaster incorrectly detects gcc6 and uses g++ despite it is actually installed as g++6. If I build it without portmaster, clang++ is used and build finishes successfully. $ pkg info | grep gcc gcc-ecj-4.5 Eclipse Java Compiler used to build GCC Java gcc6-6.4.0_7 GNU Compiler Collection 6 gcc6-aux-20170802_1 Version of GCC 6 with full Ada support gccmakedep-1.0.3 Create dependencies in makefiles using 'gcc -M' # portmaster devel/qt5-qmake (snip) ===> License LGPL21 accepted by the user ===> qt5-qmake-5.10.1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by qt5-qmake-5.10.1 for building ===> Extracting for qt5-qmake-5.10.1 => SHA256 Checksum OK for KDE/Qt/5.10.1/qtbase-everywhere-src-5.10.1.tar.xz. ===> Patching for qt5-qmake-5.10.1 ===> Applying extra patch /usr/ports/devel/qt5/files/extrapatch-configure ===> Applying extra patch /usr/ports/devel/qt5/files/extrapatch-mkspecs_features_create__cmake.prf ===> Applying extra patch /usr/ports/devel/qt5/files/extrapatch-mkspecs_features_qt__module.prf ===> Applying extra patch /usr/ports/devel/qt5/files/extrapatch-mkspecs_common_bsd_bsd.conf ===> Applying FreeBSD patches for qt5-qmake-5.10.1 /usr/bin/sed -i "" -e "/DEFAULT_LIBDIRS=/ s,\\\\\"\\\\n,\\\\n/usr/local/lib&," /ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/configure ===> qt5-qmake-5.10.1 depends on executable: gmake - found ===> qt5-qmake-5.10.1 depends on package: pkgconf>=1.3.0_1 - found ===> qt5-qmake-5.10.1 depends on file: /usr/local/bin/python2.7 - found ===> qt5-qmake-5.10.1 depends on executable: gcc6 - found ===> qt5-qmake-5.10.1 depends on file: /usr/local/bin/as - found ===> Configuring for qt5-qmake-5.10.1 /bin/mkdir -p /ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1 echo 'CMAKE_MODULE_TESTS = -' > /ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/.qmake.cache echo 'QMAKE_LIBDIR_FLAGS = -L/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/lib' >> /ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/.qmake.cache Creating qmake... ===> Building for qt5-qmake-5.10.1 gmake[1]: Entering directory '/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake' g++ -c -o main.o -std=c++11 -ffunction-sections -g -g -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake/library -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake/generators -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake/generators/unix -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake/generators/win32 -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake/generators/mac -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/include -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/include/QtCore -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/include/QtCore/5.10.1 -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/include/QtCore/5.10.1/QtCore -I../src/corelib/global -I/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/mkspecs/freebsd-g++ -DQT_VERSION_STR=\"5.10.1\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=10 -DQT_VERSION_PATCH=1 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake/main.cpp gmake[1]: Leaving directory '/ssd/tmp/ports/usr/ports/devel/qt5-qmake/work/qtbase-everywhere-src-5.10.1/qmake' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 # make -C /usr/ports/devel/qt5-make -> builds successfully using clang++ -- meta