Building V8 On Linux With GCC 4.3

By M. David Peterson
September 2, 2008

via a recent post to the V8-Dev mailing list, the always impressive Seo Sanghyeon provided the following info and patch related to building the V8 virtual machine on Linux via GCC 4.3:

Hello, everybody,

I had to do the following to build V8 on Debian unstable, with GCC 4.3.

$ scons -j2 sample=shell

Resulting shell calculated 1+1. That's all for now.


Index: src/objects-inl.h
===================================================================
--- src/objects-inl.h (revision 110)
+++ src/objects-inl.h (working copy)
@@ -246,7 +246,7 @@
}
-template <> static inline bool Is(Object* obj) {
+template <> inline bool Is(Object* obj) {
return obj->IsJSFunction();
}
@@ -293,7 +293,7 @@
}
-template <> static inline bool Is(Object* obj) {
+template <> inline bool Is(Object* obj) {
return obj->IsJSArray();
}
Index: SConstruct
===================================================================
--- SConstruct (revision 110)
+++ SConstruct (working copy)
@@ -89,7 +89,7 @@
'gcc': {
'all': {
'CXXFLAGS': [], #['-fvisibility=hidden'],
- 'WARNINGFLAGS': ['-pedantic', '-Wall', '-Werror', '-W',
+ 'WARNINGFLAGS': ['-pedantic', '-Wall', '-W',
'-Wno-unused-parameter']
},
'arch:arm': {


You might also be interested in:


Popular Topics

Archives

Or, visit our complete archives.

Recommended for You

Got a Question?