Comments (8)
Trying to compile from source also breaks.
My first attempt resulted in this error:
Writing install/lib/scons-2.1.0/scons-2.1.0-py2.7.egg-info
Installed SCons library modules into install/lib/scons-2.1.0
Installed SCons scripts into install/bin
Installed SCons man pages into install/man/man1
cp -r v8 build
patch -td build/v8 -i ../../fpic-on-linux-amd64.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
|--- SConstruct
|+++ SConstruct
Patching file SConstruct using Plan A...
Hunk #1 succeeded at 102 (offset -37 lines).
done
cd build/v8 && GCC_VERSION=.(\d).\d/ ? $1 + $2 : "UNKNOWN"') ../scons/install/bin/scons arch=
Syntax error: word unexpected (expecting ")")
*** Error code 2
Stop in /tmp/libv8/lib/libv8.
Notice that GCC_VERSION was not parsed/determined correctly and the arch flag passed to ../scons/install/bin/scons is missing.
If I make the following changes to the Makefile and manually specify GCC_VERSION and ARCH, I get a littler further.
ncr-vm# head Makefile
SCONS=build/scons/install/bin/scons
SCONSSRC=build/scons
V8SRC=build/v8
LIBV8=build/v8/libv8.a
LIBV8_G=build/v8/libv8_g.a
#GCC_VERSION=$(shell ruby -e 'puts %x{gcc --version} =~ /(\d).(\d).\d/ ? $$1 + $$2 : "UNKNOWN"')
GCC_VERSION=42
#ARCH=$(shell ruby detect_cpu.rb)
ARCH=x64
ncr-vm# make
mkdir -p build/scons/install
python build/scons/setup.py install --prefix=install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
copying script/scons -> install/bin/scons-2.1.0
copying script/scons -> install/bin
copying script/sconsign -> install/bin/sconsign-2.1.0
copying script/sconsign -> install/bin
copying script/scons-time -> install/bin/scons-time-2.1.0
copying script/scons-time -> install/bin
running install_data
running install_egg_info
Removing install/lib/scons-2.1.0/scons-2.1.0-py2.7.egg-info
Writing install/lib/scons-2.1.0/scons-2.1.0-py2.7.egg-info
Installed SCons library modules into install/lib/scons-2.1.0
Installed SCons scripts into install/bin
Installed SCons man pages into install/man/man1
cd build/v8 && GCC_VERSION=42 ../scons/install/bin/scons arch=x64
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/accessors.o -c -fno-rtti -fno-exceptions -fvisibility=hidden -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -I/usr/local/include -Isrc src/accessors.cc
cc1plus: warnings being treated as errors
In file included from src/contexts.h:31,
from src/objects-inl.h:40,
from src/v8.h:60,
from src/accessors.cc:28:
src/heap.h: In member function 'v8::internal::byte** v8::internal::Heap::store_buffer_top_address()':
src/heap.h:1170: warning: dereferencing type-punned pointer will break strict-aliasing rules
scons: *** [obj/release/accessors.o] Error 1
scons: building terminated because of errors.
*** Error code 2
Stop in /tmp/libv8/lib/libv8.
from libv8.
If you manually build the gem from the master branch, you can get around this issue. We are preparing a new gem release but for now some user intervention is required.
Sorry about the trouble,
-Logan
On Jan 23, 2012, at 1:23 PM, Nick Rogers wrote:
Something seems to have broken between the .2 point release and .4 that breaks installing the gem under FreeBSD.
FreeBSD ncr-vm.local 8.2-STABLE FreeBSD 8.2-STABLE #1: Fri May 6 19:11:52 UTC 2011 root@:/usr/obj/usr/src/sys/RGNETS amd64
ncr-vm# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [amd64-freebsd8]
ncr-vm#ncr-vm# gem install libv8 -v 3.3.10.2
Building native extensions. This could take a while...
Successfully installed libv8-3.3.10.2
1 gem installed
Installing ri documentation for libv8-3.3.10.2...
Installing RDoc documentation for libv8-3.3.10.2...
ncr-vm#ncr-vm# gem install libv8 -v 3.3.10.4
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension./usr/local/bin/ruby18 extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby18
extconf.rb:13: uninitialized constant Gem (NameError)
Checking for Python...Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/libv8-3.3.10.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/libv8-3.3.10.4/ext/libv8/gem_make.out
ncr-vm#
Reply to this email directly or view it on GitHub:
https://github.com/fractaloop/libv8/issues/27
from libv8.
Thanks for the response. I did try to build the gem from the master branch and it seems to break. See my second post on this issue. Maybe I am missing something?
from libv8.
Hrm I don't know but I built a FreeBSD 8.2 image last night. I'll try to check it out during some spare cycles.
from libv8.
the main problem is that extconf.rb calls make where it should call gmake :-) (which is gnu make's name on FreeBSD)
from libv8.
hum, also, I noticed a small thing, the error actually is :
extconf.rb:13: uninitialized constant Gem (NameError)
adding require 'rubygems' at the top of the file fixes it.
from libv8.
Also, hum, on amd64, you need -fPIC, so adding the same than is done by the fpic-on-linux-amd64.patch to the freebsd section of the SConstruct file would be nice :-)
from libv8.
this should be fixed on master and with the switch to the GYP build
from libv8.
Related Issues (20)
- register rubyjs.org ? HOT 10
- Installation failure -- update_depot_tools_toggle.py: no such file or directory HOT 3
- Binary builds for Apple Silicon M1 arm64-darwin-20 HOT 8
- Error "update_depot_tools_toggle.py" building libv8 ruby gem HOT 17
- Segfault during compilation on Ubuntu 20 HOT 3
- Unable To Install libv8/therubyracer on M1 Macbook Pro (Apple Silicon) HOT 60
- Release aarch64 gem HOT 2
- depot_tools may work with python3.8 or higher HOT 2
- Unable to install libv8 within docker running on Apple M1 HOT 9
- Installing 7.3.492.27.1 fails to install intermittently with "ImportError: No module named json" on Ubuntu 20.04.2 LTS HOT 1
- upgrade to newer version of libv8 that does not need Python 2.7 HOT 2
- Missing macOS Monterey build (x86_64-darwin-21) HOT 18
- Support for Apple Silicon (arm64-darwin21) HOT 1
- request for option HOT 1
- Unable to start rails Server
- psych 4.x breaks libv8 `.location.yml` deserialisation during extension building HOT 3
- Does not work on OSX 12.1 HOT 6
- How does libv8 find the system's v8? HOT 1
- libv8-node-*-x86_64-darwin-22 not found HOT 2
- Status: UNMAINTAINED HOT 4
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 libv8.