You are not logged in.

#1 2009-11-14 00:43:37

xkero
Member
Registered: 2008-04-20
Posts: 7

V8 Javascript shell

Has anyone managed to compile V8 on archlinux? I tried on my main system, got the stubs-32.h problem and found out archlinux 64bit isn't multilib and couldn't build it. Then I tried in a 32bit version of arch I had already setup in virtualbox, but just get:

cc1plus: warnings being treated as errors
src/handles-inl.h: In static member function 'static void v8::V8::RemoveMessageListeners(void (*)(v8::Handle<v8::Message>, v8::Handle<v8::Value>))':
src/handles-inl.h:50: error: dereferencing pointer 'SR.2426' does break strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2426' does break strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2426' does break strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
src/handles-inl.h:50: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2426' does break strict-aliasing rules
src/api.h:58: note: initialized from here
cc1plus: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
cc1plus: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
cc1plus: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
src/handles.h:81: note: initialized from here
scons: *** [obj/release/api.o] Error 1
scons: building terminated because of errors.

This is 3306, possibly a bad revision? I tried out a few further back, but still kept getting this same problem. I also couldn't find any info via google or the arch forums/wiki about people compiling it on arch, surly I'm not the only one? tongue

Offline

#2 2009-11-14 01:53:58

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: V8 Javascript shell

Isn't there a native 64-bit V8 now?  I compiled chromium a while ago on 64-bit, and didn't need any multilib.

Offline

#3 2011-03-10 05:31:34

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: V8 Javascript shell

I just had this issue so for future reference, the correct way is to set the architecture flag to 64, i.e. "scons arch=64"

Offline

Board footer

Powered by FluxBB