Comments (3)
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.
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.
I'm opening an issue for you on libv8: https://github.com/fractaloop/libv8/issues/8
from therubyracer.
Related Issues (20)
- error for undefine method HOT 4
- With install Ruby 2.4.3 and Passenger 5.1.12 ALL sites will fail to open HOT 1
- With install Ruby 2.5.0 and Passenger 5.1.12 ALL sites will fail to open HOT 8
- Compilation error HOT 1
- compilation error on Amazon Linux, "g++: error: unrecognized command line option" HOT 6
- update to libv8-6.x ilne HOT 2
- use therubyracer to precompile asset error HOT 2
- Unable to install therubyracer on Mac OS Mojave (10.14.1) HOT 2
- the ruby racer fails with hardened gcc flags HOT 3
- error installing therubyracer error failed to build gem native extension HOT 4
- Gem fails to build under Catalina HOT 17
- /usr/local/opt/[email protected]/include/v8.h:98:1: error: unknown type name 'namespace' HOT 4
- Building on Ubuntu 20.04 fails with "/usr/bin/mkdir: Command not found." HOT 1
- Building on MacOS 10.15.6 fails due to missing path to climits.h HOT 2
- Security Vulnerability in therubyracer-0.12.3 HOT 2
- Unable to install therubyracer v0.12.3 in M1 Macbook Pro (Apple Silicon) HOT 12
- This gem is no longer actively maintained HOT 1
- Intall using local libv8 gem dependency HOT 1
- Precompile freezing during kubernetes deploy HOT 1
- Installing on Ruby > 3.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from therubyracer.