All Errors During My Building


#1

When I build release 14.12/15.07,after I run "deployment/deploy.sh prepare_toolchain ", the error is shown as below:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
My solution is that:
sudo yum --disablerepo=epel -y update ca-certificates and then reboot,succeed!lalalalal·····


#2

ERROR: Could not find required config file: /etc/mock/centos-6-x86_64.cfg
ERROR: If you’re trying to specify a path, include the .cfg extension, e.g. -r ./target.cfg
solution:
sudo cp /etc/mock/epel-6-x86_64.cfg /etc/mock/centos-6-x86_64.cfg


#3

When I run the command “./run.py make -j4”,the error is various,for example:

/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
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: ‘scidb’ has not been declared
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

The error is caused by the lib “lib-4xx” and “lib-devel-4xx”,my solution is :

1、uninstall lib-4xx and lib-devel-4xx
rpm -qa | grep libpqxx
sudo rpm -e libpqxx-devel-4.0.1-2.el6.x86_64
sudo rpm -e libpqxx-4.0.1-2.el6.x86_64
2、download lib-3xx and lib-devel-3xx by yourself,then install them
sudo rpm -ivh libpqxx-3.1-16.3.x86_64.rpm
sudo rpm -ivh libpqxx-devel-3.1-16.3.x86_64.rpm
rpm -qa | grep libpqxx
3、change the file epel.po to stop libpqxx’s autoupdate
sudo sed -i '/[epel]/a exclude=libpqxx’ /etc/yum.repos.d/epel.repo*
4、to make sure scidb can run no matter the libpqxx‘s version is
vim scidb.spec.in
change libpgxx=… to libpgxx>=…

OK! We succeed!

The following steps is to redo the
“./run.py cleanup”、
“deployment/deploy.sh prepare_toolchain ”、
“deployment/deploy.sh prepare_coordinator ”、
“./run.py setup”、
“./run.py make -j4”