8000 can compile,. but can't link! · Issue #64 · facebookarchive/thpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
can compile,. but can't link! #64
Open
@wangdongxuking61

Description

@wangdongxuking61

Scanning dependencies of target thpp
[ 5%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
[ 10%] Building CXX object CMakeFiles/thpp.dir/StorageSerialization.cpp.o
[ 15%] Building CXX object CMakeFiles/thpp.dir/detail/StorageDefs.cpp.o
[ 20%] Building CXX object CMakeFiles/thpp.dir/TensorSerialization.cpp.o
[ 25%] Building CXX object CMakeFiles/thpp.dir/detail/TensorDefs.cpp.o
[ 30%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_data.cpp.o
[ 35%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_types.cpp.o
[ 40%] Building CXX object CMakeFiles/thpp.dir/thpp/if/gen-cpp2/Tensor_constants.cpp.o
[ 45%] Linking CXX shared library libthpp.so
/usr/bin/ld: /usr/local/lib/libfolly.a(Conv.cpp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfolly.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/thpp.dir/build.make:304: recipe for target 'libthpp.so' failed
make[2]: *** [libthpp.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

i recompile folly by adding
set(CMAKE_CXX_FLAGS "-fPIC")

but no use.
i think the project is not maintained by facebook....f**c...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0