Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Build fails on Ubuntu 16.04 LTS with gcc 5.4.0 #10

@admercs

Description

@admercs
luarocks make
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/opt/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/opt/torch/install/lib/luarocks/rocks/thrift/scm-1" -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC;
make

-- Found Torch7 in /opt/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Downloads/torch-thrift/build
[ 25%] Building C object CMakeFiles/thrift.dir/src/thrift.c.o
/root/Downloads/torch-thrift/src/thrift.c: In function ‘thrift_read_rcsv’:
/root/Downloads/torch-thrift/src/thrift.c:243:16: error: implicit declaration of function ‘betoh64’ [-Werror=implicit-function-declaration]
          i64 = betoh64(i64);
                ^
/root/Downloads/torch-thrift/src/thrift.c:257:16: error: implicit declaration of function ‘betoh16’ [-Werror=implicit-function-declaration]
          i16 = betoh16(i16);
                ^
/root/Downloads/torch-thrift/src/thrift.c:271:16: error: implicit declaration of function ‘betoh32’ [-Werror=implicit-function-declaration]
          i32 = betoh32(i32);
                ^
cc1: all warnings being treated as errors
CMakeFiles/thrift.dir/build.make:62: recipe for target 'CMakeFiles/thrift.dir/src/thrift.c.o' failed
make[2]: *** [CMakeFiles/thrift.dir/src/thrift.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thrift.dir/all' failed
make[1]: *** [CMakeFiles/thrift.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Error: Build error: Failed building.

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