Coder Social home page Coder Social logo

Comments (3)

cowboyd avatar cowboyd commented on August 23, 2024

We've seen this problem on gentoo before. Basically, it appears that it's using the local scons lib, and not the one bundled with therubyracer. Can you try installing the latest beta with gem install therubyracer --pre ?

from therubyracer.

gdelugre avatar gdelugre commented on August 23, 2024

I do no have the problem with SCons anymore using the last beta.
However, the build is failing at link time.

g++ -shared -o v8.so v8_debug.o v8_message.o v8_string.o v8_object.o v8_external.o v8_callbacks.o v8_weakref.o v8_array.o v8.o v8_try_catch.o v8_v8.o v8_locker.o v8_function.o v8_value.o v8_handle.o v8_script.o v8_exception.o v8_date.o v8_context.o rr.o v8_template.o -L/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8 -Wl,-R/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8 -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lpthread  -lpthread -lrt -ldl -lcrypt -lm   -lc -lv8
v8_locker.o: In function `(anonymous namespace)::IsLocked(unsigned long)':
/usr/local/lib64/ruby/gems/1.8/gems/therubyracer-0.9.0beta7/ext/v8/v8_locker.cpp:24: undefined reference to `v8::Locker::IsLocked()'
v8_locker.o: In function `(anonymous namespace)::Unlock(unsigned long)':
/usr/local/lib64/ruby/gems/1.8/gems/therubyracer-0.9.0beta7/ext/v8/v8_locker.cpp:12: undefined reference to `v8::Unlocker::Unlocker()'
v8_locker.o: In function `(anonymous namespace)::Lock(unsigned long)':
/usr/local/lib64/ruby/gems/1.8/gems/therubyracer-0.9.0beta7/ext/v8/v8_locker.cpp:8: undefined reference to `v8::Locker::Locker()'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::LinuxSemaphore::Signal()':
platform-linux.cc:(.text._ZN2v88internal14LinuxSemaphore6SignalEv[v8::internal::LinuxSemaphore::Signal()]+0x5): undefined reference to `sem_post'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::LinuxSemaphore::~LinuxSemaphore()':
platform-linux.cc:(.text._ZN2v88internal14LinuxSemaphoreD1Ev[v8::internal::LinuxSemaphore::~LinuxSemaphore()]+0x13): undefined reference to `sem_destroy'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::LinuxSemaphore::~LinuxSemaphore()':
platform-linux.cc:(.text._ZN2v88internal14LinuxSemaphoreD0Ev[v8::internal::LinuxSemaphore::~LinuxSemaphore()]+0x13): undefined reference to `sem_destroy'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::OS::CreateSemaphore(int)':
platform-linux.cc:(.text._ZN2v88internal2OS15CreateSemaphoreEi+0x30): undefined reference to `sem_init'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::LinuxSemaphore::Wait(int)':
platform-linux.cc:(.text._ZN2v88internal14LinuxSemaphore4WaitEi+0xb0): undefined reference to `sem_timedwait'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::LinuxSemaphore::Wait()':
platform-linux.cc:(.text._ZN2v88internal14LinuxSemaphore4WaitEv+0x35): undefined reference to `sem_wait'
platform-linux.cc:(.text._ZN2v88internal14LinuxSemaphore4WaitEv+0x56): undefined reference to `sem_wait'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::OS::CreateMutex()':
platform-linux.cc:(.text._ZN2v88internal2OS11CreateMutexEv+0x29): undefined reference to `pthread_mutexattr_init'
platform-linux.cc:(.text._ZN2v88internal2OS11CreateMutexEv+0x36): undefined reference to `pthread_mutexattr_settype'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::LinuxMutex::TryLock()':
platform-linux.cc:(.text._ZN2v88internal10LinuxMutex7TryLockEv[v8::internal::LinuxMutex::TryLock()]+0x9): undefined reference to `pthread_mutex_trylock'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Thread::SetThreadLocal(v8::internal::Thread::LocalStorageKey, void*)':
platform-linux.cc:(.text._ZN2v88internal6Thread14SetThreadLocalENS1_15LocalStorageKeyEPv+0x1): undefined reference to `pthread_setspecific'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Thread::GetThreadLocal(v8::internal::Thread::LocalStorageKey)':
platform-linux.cc:(.text._ZN2v88internal6Thread14GetThreadLocalENS1_15LocalStorageKeyE+0x1): undefined reference to `pthread_getspecific'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Thread::DeleteThreadLocalKey(v8::internal::Thread::LocalStorageKey)':
platform-linux.cc:(.text._ZN2v88internal6Thread20DeleteThreadLocalKeyENS1_15LocalStorageKeyE+0x1): undefined reference to `pthread_key_delete'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Thread::CreateThreadLocalKey()':
platform-linux.cc:(.text._ZN2v88internal6Thread20CreateThreadLocalKeyEv+0xc): undefined reference to `pthread_key_create'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Thread::Join()':
platform-linux.cc:(.text._ZN2v88internal6Thread4JoinEv+0xa): undefined reference to `pthread_join'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Thread::Start()':
platform-linux.cc:(.text._ZN2v88internal6Thread5StartEv+0x3a): undefined reference to `pthread_attr_setstacksize'
platform-linux.cc:(.text._ZN2v88internal6Thread5StartEv+0x50): undefined reference to `pthread_create'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::ThreadEntry(void*)':
platform-linux.cc:(.text._ZN2v88internalL11ThreadEntryEPv+0x35): undefined reference to `pthread_setspecific'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::ProfilerSignalHandler(int, siginfo*, void*)':
platform-linux.cc:(.text._ZN2v88internalL21ProfilerSignalHandlerEiP7siginfoPv+0x4f): undefined reference to `pthread_getspecific'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::OS::LogSharedLibraryAddresses()':
platform-linux.cc:(.text._ZN2v88internal2OS25LogSharedLibraryAddressesEv+0x5f): undefined reference to `pthread_getspecific'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Sampler::Stop()':
platform-linux.cc:(.text._ZN2v88internal7Sampler4StopEv+0x5e): undefined reference to `pthread_join'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::OS::Allocate(unsigned long, unsigned long*, bool)':
platform-linux.cc:(.text._ZN2v88internal2OS8AllocateEmPmb+0xbd): undefined reference to `pthread_getspecific'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `global constructors keyed to platform_linux.cc':
platform-linux.cc:(.text._GLOBAL__I_platform_linux.cc+0x29): undefined reference to `pthread_mutexattr_init'
platform-linux.cc:(.text._GLOBAL__I_platform_linux.cc+0x36): undefined reference to `pthread_mutexattr_settype'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::OS::Setup()':
platform-linux.cc:(.text._ZN2v88internal2OS5SetupEv+0x3e): undefined reference to `pthread_mutexattr_init'
platform-linux.cc:(.text._ZN2v88internal2OS5SetupEv+0x4b): undefined reference to `pthread_mutexattr_settype'
/usr/local/lib64/ruby/gems/1.8/gems/libv8-3.3.10.2-x86_64-linux/lib/libv8/build/v8/libv8.a(platform-linux.o): In function `v8::internal::Sampler::Start()':
platform-linux.cc:(.text._ZN2v88internal7Sampler5StartEv+0x171): undefined reference to `pthread_attr_setstacksize'
platform-linux.cc:(.text._ZN2v88internal7Sampler5StartEv+0x187): undefined reference to `pthread_create'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [v8.so] Erreur 1

from therubyracer.

cowboyd avatar cowboyd commented on August 23, 2024

I'm opening an issue for you on libv8: https://github.com/fractaloop/libv8/issues/8

from therubyracer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.