Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building source code on Manjaro 18 #1720

Closed
MasahikoSawada opened this issue Jul 6, 2019 · 5 comments

Comments

@MasahikoSawada
Copy link

commented Jul 6, 2019

Hi,

I’m trying to build YugaByteDB source code on Manjaro Linux 18.0.4. But I got the following error.

$ ./yb_build.sh release
(snip)
[cassandra-cpp-driver (uninstrumented)] make[2]: *** [CMakeFiles/cassandra.dir/build.make:89: CMakeFiles/cassandra.dir/src/auth.cpp.o] Error 1
[cassandra-cpp-driver (uninstrumented)] + ccache compiler -Dcassandra_EXPORTS -I/home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/include -I/home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src -I/home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-dr
iver-2.9.0-yb-4/src/ssl -I/home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/third_party/rapidjson -I/home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/third_party/sparsehash/src -I/usr/include -I/home/masahiko/.linuxbrew-yb-build/linuxbrew-20181203T161
736-xxxxxxxxxxxxxxxxxxxxxxxx/Cellar/openssl/1.0.2o_2/include -fno-omit-frame-pointer -fPIC -O2 -I/home/masahiko/work/yugabyte-db/thirdparty/installed/common/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -L/home/masahiko/work/yugabyte-db/thirdparty/installed/common/lib -Wl,-rpath,/tmp/making_sure_we_have_enough_room_
to_set_rpath_later__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________end_of_rpath -Wl,-rpath,/home/masahiko/wo
rk/yugabyte-db/thirdparty/installed/uninstrumented/lib -O3 -DNDEBUG -fPIC -fno-omit-frame-pointer -fPIC -O2 -I/home/masahiko/work/yugabyte-db/thirdparty/installed/common/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -L/home/masahiko/work/yugabyte-db/thirdparty/installed/common/lib -Wl,-rpath,/tmp/making_sure_we_have
enough_room_to_set_rpath_later__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________end_of_rpath -Wl,-rpath,/hom
e/masahiko/work/yugabyte-db/thirdparty/installed/uninstrumented/lib -std=c++11 -Wall -pedantic -Wextra -Wno-long-long -Wno-unused-parameter -Wno-variadic-macros -Wno-unused-local-typedefs -Werror -DCASS_BUILDING '-DLOG_FILE=“src/abstract_data.cpp”’ -o CMakeFiles/cassandra.dir/src/abstract_data.cpp.o -c /home/masahi
ko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/abstract_data.cpp
[cassandra-cpp-driver (uninstrumented)] In file included from /usr/include/sys/param.h:26:0,
[cassandra-cpp-driver (uninstrumented)] from /usr/include/uv/unix.h:41,
[cassandra-cpp-driver (uninstrumented)] from /usr/include/uv.h:62,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/ref_counted.hpp:25,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/buffer.hpp:20,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/abstract_data.hpp:20,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/abstract_data.cpp:17:
[cassandra-cpp-driver (uninstrumented)] /usr/include/limits.h:124:3: error: #include_next is a GCC extension [-Werror]
[cassandra-cpp-driver (uninstrumented)] # include_next <limits.h>
[cassandra-cpp-driver (uninstrumented)] ^
[cassandra-cpp-driver (uninstrumented)] In file included from /usr/include/bits/fcntl.h:61:0,
[cassandra-cpp-driver (uninstrumented)] from /usr/include/fcntl.h:35,
[cassandra-cpp-driver (uninstrumented)] from /usr/include/uv/unix.h:27,
[cassandra-cpp-driver (uninstrumented)] from /usr/include/uv.h:62,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/ref_counted.hpp:25,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/buffer.hpp:20,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/abstract_data.hpp:20,
[cassandra-cpp-driver (uninstrumented)] from /home/masahiko/work/yugabyte-db/thirdparty/src/cassandra-cpp-driver-2.9.0-yb-4/src/abstract_data.cpp:17:
[cassandra-cpp-driver (uninstrumented)] /usr/include/bits/fcntl-linux.h:355:27: error: ISO C++ forbids zero-size array ‘f_handle’ [-Werror=pedantic]
[cassandra-cpp-driver (uninstrumented)] unsigned char f_handle[0];
[cassandra-cpp-driver (uninstrumented)] ^
[cassandra-cpp-driver (uninstrumented)] cc1plus: all warnings being treated as errors
[cassandra-cpp-driver (uninstrumented)] make[2]: *** [CMakeFiles/cassandra.dir/build.make:63: CMakeFiles/cassandra.dir/src/abstract_data.cpp.o] Error 1

My environment is,

uname -r 4.19.49-1-MANJARO cat /etc/lsb-release
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.0.4
DISTRIB_CODENAME=Illyria
DISTRIB_DESCRIPTION=“Manjaro Linux”

Could please someone advise me how to solve it?

@OlegLoginov

This comment has been minimized.

Copy link
Contributor

commented Jul 8, 2019

Hi MasahikoSawada,
Unfortunately at the moment YB should be built by GCC-7 or GCC-5.5 only. GCC-8 is not supported yet.
You can try to install GCC-7 on your system and try to rebuild YB.

@OlegLoginov

This comment has been minimized.

Copy link
Contributor

commented Jul 8, 2019

Regarding the failed 'cassandra-cpp-driver' I can suggest a workaround how to disable the component building - edit 3 files in the YB source tree:

  1. In the file yugabyte/thirdparty/yb_build_thirdparty_main.py comment line 133:
#            build_definitions.cassandra_cpp_driver.CassandraCppDriverDependency(),
  1. In the file yugabyte/src/yb/integration-tests/CMakeLists.txt comment lines 115-121:
# set(YB_TEST_LINK_LIBS ${YB_TEST_LINK_LIBS} cassandra)
# set(CASS_DRIVER_VERSION "2.9.0-yb-4")
# set(CASS_DRIVER_INTERNAL_INCLUDE "${YB_THIRDPARTY_DIR}/src/cassandra-cpp-driver-${CASS_DRIVER_VERSION}/src")
# ADD_YB_TEST(cassandra_cpp_driver-test)
# target_include_directories(cassandra_cpp_driver-test PUBLIC
#   ${CASS_DRIVER_INTERNAL_INCLUDE}
#   "${CASS_DRIVER_INTERNAL_INCLUDE}/third_party/sparsehash/src")
  1. In the file yugabyte/CMakeLists.txt comment the lines 1662-1664:
# find_package(Cassandra REQUIRED)
# include_directories(SYSTEM ${LIBCASSANDRA_INCLUDE_DIR})
# ADD_THIRDPARTY_LIB(cassandra SHARED_LIB "${LIBCASSANDRA_SHARED_LIB}")

The steps are disabling the library & related tests from building. (But in my environment with GCC-8 I've got a few error in the next library anyway.)

@OlegLoginov

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

Hi @MasahikoSawada .
Have you any progress? Or may be new questions?

BR, Oleg

@ttyusupov

This comment has been minimized.

Copy link
Contributor

commented Jul 30, 2019

Hi @MasahikoSawada , were you able to build from source? Do you need any more help on this?

@ttyusupov

This comment has been minimized.

Copy link
Contributor

commented Aug 8, 2019

Hi @MasahikoSawada , just checking if you were able to get up and running. Please feel free to reach out, someone from our side will be happy to help. I am closing this issue for now, please feel free to open a new issue or reopen this one.

@ttyusupov ttyusupov closed this Aug 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.