From owner-freebsd-ports@FreeBSD.ORG Mon Feb 28 14:40:05 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 332A8106566C; Mon, 28 Feb 2011 14:40:05 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B4BC78FC12; Mon, 28 Feb 2011 14:40:04 +0000 (UTC) Received: by gxk7 with SMTP id 7so1777343gxk.13 for ; Mon, 28 Feb 2011 06:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=6YgFO/6itpUF9OrV8SjUa0+223+Wgn/fDXZ7MTtxH3Q=; b=A0p5H0M1h9AVfJticwB4sCe0dwyO6gcGVtcKJqvM74kNBqlislCXe9HlvAP5CYL8Aq L93LkivVt0C9wG3Gkpk1MA5fI3vAnrSPiB9LTmWC2mZ0lFp4oqjlYQ/fO9gHdIVs7FnX 3d7awjroUF8H8qdvp+owNUHaje3sFwDQx621w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type:content-transfer-encoding; b=c9/ASCXI3p4iMVQgfcisMGkLisCNW2tOz9TFr2cZh9+cH29Pvl93J9fjxsb89PAcza QmGUSsPu2XkMMM9+dH1fgaPLifW3LU3/Cy9aldoZ8Np3CEHiQPA3q/ZwmrT1Mzdpm2Uz i+BCmzLKmt4FrPtm1opiFkNEiCBXLQ13hNBZ4= MIME-Version: 1.0 Received: by 10.236.109.1 with SMTP id r1mr4579998yhg.1.1298904003294; Mon, 28 Feb 2011 06:40:03 -0800 (PST) Received: by 10.236.108.44 with HTTP; Mon, 28 Feb 2011 06:40:02 -0800 (PST) Date: Mon, 28 Feb 2011 14:40:02 +0000 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gerald@FreeBSD.org, Ade Lovett Subject: Re: multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2011 14:40:05 -0000 > > On Sun 27 Feb 2011 at 12:24:06 PST Stephen Montgomery-Smith wrote: > >> I am the maintainer of the port vis5d+. I just got this email (copied= below) saying that vis5d+ isn't building right now. > >> > >> The issue seems to be that some reference to __i686.get_pc_thunk.bx is= included twice at some point. This variable seems to be part of an object= file crtbeginS.o that is created by gcc or gcc45, in what seem to me to be= very mysterious conditions. I am rather sure that the issue has nothing t= o do with vis5d+, but rather is something to do with either gcc45, or libto= ols, neither of which I understand. > >> > >> Does anyone out there have any idea of what the problem is, or how it = can be solved? > >> > > From a relatively cursory examination, this appears to be a flaw in the U= SE_FORTRAN=3Dyes stanza. This will bring in gcc45 as a dependency but does= n't appear to be setting CXX to g++45 though it does do CC=3Dgcc45. Possib= ly the same for LD, though I haven't checked that. As is clear from bsd.gcc.mk, in almost every case now in use, USE_FORTRAN sets _USE_GCC, which sets CC, CPP, and CXX to the proper values. Also, it sets USE_BINUTILS where appropriate, which sets LD, etc. The problem is rather with libtool, particularly in the link mode, where it may not respect the choice of compiler and toolchain. This problem has been remarked, for two years or more, in the mailing lists and forums, when people discuss the use of compilers other than the base system compiler. With the recent updates, it is more obtrusive, and several ports that were building successfully with default settings are now broken. This needs to be fixed, and it would be better to fix libtool than to add a bunch of ad-hoc fixes to individual ports. b.