On Mon, Dec 10, 2012 at 6:30 PM, Robert Simmons <[email protected]> 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 _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

