Building v8 on FreeBSD with clang

Tom Evans tevans.uk at googlemail.com
Tue Dec 11 10:55:43 UTC 2012


On Mon, Dec 10, 2012 at 6:30 PM, Robert Simmons <rsimmons0 at 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


More information about the freebsd-hackers mailing list