From owner-freebsd-questions@FreeBSD.ORG Mon Jul 1 11:19:55 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B7D96356 for ; Mon, 1 Jul 2013 11:19:55 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 267F5134B for ; Mon, 1 Jul 2013 11:19:54 +0000 (UTC) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 072CCFEBBB; Mon, 1 Jul 2013 18:19:54 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= references:subject:subject:in-reply-to:from:from:message-id:date :date:received:received:received; s=selector1; t=1372677593; x= 1374491994; bh=vbvq8AYw3rzGZTHDm8k26MlvAx6S7aDqJW5sO2GfeSs=; b=I uEQ4RB0wNlJ9K0dlCQEGV1J6N+xjTt+Zk4u8H5eshnLbzhfDAT+adQqEv154wCnq prWThvq8Bb2JmkIHhrZzIRFISztA41Jz4zSWwnpZ3WmCD3Jo0hYloBSQfLRDLHSX U7tUaBSCC2tOX+Vdwmg01MksP4C8fuhpMj5FVdpl30= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l4km2gO5gDH0; Mon, 1 Jul 2013 18:19:53 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 9E1F5FEBBA; Mon, 1 Jul 2013 18:19:53 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.6/8.14.6/Submit) id r61BJrgb003270; Mon, 1 Jul 2013 18:19:53 +0700 (ICT) (envelope-from on) Date: Mon, 1 Jul 2013 18:19:53 +0700 (ICT) Message-Id: <201307011119.r61BJrgb003270@banyan.cs.ait.ac.th> From: Olivier Nicole To: mexas@bristol.ac.uk In-reply-to: <201307011115.r61BFNHV005160@mech-cluster241.men.bris.ac.uk> (message from Anton Shterenlikht on Mon, 1 Jul 2013 12:15:23 +0100 (BST)) Subject: Re: What compiler is used to build a port References: <201307011115.r61BFNHV005160@mech-cluster241.men.bris.ac.uk> Cc: mexas@bristol.ac.uk, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 11:19:55 -0000 > > I have a strange situation: 2 machines, 9.1 p4, on the first machine, > > graphicslibfpx build with the stock compiler: > > > > $ make > > ===> Fetching all distfiles required by libfpx-1.3.1.1 for building > > ===> Extracting for libfpx-1.3.1.1 > > => SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz. > > ===> Patching for libfpx-1.3.1.1 > > ===> Applying FreeBSD patches for libfpx-1.3.1.1 > > /usr/bin/sed -i '' -e '/^#include "fpxlib-config.h"/d' /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h > > ===> Configuring for libfpx-1.3.1.1 > > ===> Building for libfpx-1.3.1.1 > > Warning: Object directory not changed from original /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1 > > g++ -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H... > > > > and on the other machine it insists on using gcc >4.4 (which is > > actually a mistake, libfpx will *not* compile with gcc 4.4 or gcc > > 4.6): > > > > $ make > > ===> Fetching all distfiles required by libfpx-1.3.1.1 for building > > ===> Extracting for libfpx-1.3.1.1 > > => SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz. > > ===> Patching for libfpx-1.3.1.1 > > ===> Applying FreeBSD patches for libfpx-1.3.1.1 > > /usr/bin/sed -i '' -e '/^#include "fpxlib-config.h"/d' /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h > > ===> libfpx-1.3.1.1 depends on executable: gcc46 - not found > > ===> Verifying install for gcc46 in /usr/ports/lang/gcc > > Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 [c,c++,objc,fortran,java] > > ===> Found saved configuration for gcc-4.6.3 > > ===> Fetching all distfiles required by gcc-4.6.3 for building > > ===> Extracting for gcc-4.6.3 > > => SHA256 Checksum OK for gcc-4.6.3.tar.bz2. > > ===> gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - found > > > > What could cause aport to request for a different compiler version > > when both machines are very similar? > > > > Best regards, > > > > Olivier > > > > It seems you have different revisions of the ports > > tree on the two boxes. Do > > > > svn info /usr/ports > > I am using portsnap, not svn, but I check the md5 of each files in the > port (there are only 8 files) and they are the same. > > And I tried to copy the directory from one machine to the other and > get the same result. > > > on both boxes, and see what revisions they have. > > > > On amd64 with ports at r322188 it builds using > > the system GCC compiler: > > > > http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log > > > > but looking at the port's svn log > > (svn log /usr/ports/graphics/libfpx) shows > > > > ------------------------------------------------------------------------ > > r311828 | miwi | 2013-02-07 12:36:20 +0000 (Thu, 07 Feb 2013) | 2 lines > > > > - Unbreak build for HEAD > > My portsnap is much newer than February. > > ok, what else could be different between the two boxes? > > - /etc/make.conf ? No, I have checked that already. Thanks anyway, Olivier