clkao / plv8js-migrated

Automatically exported from code.google.com/p/plv8js
Other
0 stars 0 forks source link

Compilation error #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
commit db84950c842ecbd1c21d3050540fae69961bdb14

make static

fails with:

g++: error: build/v8-3.14.5/out/native/libv8_base.a: No such file or directory
g++: error: build/v8-3.14.5/out/native/libv8_snapshot.a: No such file or 
directory

The files are actually in http://code.google.com/p/plv8js/

Manually copying them to build/v8-3.14.5/out/native/ does not solve the issue:

g++ -O2 -Wall -Wmissing-prototypes -Wpointer-arith 
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-fpic -shared -o plv8.so plv8.o plv8_type.o plv8_func.o plv8_param.o 
coffee-script.o livescript.o -L/usr/local/pgsql/lib -Wl,--as-needed 
-Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags  
build/v8-3.14.5/out/native/libv8_base.a 
build/v8-3.14.5/out/native/libv8_snapshot.a
/usr/bin/ld: 
/home/maciej.gajewski/Software/plv8js/build/v8-3.14.5/out/native/obj.target/v8_b
ase/src/api.o: relocation R_X86_64_32S against `_ZTVN2v810ScriptDataE' can not 
be used when making a shared object; recompile with -fPIC
build/v8-3.14.5/out/native/libv8_base.a: could not read symbols: Bad value

Env: Ubuntu 12.04, x86_64, g++-4.7.2-2ubuntu1

Original issue reported on code.google.com by maciej.gajewski0 on 5 Feb 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Correction: the files are actually in 
build/v8-3.14.5/out/native/obj.target/tools/gyp/

Original comment by maciej.gajewski0 on 5 Feb 2013 at 3:07

GoogleCodeExporter commented 9 years ago
I need to go to my linux box, but I wonder why (and when) v8 chooses the 
different directory path...

Original comment by umi.tan...@gmail.com on 20 Feb 2013 at 8:05

GoogleCodeExporter commented 9 years ago
Try the latest master 808a254.  make static should be able to build.

Original comment by umi.tan...@gmail.com on 28 Feb 2013 at 8:48

GoogleCodeExporter commented 9 years ago
Tested; works.

Thank you.

Original comment by maciej.gajewski0 on 28 Feb 2013 at 9:52