From owner-freebsd-questions@FreeBSD.ORG Mon Jul 1 11:15:54 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5DB471A8 for ; Mon, 1 Jul 2013 11:15:54 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com [207.126.144.125]) by mx1.freebsd.org (Postfix) with ESMTP id B2E3B12FF for ; Mon, 1 Jul 2013 11:15:53 +0000 (UTC) Received: from mail-wg0-f46.google.com ([74.125.82.46]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKUdFkz7QRm5CFYBbw91knY9V2v7/5u3fp@postini.com; Mon, 01 Jul 2013 11:15:53 UTC Received: by mail-wg0-f46.google.com with SMTP id c11so3576328wgh.25 for ; Mon, 01 Jul 2013 04:15:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:message-id:to:subject:cc:reply-to:in-reply-to :x-gm-message-state; bh=KkfTpqLs1zDYgextRcHHLJfwA3SKkxae6lGTYmDOo/A=; b=QpiOKlxNc1gbL3cFeJk+lCS68I5409PLW3wK8gj/qsdK25XRHaHocPLrW2dVAd8DRW u+jPrTUDVd8RADpc58H9fmtOpaFE2elZ0KgqCm18Tev4fS9yyjssZwXd0JKeWYaQDM1i GP027Zjm/NEd3GMQhJMwYesqYEqe0x4Eco3PdqSeY0y401LHlBVfXRuMEf7kuFI9SRcY cbvsx+GUDGAbaR0qzabhDAzZUfXnzspeVFc7I8NqEdg1nZ6xFWY+ydrLc0xExxLRvd57 jwPn2HSufgloiTHibfsJ4dkBlif6rry2JKRvUW+/HPxNLklKGgLNO3Fr7SjevTYF9pFF Hr9g== X-Received: by 10.195.12.18 with SMTP id em18mr19386498wjd.78.1372677326878; Mon, 01 Jul 2013 04:15:26 -0700 (PDT) X-Received: by 10.195.12.18 with SMTP id em18mr19386489wjd.78.1372677326793; Mon, 01 Jul 2013 04:15:26 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id r8sm2661825wiz.5.2013.07.01.04.15.24 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Jul 2013 04:15:25 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6) with ESMTP id r61BFNR6005161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 1 Jul 2013 12:15:23 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6/Submit) id r61BFNHV005160; Mon, 1 Jul 2013 12:15:23 +0100 (BST) (envelope-from mexas) Date: Mon, 1 Jul 2013 12:15:23 +0100 (BST) From: Anton Shterenlikht Message-Id: <201307011115.r61BFNHV005160@mech-cluster241.men.bris.ac.uk> To: mexas@bristol.ac.uk, Olivier.Nicole@cs.ait.ac.th Subject: Re: What compiler is used to build a port In-Reply-To: <201307011022.r61AM7DY002960@banyan.cs.ait.ac.th> X-Gm-Message-State: ALoCoQlHgdwiKXL+//FNpbhJQ0UZRWFMW7yKDzW64JW4/NlNN3F4SjfU6UJLJpGTBWcW9n3VIM772xv+TtqBoIYLYbQTBYwuJ3pWlYGTeTYS65BpC0ucRkZP56m13bbbVQjYziXBmh+llmNylzC91v0RsDdgu0GOL60+As1dLNVSL3XK+pazrOukfqXIC5aXpKq1lkLSUzhb Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 11:15:54 -0000 From Olivier.Nicole@cs.ait.ac.th Mon Jul 1 12:12:08 2013 > 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 ? Anton