Date: Mon, 10 Dec 2012 13:30:11 -0500 From: Robert Simmons <rsimmons0@gmail.com> To: freebsd-hackers@freebsd.org Subject: Building v8 on FreeBSD with clang Message-ID: <CA%2BQLa9B%2B=TLEzpDue7R0Faz_Sk5iQoJNTMNDhSfMyAheMwzr8w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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" Some version info: # clang -v FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 Target: x86_64-unknown-freebsd9.0 Thread model: posix # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd9.1 command used to checkout v8 code: # svn checkout http://v8.googlecode.com/svn/trunk/ v8 # uname -a FreeBSD thug 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:58:57 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BQLa9B%2B=TLEzpDue7R0Faz_Sk5iQoJNTMNDhSfMyAheMwzr8w>