From owner-freebsd-ports@FreeBSD.ORG Thu Dec 15 01:12:21 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 E526B1065670; Thu, 15 Dec 2011 01:12:21 +0000 (UTC) (envelope-from yanegomi@gmail.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 925718FC14; Thu, 15 Dec 2011 01:12:21 +0000 (UTC) Received: by ggnp1 with SMTP id p1so2023192ggn.13 for ; Wed, 14 Dec 2011 17:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=o3kaQNDF9F1isermgdP5A5k0vYO0ZbTghkzGPjkVnDo=; b=MXP+cd5VEwbnFOw4/gZoxcLVg7MDIWgN+9iJu488H4X2dfTKyvIALimAIKDXxcjx3L Yf34GZfER42aWXFL313rA1vMAX6WTH59yonBL1M+uyN31g+FwpzRgJNnm89AxARTGVCz kWIHFn/4cc2xnGnyXGlHmxKrr0mL8VQ3CYELU= MIME-Version: 1.0 Received: by 10.182.17.102 with SMTP id n6mr470863obd.56.1323911541062; Wed, 14 Dec 2011 17:12:21 -0800 (PST) Received: by 10.182.62.227 with HTTP; Wed, 14 Dec 2011 17:12:21 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Dec 2011 17:12:21 -0800 Message-ID: From: Garrett Cooper To: bf1783@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Roman Divacky , freebsd-ports@freebsd.org Subject: Re: ports: clang: error: unsupported option '-dumpspecs' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 01:12:22 -0000 On Wed, Dec 14, 2011 at 3:44 PM, b. f. wrote: >> > -dumpspecs is a gcc internal thing that clang will never support (it d= oesnt use >> > specs). It's wrong for ports to mess with the internals of the compile= r and >> > this should be fixed in a clean way. >> > >> > Ie. we have to replace the -dumpspec | grep something with a saner che= ck. >> >> =A0 =A0 The fact that gcc -dumpspecs is looked at at all is a really bad >> idea. Do you know which port in the tree is calling this? > > As far as I know, in the Ports tree there are only: > > editors/emacs > editors/emacs-devel > graphics/OpenEXR > multimedia/vdpau-video > > which use it in an ill-conceived (and now probably unnecessary) test > for thread libraries. =A0However, there are many more instances within > the configuration scripts of various port distfiles, and I do not > think that all of these are protected by tests for gcc*. Ah... great -- the -pthread vs -lpthread vs nptl vs [..] mess. Yeah... those ports should probably have PRs filed against them so upstream fixes their autoconf tests. Thanks, -Garrett