{"action":"created","issue":{"url":"https://api.github.com/repos/htgt/CRISPR-Analyser/issues/14","repository_url":"https://api.github.com/repos/htgt/CRISPR-Analyser","labels_url":"https://api.github.com/repos/htgt/CRISPR-Analyser/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/htgt/CRISPR-Analyser/issues/14/comments","events_url":"https://api.github.com/repos/htgt/CRISPR-Analyser/issues/14/events","html_url":"https://github.com/htgt/CRISPR-Analyser/issues/14","id":168280528,"number":14,"title":"Unable to compile","user":{"login":"drchriscole","id":6098785,"avatar_url":"https://avatars.githubusercontent.com/u/6098785?v=3","gravatar_id":"","url":"https://api.github.com/users/drchriscole","html_url":"https://github.com/drchriscole","followers_url":"https://api.github.com/users/drchriscole/followers","following_url":"https://api.github.com/users/drchriscole/following{/other_user}","gists_url":"https://api.github.com/users/drchriscole/gists{/gist_id}","starred_url":"https://api.github.com/users/drchriscole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drchriscole/subscriptions","organizations_url":"https://api.github.com/users/drchriscole/orgs","repos_url":"https://api.github.com/users/drchriscole/repos","events_url":"https://api.github.com/users/drchriscole/events{/privacy}","received_events_url":"https://api.github.com/users/drchriscole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-29T08:58:58Z","updated_at":"2016-08-09T12:24:55Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to compile the code, but errors (see below). Any help much appreciated.\r\n\r\nChris\r\n\r\n$ ~/github/CRISPR-Analyser> make\r\n Building mongoose\r\nmkdir -p include\r\nmkdir -p lib\r\nmake -C vpiotr-mongoose-cpp linux && mv vpiotr-mongoose-cpp/libmongoose.so lib && cp vpiotr-mongoose-cpp/mongoose.h include/\r\nmake[1]: Entering directory `/cluster/gjb_lab/ccole/github/CRISPR-Analyser/vpiotr-mongoose-cpp'\r\ncc mongoose.c -shared -fPIC -fpic -o libmongoose.so -Wl,-soname,libmongoose.so -ldl -pthread -std=c99 -O2 -W -Wall -pedantic\r\ncc mongoose.c main.c -o mongoose -ldl -pthread -std=c99 -O2 -W -Wall -pedantic\r\nmake[1]: Leaving directory `/cluster/gjb_lab/ccole/github/CRISPR-Analyser/vpiotr-mongoose-cpp'\r\n Building mongoose c++ bindings\r\ncd vpiotr-mongoose-cpp && g++ -c -Wall -pthread -o ../build/mongcpp.o mongcpp.cpp -pthread -ldl -Llib -lmongoose && cp mongcpp.h ../include/\r\nmongcpp.cpp:644: warning: ignoring #pragma warning\r\nmongcpp.cpp:645: warning: ignoring #pragma warning\r\ng++ -std=c++0x -O3 -W -Wall -pedantic -O0 -DDEBUG -g -c -Iinclude -o build/crisprutil.o src/crisprutil.cpp\r\nIn file included from src/crisprutil.cpp:15:\r\nsrc/utils.h: In function ‘std::string util::format_off_targets(const T&)’:\r\nsrc/utils.h:82: error: call of overloaded ‘to_string(uint64_t&)’ is ambiguous\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2604: note: candidates are: std::string std::to_string(long long int)\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2610: note:                 std::string std::to_string(long long unsigned int)\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2616: note:                 std::string std::to_string(long double)\r\nsrc/utils.h: In function ‘std::string util::to_postgres_array(const T&, bool)’:\r\nsrc/utils.h:118: error: ‘struct std::string’ has no member named ‘front’\r\nsrc/utils.h:119: error: ‘struct std::string’ has no member named ‘back’\r\nsrc/utils.h: In function ‘std::string util::to_json_array(const T&, bool) [with T = std::vector<long unsigned int, std::allocator<long unsigned int> >]’:\r\nsrc/crisprutil.cpp:612:   instantiated from here\r\nsrc/utils.h:104: error: call of overloaded ‘to_string(const long unsigned int&)’ is ambiguous\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2604: note: candidates are: std::string std::to_string(long long int)\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2610: note:                 std::string std::to_string(long long unsigned int)\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:2616: note:                 std::string std::to_string(long double)\r\nmake: *** [build/crisprutil.o] Error 1"},"comment":{"url":"https://api.github.com/repos/htgt/CRISPR-Analyser/issues/comments/238536907","html_url":"https://github.com/htgt/CRISPR-Analyser/issues/14#issuecomment-238536907","issue_url":"https://api.github.com/repos/htgt/CRISPR-Analyser/issues/14","id":238536907,"user":{"login":"dparrysmith","id":2778642,"avatar_url":"https://avatars.githubusercontent.com/u/2778642?v=3","gravatar_id":"","url":"https://api.github.com/users/dparrysmith","html_url":"https://github.com/dparrysmith","followers_url":"https://api.github.com/users/dparrysmith/followers","following_url":"https://api.github.com/users/dparrysmith/following{/other_user}","gists_url":"https://api.github.com/users/dparrysmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dparrysmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dparrysmith/subscriptions","organizations_url":"https://api.github.com/users/dparrysmith/orgs","repos_url":"https://api.github.com/users/dparrysmith/repos","events_url":"https://api.github.com/users/dparrysmith/events{/privacy}","received_events_url":"https://api.github.com/users/dparrysmith/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T12:24:55Z","updated_at":"2016-08-09T12:24:55Z","body":"Hi Chris,\n\n \n\nI will try compiling on your version of CentOS. Please can you give me the output of ‘uname –a’ on your system so that I can get the architecture right? It sounds like you are just missing something form the compile time environment.\n\n \n\nThanks,\n\n \n\nDavid\n\n \n\n--\n\nDavid Parry-Smith PhD\n\nSenior Scientific Manager & Group Leader\n\nStem Cell Informatics\n\nWellcome Trust Sanger Institute\n\n \n\n01223 834244 ext 8782\n\n@perlmonkey\n\n \n\nFrom: Chris Cole <notifications@github.com>\nReply-To: htgt/CRISPR-Analyser <reply@reply.github.com>\nDate: Tuesday, 9 August 2016 13:05\nTo: htgt/CRISPR-Analyser <CRISPR-Analyser@noreply.github.com>\nCc: David Parry-Smith <dp10@sanger.ac.uk>, Comment <comment@noreply.github.com>\nSubject: Re: [htgt/CRISPR-Analyser] Unable to compile (#14)\n\n \n\nHi David,\n\nMany thanks for your efforts in trying to resolve this.\n\nIt looks like you've spun up a RedHat 7 instance. Unfortunately, we're still running RedHat (CentOS actually) 6 here. The base version of gcc is 4.4.7 in Centos 6. Our admins have installed newer versions of GCC (v4.8.1 and v4.9.3) both of which give the above error.\n\nIs there any chance of making pre-compiled binaries available?\nRegards,\n\nChris\n\n—\nYou are receiving this because you commented.\nReply to this email directly, view it on GitHub, or mute the thread.\n\n"}}
{"actor":{"display_login":"dparrysmith"}}