From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 17 09:49:30 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0612B31 for ; Mon, 17 Dec 2012 09:49:30 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5103D8FC0C for ; Mon, 17 Dec 2012 09:49:30 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so6814523vba.13 for ; Mon, 17 Dec 2012 01:49:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Xz80LdmzSpd/6+7m4aJLsvaD/3/i7wUDpCJFOMdOEPc=; b=eelZ30FRcdsDxaNhoMzmI4X7RnC68xkMRsmFI01dHbc+CZy+YSj+7FGi1vT+RSIN/U Yezwbel6xcB6x/ymk3vL0UiiUXGqy+1IBqQmKF1uYdCYGi+n2CszhMg6EBtpm1SLogN0 iQ87h8eWczKF51TY1W0k1qpyC7lH+D/EgpT/+mxNbaER6NqS+uUULf7Z1x7pshzEhOVz Af+uK3unROq5VPu+CkcQPwHlVRjWj4QkCKetzlrEOvnYD6rMLgEw6x4rmhfMa5oQPIWJ MzVI9VyEvs4Hp0oSZ/zGutY4dBpCheiOnNrduppwrSsyKW4Wxq4ixHAIv89FdoAN03mV 6a9A== MIME-Version: 1.0 Received: by 10.52.66.70 with SMTP id d6mr19354338vdt.30.1355737769397; Mon, 17 Dec 2012 01:49:29 -0800 (PST) Received: by 10.52.26.48 with HTTP; Mon, 17 Dec 2012 01:49:29 -0800 (PST) In-Reply-To: References: Date: Mon, 17 Dec 2012 04:49:29 -0500 Message-ID: Subject: Re: Building v8 on FreeBSD with clang From: Robert Simmons To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2012 09:49:30 -0000 On Tue, Dec 11, 2012 at 5:55 AM, Tom Evans wrote: > On Mon, Dec 10, 2012 at 6:30 PM, Robert Simmons wrote: >> I'm having a problem building google v8 on FreeBSD with clang. I get >> this error: >> >> /usr/bin/ld: final link failed: Nonrepresentable section on output >> clang++: error: linker command failed with exit code 1 (use -v to see >> invocation) >> gmake[1]: *** [/root/v8/out/x64.release/cctest] Error 1 >> gmake[1]: Leaving directory `/root/v8/out' >> gmake: *** [x64.release] Error 2 >> >> I needed to use gmake rather than make, and I added the following to use clang: >> setenv CC /usr/bin/clang >> setenv CXX /usr/bin/clang++ >> setenv GYP_DEFINES "clang=1" > > setenv LINK /usr/bin/clang++ > > (as grokked from the v8 ports makefile - there are also patches in > there to fix building on fbsd10 and adding pthread to the libraries to > link to, which may help you next...) I got past the problems above by building with GCC 4.6 from ports. V8 built just fine, and so did pyv8 the python wrapper. Now, when I try to use it in a python script, I get this error: ImportError: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /root/.python-eggs/PyV8-1.0-py2.7-freebsd-9.1-RELEASE-amd64.egg-tmp/_PyV8.so not found How can I update the gnu libc++ to the right version that this needs?