linmaogithub / pdfium

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

Build fails with component=shared_library exported #218

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I had component=shared_library in my GYP_DEFINES and the build errors out.

export GYP_DEFINES=component=shared_library
ninja -C out/Debug

[209/721] SOLINK lib/libicuuc.so
FAILED: if [ ! -e lib/libicuuc.so -o ! -e lib/libicuuc.so.TOC ]; then clang++ 
-shared -pthread -o lib/libicuuc.so -Wl,-soname=libicuuc.so 
@lib/libicuuc.so.rsp && { readelf -d lib/libicuuc.so | grep SONAME ; nm -gD -f 
p lib/libicuuc.so | cut -f1-2 -d' '; } > lib/libicuuc.so.TOC; else clang++ 
-shared -pthread -o lib/libicuuc.so -Wl,-soname=libicuuc.so 
@lib/libicuuc.so.rsp && { readelf -d lib/libicuuc.so | grep SONAME ; nm -gD -f 
p lib/libicuuc.so | cut -f1-2 -d' '; } > lib/libicuuc.so.tmp && if ! cmp -s 
lib/libicuuc.so.tmp lib/libicuuc.so.TOC; then mv lib/libicuuc.so.tmp 
lib/libicuuc.so.TOC ; fi; fi
/usr/bin/ld.bfd.real: obj/v8/third_party/icu/source/common/icuuc.brkiter.o: 
relocation R_X86_64_32S against `.bss' can not be used when making a shared 
object; recompile with -fPIC
obj/v8/third_party/icu/source/common/icuuc.brkiter.o: error adding symbols: Bad 
value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Original issue reported on code.google.com by dsinclair@chromium.org on 15 Oct 2015 at 8:02