{"action":"closed","issue":{"url":"https://api.github.com/repos/DerrickWood/kraken2/issues/29","repository_url":"https://api.github.com/repos/DerrickWood/kraken2","labels_url":"https://api.github.com/repos/DerrickWood/kraken2/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/DerrickWood/kraken2/issues/29/comments","events_url":"https://api.github.com/repos/DerrickWood/kraken2/issues/29/events","html_url":"https://github.com/DerrickWood/kraken2/issues/29","id":344090500,"node_id":"MDU6SXNzdWUzNDQwOTA1MDA=","number":29,"title":"'SIZE_MAX' was not declared in this scope & 'UINT64_MAX' was not declared in this scope","user":{"login":"shyamrallapalli","id":3543099,"node_id":"MDQ6VXNlcjM1NDMwOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/3543099?v=4","gravatar_id":"","url":"https://api.github.com/users/shyamrallapalli","html_url":"https://github.com/shyamrallapalli","followers_url":"https://api.github.com/users/shyamrallapalli/followers","following_url":"https://api.github.com/users/shyamrallapalli/following{/other_user}","gists_url":"https://api.github.com/users/shyamrallapalli/gists{/gist_id}","starred_url":"https://api.github.com/users/shyamrallapalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyamrallapalli/subscriptions","organizations_url":"https://api.github.com/users/shyamrallapalli/orgs","repos_url":"https://api.github.com/users/shyamrallapalli/repos","events_url":"https://api.github.com/users/shyamrallapalli/events{/privacy}","received_events_url":"https://api.github.com/users/shyamrallapalli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-24T15:31:06Z","updated_at":"2018-08-06T01:34:20Z","closed_at":"2018-08-06T01:34:20Z","author_association":"NONE","body":"my linux distribution is ``` CentOS release 6.7 (Final)``` compiled kraken2 with gcc-4.9.3\r\n\r\n```bash\r\ng++ -fopenmp -Wall -std=c++11 -O3 -DLINEAR_PROBING   -c -o mmscanner.o mmscanner.cc\r\nIn file included from mmscanner.cc:7:0:\r\nmmscanner.h:34:23: error: 'SIZE_MAX' was not declared in this scope\r\n       size_t finish = SIZE_MAX);\r\n                       ^\r\nmmscanner.cc: In constructor 'kraken2::MinimizerScanner::MinimizerScanner(ssize_t, ssize_t, uint64_t, bool, uint64_t)':\r\nmmscanner.cc:32:18: error: 'SIZE_MAX' was not declared in this scope\r\n   if (finish_ == SIZE_MAX)\r\n                  ^\r\nmmscanner.cc: In member function 'void kraken2::MinimizerScanner::LoadSequence(std::string&, size_t, size_t)':\r\nmmscanner.cc:43:18: error: 'SIZE_MAX' was not declared in this scope\r\n   if (finish_ == SIZE_MAX)\r\n                  ^\r\nmake: *** [mmscanner.o] Error 1\r\n```\r\nfixed it based on suggestion in the following post\r\nhttps://stackoverflow.com/a/42097570\r\n\r\nThat lead to next issue \r\n```bash\r\ng++ -fopenmp -Wall -std=c++11 -O3 -DLINEAR_PROBING    classify.cc reports.o mmap_file.o compact_hash.o taxonomy.o seqreader.o mmscanner.o omp_hack.o aa_translate.o   -o classify\r\nclassify.cc: In function 'taxid_t ClassifySequence(kraken2::Sequence&, kraken2::Sequence&, std::ostringstream&, kraken2::KeyValueStore*, kraken2::Taxonomy&, IndexOptions&, Options&, ClassificationStats&, kraken2::MinimizerScanner&, std::vector<long unsigned int>&, taxon_counts_t&, std::vector<std::basic_string<char> >&)':\r\nclassify.cc:505:33: error: 'UINT64_MAX' was not declared in this scope\r\n       uint64_t last_minimizer = UINT64_MAX;\r\n                                 ^\r\nmake: *** [classify] Error 1\r\n```\r\n\r\nfixed it based on the suggestion from following post\r\nhttps://stackoverflow.com/a/3233069\r\n\r\nposting the patch here as a solution for any one facing this issue\r\n[fix_install_kraken2.patch.txt](https://github.com/DerrickWood/kraken2/files/2224300/fix_install_kraken2.patch.txt)\r\n"}}
{"actor":{"display_login":"DerrickWood"}}