slavas490 / v8-juice

code.google.com/p/v8-juice
Other
0 stars 0 forks source link

building on linux amd64 against v8 arch=x64 #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is the log of my build attempt on amd64 (debian stable):

mwilson@debian:~/src/v8-juice$ make
Making 'all' in /home/mwilson/src/v8-juice/src
  Making 'all' in /home/mwilson/src/v8-juice/src/include
    Making 'all' in /home/mwilson/src/v8-juice/src/include/v8
      Making 'all' in /home/mwilson/src/v8-juice/src/include/v8/juice
make[4]: Nothing to be done for `all'.
  Making 'all' in /home/mwilson/src/v8-juice/src/lib
    Making 'all' in /home/mwilson/src/v8-juice/src/lib/juice
Generating c-dlls rules: libv8-juice
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o PathFinder.o 
PathFinder.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o PathFinder-
js.o PathFinder-js.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o cleanup.o 
cleanup.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o convert.o 
convert.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o plugin.o 
plugin.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o juice.o 
juice.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o 
JSClassCreator.o JSClassCreator.cc
+ cc -pipe -O2 -DNDEBUG -I. -I/home/mwilson/src/v8-juice/src/include -
I/home/mwilson/include -I/home/mwilson/src/v8/include -c -I. -
I/home/mwilson/src/v8-juice/src/include -I/home/mwilson/include -o 
whprintf.o whprintf.c
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o jssprintf.o 
jssprintf.cc
g++ -pipe -O2 -DNDEBUG -fPIC  -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include  -c -o time.o 
time.cc
+ g++ -pipe -O2 -DNDEBUG -fPIC -I. -I/home/mwilson/src/v8-juice/src/include 
-I/home/mwilson/include -I/home/mwilson/src/v8/include -c -I. -
I/home/mwilson/src/v8-juice/src/include -I/home/mwilson/include -o mutex.o 
mutex.cpp
+ ar crs libv8-juice.a PathFinder.o PathFinder-js.o cleanup.o convert.o 
plugin.o juice.o JSClassCreator.o whprintf.o jssprintf.o time.o mutex.o
g++ -pipe -O2 -DNDEBUG -fPIC -o libv8-juice.so --export-dynamic -shared -
Wl,-soname=libv8-juice.so PathFinder.o PathFinder-js.o cleanup.o convert.o 
plugin.o juice.o JSClassCreator.o whprintf.o jssprintf.o time.o mutex.o -
ldl -rdynamic
/usr/bin/ld: whprintf.o: relocation R_X86_64_32S against `a local symbol' 
can not be used when making a shared object; recompile with -fPIC
whprintf.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libv8-juice.so] Error 1
make[2]: *** [subdir-juice] Error 2
make[1]: *** [subdir-lib] Error 2
make: *** [subdir-src] Error 2

Original issue reported on code.google.com by diakopter@gmail.com on 12 Sep 2009 at 5:45

GoogleCodeExporter commented 8 years ago
The problem is here:

 cc -pipe -O2 -DNDEBUG -I. -I/home/mwilson/src/v8-juice/src/include -
I/home/mwilson/include -I/home/mwilson/src/v8/include -c -I. -
I/home/mwilson/src/v8-juice/src/include -I/home/mwilson/include -o
whprintf.o whprintf.c

where -fPIC is not getting set for .c files.

This is fixed in commit r693. Please re-run configure after updating.

Original comment by sgbeal@googlemail.com on 12 Sep 2009 at 6:08