From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 11 10:55:42 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 EC62983E for ; Tue, 11 Dec 2012 10:55:42 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by mx1.freebsd.org (Postfix) with ESMTP id 998F58FC1C for ; Tue, 11 Dec 2012 10:55:42 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id b12so2502076qca.18 for ; Tue, 11 Dec 2012 02:55:36 -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 :cc:content-type; bh=4YyhMkgfiY2zIA0dBOPNJ8UkCfB5aVazO1ZPurWLn7U=; b=sa/0fZXVsYC83JilJSQHCzKB3d+aDbUxGlWliT3at6nD9bPbz25bh5bVdDIkKvhHya dyWJP92Om2094Pep1nO4koBlScVvDMvItfbEuJh6NMWF5SdFyuVkxsx31GtR/4ZVBkSN cUH10aA92w+5u63hDq2sTH3ojGVDDW6FBuIKqIdUQ237HvQJb76dzAKUvDo4w2jixZ/Y zalMRzKoQHivSgQsH4oLORkE6EjcoRWocJ+yADqVGtU+MwlnuqlO1b8mqj59FaKRTL+d GM2X+BLcILY9Y/uYxe5h/cLDVuwZzpo27OqjqiiZ7xUxnQsHUGpZbO6CqT7spFZAG1Fg qeFw== MIME-Version: 1.0 Received: by 10.224.180.205 with SMTP id bv13mr32034070qab.7.1355223336736; Tue, 11 Dec 2012 02:55:36 -0800 (PST) Received: by 10.49.116.129 with HTTP; Tue, 11 Dec 2012 02:55:36 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Dec 2012 10:55:36 +0000 Message-ID: Subject: Re: Building v8 on FreeBSD with clang From: Tom Evans To: Robert Simmons Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hackers@freebsd.org 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: Tue, 11 Dec 2012 10:55:43 -0000 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...) Cheers Tom