Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2012 10:55:36 +0000
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Robert Simmons <rsimmons0@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Building v8 on FreeBSD with clang
Message-ID:  <CAFHbX1J2jpLxiLMG4KtUi-oExfuuZ_KJRFpMDjuK2LLTc1UGJA@mail.gmail.com>
In-Reply-To: <CA%2BQLa9B%2B=TLEzpDue7R0Faz_Sk5iQoJNTMNDhSfMyAheMwzr8w@mail.gmail.com>
References:  <CA%2BQLa9B%2B=TLEzpDue7R0Faz_Sk5iQoJNTMNDhSfMyAheMwzr8w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 10, 2012 at 6:30 PM, Robert Simmons <rsimmons0@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHbX1J2jpLxiLMG4KtUi-oExfuuZ_KJRFpMDjuK2LLTc1UGJA>