Build of shim now fails for 14.12.0.9095 and solution


#1

Building shim under scidb-14.12.0.8739 or scidb-14.12.0.9095 now fails. Essentially, the file

utils/shim/CMakeLists.txt

performs a GIT_REPOSITORY of head which of course can evolve with time relative to scidb. The solution was to add

GIT_TAG v14.12.1

In terms of a context diff, this is

> diff -c CMakeLists.txt.org CMakeLists.txt
*** CMakeLists.txt.org	2015-08-16 20:44:22.094110015 +0200
--- CMakeLists.txt	2015-08-16 20:44:22.094110015 +0200
***************
*** 23,28 ****
--- 23,29 ----
  ExternalProject_Add(shim
    PREFIX "github"
    GIT_REPOSITORY https://github.com/Paradigm4/shim.git
+   GIT_TAG v14.12.1
    UPDATE_COMMAND ""
    PATCH_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/patch_command ${BOOST_ROOT} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${SCIDB_SHORT_VERSION}
    CONFIGURE_COMMAND ""

#2

Your solution is great! You help me a lot!
My error is shown as below:

/home/scidb/Downloads/scidbtrunk/src/query/FunctionLibrary.cpp: In ``member function ‘void scidb::FunctionLibrary::registerBuiltInFunctions()’:
/home/scidb/Downloads/scidbtrunk/src/query/FunctionLibrary.cpp:120: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
/home/scidb/Downloads/scidbtrunk/src/query/FunctionLibrary.cpp: In member function ‘void scidb::FunctionLibrary::registerBuiltInFunctions()’:
/home/scidb/Downloads/scidbtrunk/src/query/FunctionLibrary.cpp:120: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
/home/scidb/Downloads/scidbtrunk/stage/build/src/capi/scidbpython.cxx: In function ‘void SWIG_InitializeModule(void*)’:
/home/scidb/Downloads/scidbtrunk/stage/build/src/capi/scidbpython.cxx:63697: warning: statement has no effect
Already on ‘master’
client.cpp:32:22: error: SciDBAPI.h: No such file or directory
client.cpp: In function ‘void* scidbconnect(const char*, int)’:
client.cpp:74: error: ‘scidb’ has not been declared
client.cpp:74: error: expected initializer before ‘&’ token
client.cpp:76: error: ‘db’ was not declared in this scope
client.cpp: In function ‘void scidbdisconnect(void*)’:
client.cpp:90: error: ‘scidb’ has not been declared
client.cpp:90: error: expected initializer before ‘&’ token
client.cpp:92: error: ‘db’ was not declared in this scope
client.cpp: In function ‘long long unsigned int executeQuery(void*, char*, int, char*)’:
client.cpp:110: error: ‘scidb’ has not been declared
client.cpp:110: error: expected initializer before ‘&’ token
client.cpp:112: error: ‘scidb’ has not been declared
client.cpp:112: error: expected ‘;’ before ‘queryResult’
client.cpp:114: error: ‘db’ was not declared in this scope
client.cpp:114: error: ‘queryResult’ was not declared in this scope
client.cpp: In function ‘void prepare_query(void*, void*, char*, int, char*)’:
client.cpp:138: error: ‘scidb’ has not been declared
client.cpp:138: error: expected initializer before ‘&’ token
client.cpp:140: error: ‘scidb’ has not been declared
client.cpp:140: error: ‘q’ was not declared in this scope
client.cpp:140: error: expected type-specifier before ‘scidb’
client.cpp:140: error: expected ‘;’ before ‘scidb’
client.cpp:149: error: ‘db’ was not declared in this scope
client.cpp:155: error: type ‘’ argument given to ‘delete’, expected pointer
client.cpp: In function ‘QueryID execute_prepared_query(void*, char*, prep*, int, char*)’:
client.cpp:175: error: ‘scidb’ has not been declared
client.cpp:175: error: expected initializer before ‘&’ token
client.cpp:178: error: ‘q’ was not declared in this scope
client.cpp:178: error: ‘scidb’ has not been declared
client.cpp:178: error: expected primary-expression before ‘)’ token
client.cpp:178: error: expected ‘;’ before ‘pq’
client.cpp:185: error: ‘db’ was not declared in this scope
client.cpp:193: error: type ‘’ argument given to ‘delete’, expected pointer
client.cpp: In function ‘void completeQuery(QueryID, void*, char*)’:
client.cpp:204: error: ‘scidb’ has not been declared
client.cpp:204: error: expected initializer before ‘&’ token
client.cpp:205: error: ‘scidb’ has not been declared
client.cpp:205: error: expected ‘;’ before ‘q’
client.cpp:207: error: ‘db’ was not declared in this scope
client.cpp:207: error: ‘q’ was not declared in this scope
make[4]: *** [client] Error 1
make[3]: *** [shim] Error 2
make[2]: *** [utils/shim/github/src/shim-stamp/shim-build] Error 2
make[1]: *** [utils/shim/CMakeFiles/shim.dir/all] Error 2
make: *** [all] Error 2
./run.py: ERROR: Command make failed: Abnormal return code: 2 on command [’/usr/bin/make’, ‘-j1’]
Make sure commands setup,make,install,start are performed (in that order) before stop,stopForce,tests


#3

In a word,if your progress is stopped at around
“83%:,
and your error information include ”Performing build step for ‘shim’ client.cpp:32:22: error: SciDBAPI.h: No such file or directory balabalabala···
You can do such step:
vi utils/shim/CMakeLists.txt
add the following line after ”GIT_REPOSITORY“:
GIT_TAG v14.12.1