WebFaction
Community site: login faq

I'm trying to install Google v8 engine to my account.

Tried to "make" it from guides posted at http://code.google.com/p/v8/wiki/BuildingWithGYP
but I'm getting this error:

$ make
  ....    
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/preparser_lib/src/scanner.o
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/preparser_lib/src/strtod.o
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/preparser_lib/src/token.o
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/preparser_lib/src/unicode.o
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/preparser_lib/src/utils.o
  AR(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/tools/gyp/libpreparser_lib.a
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/preparser/preparser/preparser-process.o
  LINK(target) /home/tocka/sources/v8/v8/out/ia32.release/preparser
  CXX(target) /home/tocka/sources/v8/v8/out/ia32.release/obj.target/v8_base/src/accessors.o
cc1plus: warnings being treated as errors
../src/heap.h: In member function ‘v8::internal::byte** v8::internal::Heap::store_buffer_top_address()’:
../src/heap.h:1314: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [/home/tocka/sources/v8/v8/out/ia32.release/obj.target/v8_base/src/accessors.o] Error 1
make[1]: Leaving directory `/home/tocka/sources/v8/v8/out'
make: *** [ia32.release] Error 2
$

I have no idea how to debug this...

edit:

In response to @waynek, I tried once again, with the following commands, got exactly the same result:

export TEMPDIR=$HOME/tmp
mkdir -p $HOME/tmp
cd $HOME/tmp
git clone git://github.com/v8/v8.git v8 && cd v8
make dependencies
make ia32.release  # It's a 32 bit machine, less than web300

Troubleshooting section of http://docs.webfaction.com/software/home-install.html#installing-software-from-source refers only to problems during configure step.

asked 24 Jan '13, 13:55

cek
324
accept rate: 0%

edited 24 Jan '13, 18:36


Hello,

I am providing the solution to the problem here, in case anyone else runs into the same problem:

The compiler is set to treat any compile warnings as errors:

cc1plus: warnings being treated as errors

and that can be turned off by specifying this option when make-ing (see http://code.google.com/p/v8/wiki/BuildingWithGYP, Optional parameters):

make werror=no

The actual error relates to strict-aliasing, which option can be turned off:

make werror=no strictaliasing=off

If compiling for a x64 platform, then:

make x64 werror=no strictaliasing=off

Sincerely,

Valentin I.
WebFaction Support


WebFaction - Smarter web hosting
http://webfaction.com
http://twitter.com/webfaction - http://facebook.com/webfaction

permanent link

answered 25 Jan '13, 09:08

valentini
2614
accept rate: 28%

edited 25 Jan '13, 09:09

Try building it for x64 if you are on web300+ (CentOS 6), with:

make x64.release

(assuming you don't need the debug build also, otherwise just make x64)

If that still doesn't work then try setting the build environment variables specified in our guide for installing software from source and see if that helps. If it's still not working after that then please log a support ticket and we will be able to look more closely at what's going on.

permanent link

answered 24 Jan '13, 17:59

waynek
4254
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×102
×11
×2

question asked: 24 Jan '13, 13:55

question was seen: 3,784 times

last updated: 25 Jan '13, 09:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM