Skip to content

Instantly share code, notes, and snippets.

@acgetchell
Last active July 27, 2017 18:37
Show Gist options
  • Save acgetchell/c19ed392d12dadebeb07932ff864f1b6 to your computer and use it in GitHub Desktop.
Save acgetchell/c19ed392d12dadebeb07932ff864f1b6 to your computer and use it in GitHub Desktop.
Compiler/linker errors on test case using apache arrow
adam@feynman:~/arrow-test$ cmake .
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/adam/arrow-test
adam@feynman:~/arrow-test$ cmake --build .
Scanning dependencies of target arrow-test
[ 50%] Building CXX object CMakeFiles/arrow-test.dir/main.cpp.o
[100%] Linking CXX executable arrow-test
CMakeFiles/arrow-test.dir/main.cpp.o: In function `main':
main.cpp:(.text+0x1a5): undefined reference to `arrow::int64()'
main.cpp:(.text+0x1aa): undefined reference to `arrow::default_memory_pool()'
main.cpp:(.text+0x36e): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Finish(std::shared_ptr<arrow::Array>*)'
main.cpp:(.text+0x3cb): undefined reference to `arrow::NumericArray<arrow::Int64Type>::raw_data() const'
CMakeFiles/arrow-test.dir/main.cpp.o: In function `arrow::Status::Status(arrow::Status const&)':
main.cpp:(.text._ZN5arrow6StatusC2ERKS0_[_ZN5arrow6StatusC5ERKS0_]+0x27): undefined reference to `arrow::Status::CopyState(char const*)'
CMakeFiles/arrow-test.dir/main.cpp.o: In function `arrow::ArrayBuilder::ArrayBuilder(arrow::MemoryPool*, std::shared_ptr<arrow::DataType> const&)':
main.cpp:(.text._ZN5arrow12ArrayBuilderC2EPNS_10MemoryPoolERKSt10shared_ptrINS_8DataTypeEE[_ZN5arrow12ArrayBuilderC5EPNS_10MemoryPoolERKSt10shared_ptrINS_8DataTypeEE]+0x17): undefined reference to `vtable for arrow::ArrayBuilder'
CMakeFiles/arrow-test.dir/main.cpp.o: In function `arrow::ArrayBuilder::~ArrayBuilder()':
main.cpp:(.text._ZN5arrow12ArrayBuilderD2Ev[_ZN5arrow12ArrayBuilderD5Ev]+0xf): undefined reference to `vtable for arrow::ArrayBuilder'
CMakeFiles/arrow-test.dir/main.cpp.o: In function `arrow::NumericBuilder<arrow::Int64Type>::Append(long)':
main.cpp:(.text._ZN5arrow14NumericBuilderINS_9Int64TypeEE6AppendEl[_ZN5arrow14NumericBuilderINS_9Int64TypeEE6AppendEl]+0x38): undefined reference to `arrow::ArrayBuilder::Reserve(long)'
CMakeFiles/arrow-test.dir/main.cpp.o: In function `arrow::PrimitiveBuilder<arrow::Int64Type>::AppendNull()':
main.cpp:(.text._ZN5arrow16PrimitiveBuilderINS_9Int64TypeEE10AppendNullEv[_ZN5arrow16PrimitiveBuilderINS_9Int64TypeEE10AppendNullEv]+0x34): undefined reference to `arrow::ArrayBuilder::Reserve(long)'
main.cpp:(.text._ZN5arrow16PrimitiveBuilderINS_9Int64TypeEE10AppendNullEv[_ZN5arrow16PrimitiveBuilderINS_9Int64TypeEE10AppendNullEv]+0x89): undefined reference to `arrow::ArrayBuilder::UnsafeAppendToBitmap(bool)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTVN5arrow14NumericBuilderINS_9Int64TypeEEE[_ZTVN5arrow14NumericBuilderINS_9Int64TypeEEE]+0x20): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Init(long)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTVN5arrow14NumericBuilderINS_9Int64TypeEEE[_ZTVN5arrow14NumericBuilderINS_9Int64TypeEEE]+0x28): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Resize(long)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTVN5arrow14NumericBuilderINS_9Int64TypeEEE[_ZTVN5arrow14NumericBuilderINS_9Int64TypeEEE]+0x30): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Finish(std::shared_ptr<arrow::Array>*)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTVN5arrow16PrimitiveBuilderINS_9Int64TypeEEE[_ZTVN5arrow16PrimitiveBuilderINS_9Int64TypeEEE]+0x20): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Init(long)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTVN5arrow16PrimitiveBuilderINS_9Int64TypeEEE[_ZTVN5arrow16PrimitiveBuilderINS_9Int64TypeEEE]+0x28): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Resize(long)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTVN5arrow16PrimitiveBuilderINS_9Int64TypeEEE[_ZTVN5arrow16PrimitiveBuilderINS_9Int64TypeEEE]+0x30): undefined reference to `arrow::PrimitiveBuilder<arrow::Int64Type>::Finish(std::shared_ptr<arrow::Array>*)'
CMakeFiles/arrow-test.dir/main.cpp.o:(.data.rel.ro._ZTIN5arrow16PrimitiveBuilderINS_9Int64TypeEEE[_ZTIN5arrow16PrimitiveBuilderINS_9Int64TypeEEE]+0x10): undefined reference to `typeinfo for arrow::ArrayBuilder'
collect2: error: ld returned 1 exit status
CMakeFiles/arrow-test.dir/build.make:94: recipe for target 'arrow-test' failed
make[2]: *** [arrow-test] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/arrow-test.dir/all' failed
make[1]: *** [CMakeFiles/arrow-test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment