ERROR: last token was 'TDatum'


#1

Hi guys,

I tried to build Mapd Core on AWS p2 instance, ‘cmake -DCMAKE_BUILD_TYPE=debug …’ is successfully, then tried to run ‘make -j 4’, expose the ERROR: last token was ‘TDatum’. Does anyone can help me, I appreciate it first.

[ec2-user@ip-172-31-14-135 build] cmake -DCMAKE_BUILD_TYPE=debug .. -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- 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 -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found CUDA: /usr/local/cuda (found version "8.0") -- Found Folly: /usr/local/mapd-deps/20170505/lib/libfolly.a -- Found Curses: /usr/lib64/libcurses.so -- Found JNI: /usr/lib/jvm/jre/lib/amd64/libjawt.so -- Looking for bison++ -- Looking for bison++ -- /usr/local/mapd-deps/20170505/bin/bison++ -- Looking for flex++ -- Looking for flex++ -- /usr/bin/flex++ -- Configuring done -- Generating done -- Build files have been written to: /home/ec2-user/MapD/mapd-core/build [ec2-user@ip-172-31-14-135 build] make -j 4
[ 0%] Generating gen-cpp/MapD.cpp, gen-cpp/MapD.h, gen-cpp/mapd_constants.cpp, gen-cpp/mapd_types.cpp
[ 0%] Generating …/gen-cpp/CalciteServer.cpp, …/gen-cpp/calciteserver_constants.cpp, …/gen-cpp/calciteserver_types
Scanning dependencies of target rerun_cmake
[ERROR:/home/ec2-user/MapD/mapd-core/mapd.thrift:43] (last token was ‘TDatum’)
Type “TDatum” has not been defined.
make[2]: Scanning dependencies of target poly2tri
*** [gen-cpp/MapD.cpp] Error 1
make[1]: *** [CMakeFiles/mapd_thrift.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
Scanning dependencies of target calciteserver_thrift
[ 0%] Building CXX object ThirdParty/poly2tri/CMakeFiles/poly2tri.dir/poly2tri/common/shapes.cc.o
[ 1%] Building CXX object ThirdParty/poly2tri/CMakeFiles/poly2tri.dir/poly2tri/sweep/advancing_front.cc.o
[ 2%] Building CXX object Calcite/CMakeFiles/calciteserver_thrift.dir//gen-cpp/CalciteServer.cpp.o
[ 2%] Building CXX object ThirdParty/poly2tri/CMakeFiles/poly2tri.dir/poly2tri/sweep/cdt.cc.o
[ 3%] Building CXX object ThirdParty/poly2tri/CMakeFiles/poly2tri.dir/poly2tri/sweep/sweep.cc.o
[ 3%] Building CXX object ThirdParty/poly2tri/CMakeFiles/poly2tri.dir/poly2tri/sweep/sweep_context.cc.o
– Configuring done
[ 3%] Building CXX object Calcite/CMakeFiles/calciteserver_thrift.dir/
/gen-cpp/calciteserver_constants.cpp.o
[ 4%] Linking CXX static library libpoly2tri.a
[ 4%] Built target poly2tri
[ 5%] Building CXX object Calcite/CMakeFiles/calciteserver_thrift.dir/__/gen-cpp/calciteserver_types.cpp.o
– Generating done
– Build files have been written to: /home/ec2-user/MapD/mapd-core/build
[ 5%] Built target rerun_cmake
[ 5%] Linking CXX static library libcalciteserver_thrift.a
[ 5%] Built target calciteserver_thrift
make: *** [all] Error 2


#2

HI

It would appear you are not running on a Centos 7 or Ubuntu 16.04 instance on amazon for your build.

I would ask you to start a AWS instance using one of these OS’s and then retry your build.

Regards


#3

Thank you for your reply,

You are right, I built it on Red Hat Enterprise Linux Server release 7.3 (Maipo) on amazon P2, it is very similar to Centos 7. so if it caused by OS’s problem, how about if I create the Ubuntu 16.06 images on Docker ? Does the Mapd can be built on Docker?

Best,
Bowen


#4

Hi,

Now I build mapd-core on Ubuntu 16 of docker, then the other error is exposed like this, when I tired to ‘cmake -DCMAKE_BUILD_TYPE=debug …’, there are some variables need to linked, where should I linked it ?

root@ip-172-31-14-135:~/MapD/mapd-core/build# cmake -DCMAKE_BUILD_TYPE=debug …
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_CUDA_LIBRARY (ADVANCED)
linked by target “mapd_server” in directory /root/MapD/mapd-core
linked by target “CudaMgr” in directory /root/MapD/mapd-core/CudaMgr
linked by target “ResultSetTest” in directory /root/MapD/mapd-core/Tests
linked by target “ProfileTest” in directory /root/MapD/mapd-core/Tests
linked by target “ExecuteTest” in directory /root/MapD/mapd-core/Tests
linked by target “RunQueryLoop” in directory /root/MapD/mapd-core/Tests
linked by target “PlanTest” in directory /root/MapD/mapd-core/Tests
linked by target “ResultSetBaselineRadixSortTest” in directory /root/MapD/mapd-core/Tests
linked by target “StoragePerfTest” in directory /root/MapD/mapd-core/Tests
linked by target “StorageTest” in directory /root/MapD/mapd-core/Tests

– Configuring incomplete, errors occurred!

Thanks,
Bowen


#5

After ‘export CUDA_LIB_PATH=/usr/local/cuda/lib64/stubs/’,

Problem solved.

Thanks,
Bowen