From owner-freebsd-ports@FreeBSD.ORG Mon Jun 20 21:27:18 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 88757106566C; Mon, 20 Jun 2011 21:27:18 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 545568FC08; Mon, 20 Jun 2011 21:27:18 +0000 (UTC) Received: by pvg11 with SMTP id 11so2431844pvg.13 for ; Mon, 20 Jun 2011 14:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=5J0FqqPKKcb0BYwhT7qbVzD6r6MPbNP2hN4byj1ddvc=; b=o4eRzgONWZd1ltq1k9TJdECMLmgqTdJXpIimrHuHmn/TOqVaFpXbRqF+UgCAiYRw6Z fmzhrD0vQG3ND5RvU7+wMHowtsbycv8rjzE0vP2FKlw/FLMZgKfn0WYMWsfQSvrYONng gMdnor9b1aPuwa/rCnxXmKCsYjgeFQQpcEa3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=PQKM9oaWYjBcTBoxqto/ZKo3F/TPp0UBE5iyXaPg0iJqk6QFxQh7nbu7BeSqIifqcQ +dJCaRWy4Q5qKzfd/OODlatBo/A3YLj/C25rzTGOys4nPpr3jGhCRLitW5HJCQQDZIPi mUBoz+77g+ol+ED7/WPyc7V4h52nse/jXpiFc= Received: by 10.68.25.170 with SMTP id d10mr2449261pbg.298.1308605237750; Mon, 20 Jun 2011 14:27:17 -0700 (PDT) Received: from localhost (tor-exit-router40-readme.formlessnetworking.net [199.48.147.40]) by mx.google.com with ESMTPS id g8sm1010028pba.53.2011.06.20.14.27.15 (version=SSLv3 cipher=OTHER); Mon, 20 Jun 2011 14:27:17 -0700 (PDT) From: Pan Tsu To: Roman Divacky References: <20110620153753.GA41541@freebsd.org> <86ei2ocjg2.fsf@gmail.com> Date: Tue, 21 Jun 2011 01:27:11 +0400 In-Reply-To: <86ei2ocjg2.fsf@gmail.com> (Pan Tsu's message of "Tue, 21 Jun 2011 00:54:37 +0400") Message-ID: <86d3i8b3dc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-ports@freebsd.org Subject: Re: [ANNOUNCE]: clang compiling ports 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: Mon, 20 Jun 2011 21:27:18 -0000 Pan Tsu writes: > Roman Divacky writes: > >> Flz@ just run an exp-build with CC=clang and CXX=clang++. The results can be >> seen here: >> >> http://pointyhat.freebsd.org/errorlogs/amd64-9-exp-latest/ >> >> A lot of these failures are trivial to fix (ie. not respecting CC setting, etc.) >> and prevent a lot of other ports from building. > > Any extra libtool patches? I'm curious how did you work around ports/155157 > > foo.o: relocation R_X86_64_PC32 against symbol `bar' can not be used when > making a shared object; recompile with -fPIC > > due to failing lt_cv_prog_compiler_pic_works check on clang warnings. Looking closely at the logs it uses full path to the compiler. I tried same and the error is gone. Apparently, smth is broken on my box when clang is used together with ccache. $ /usr/bin/clang -c -fPIC -DPIC -DPIC foo.c $ CCACHE_RECACHE=1 ccache /usr/bin/clang -c -fPIC -DPIC -DPIC foo.c clang: warning: argument unused during compilation: '-D PIC' clang: warning: argument unused during compilation: '-D PIC' Sorry for the noise.