Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2012 04:49:29 -0500
From:      Robert Simmons <rsimmons0@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Building v8 on FreeBSD with clang
Message-ID:  <CA%2BQLa9BKcy-CtAPV=fbzynrBsNTeAM6Rvk9a1OgkkMiYwevDmQ@mail.gmail.com>
In-Reply-To: <CAFHbX1J2jpLxiLMG4KtUi-oExfuuZ_KJRFpMDjuK2LLTc1UGJA@mail.gmail.com>
References:  <CA%2BQLa9B%2B=TLEzpDue7R0Faz_Sk5iQoJNTMNDhSfMyAheMwzr8w@mail.gmail.com> <CAFHbX1J2jpLxiLMG4KtUi-oExfuuZ_KJRFpMDjuK2LLTc1UGJA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 11, 2012 at 5:55 AM, Tom Evans <tevans.uk@googlemail.com> wrote:
> 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...)

I got past the problems above by building with GCC 4.6 from ports.  V8
built just fine, and so did pyv8 the python wrapper.  Now, when I try
to use it in a python script, I get this error:
ImportError: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required
by /root/.python-eggs/PyV8-1.0-py2.7-freebsd-9.1-RELEASE-amd64.egg-tmp/_PyV8.so
not found

How can I update the gnu libc++ to the right version that this needs?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BQLa9BKcy-CtAPV=fbzynrBsNTeAM6Rvk9a1OgkkMiYwevDmQ>