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

Development / contributor build #345

Open
alippai opened this issue Feb 27, 2022 · 0 comments
Open

Development / contributor build #345

alippai opened this issue Feb 27, 2022 · 0 comments

Comments

@alippai
Copy link
Contributor

alippai commented Feb 27, 2022

I've tried to build turbodbc based on https://turbodbc.readthedocs.io/en/latest/pages/contributing.html#development-version in order to develop it (I've always did it using the web editor ¯_(ツ)_/¯).

A few issues I'm facing when trying to build it using conda:

  1. Pybind11 download
wget -q https://github.com/pybind/pybind11/archive/v2.9.1.tar.gz
tar xvf v2.9.1.tar.gz

Likely a rename of the inner folder to pybind11 is missing
2. I get

CMake Warning (dev) at turbodbc-dev/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (Arrow).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  turbodbc-dev/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake_scripts/FindArrow.cmake:26 (include)
  cpp/turbodbc_arrow/CMakeLists.txt:12 (find_package)
  1. I get warning:
CMake Warning (dev) at cpp/cpp_odbc/Test/CMakeLists.txt:9 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "googletest_build" of target "cpp_odbc_test" does not
  exist.
  1. I get several similar warnings:
CMake Warning at pybind11/tools/pybind11Tools.cmake:165 (add_library):
  Cannot generate a safe runtime search path for target
  turbodbc_arrow_support because files in some directories may conflict with
  libraries in implicit directories:

    runtime library [libodbc.so.2] in /usr/lib64 may be hidden by files in:
      miniconda3/envs/turbodbc-dev/lib

  Some of these libraries may not be found correctly.
  1. linking fails with dozens of errors like this:
[ 32%] Linking CXX executable cpp_odbc_test
CMakeFiles/cpp_odbc_test.dir/cpp_odbc_test/level1_mock_api.cpp.o: In function `testing::internal::ExpectationBase::DescribeLocationTo(std::ostream*) const':
miniconda3/envs/turbodbc-dev/include/gmock/gmock-spec-builders.h:714: undefined reference to `testing::internal::FormatFileLocation(char const*, int)'

I assume I'm missing a build step running the (c)make for the google test or a similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant