{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/pykaldi/pykaldi/pulls/25","id":172701718,"html_url":"https://github.com/pykaldi/pykaldi/pull/25","diff_url":"https://github.com/pykaldi/pykaldi/pull/25.diff","patch_url":"https://github.com/pykaldi/pykaldi/pull/25.patch","issue_url":"https://api.github.com/repos/pykaldi/pykaldi/issues/25","number":25,"state":"open","locked":false,"title":"Fix build when users specify PYCLIF/CLIF_MATCHE/KALDI_DIR with relative paths","user":{"login":"r9y9","id":1220272,"avatar_url":"https://avatars1.githubusercontent.com/u/1220272?v=4","gravatar_id":"","url":"https://api.github.com/users/r9y9","html_url":"https://github.com/r9y9","followers_url":"https://api.github.com/users/r9y9/followers","following_url":"https://api.github.com/users/r9y9/following{/other_user}","gists_url":"https://api.github.com/users/r9y9/gists{/gist_id}","starred_url":"https://api.github.com/users/r9y9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r9y9/subscriptions","organizations_url":"https://api.github.com/users/r9y9/orgs","repos_url":"https://api.github.com/users/r9y9/repos","events_url":"https://api.github.com/users/r9y9/events{/privacy}","received_events_url":"https://api.github.com/users/r9y9/received_events","type":"User","site_admin":false},"body":"e.g, \r\n```\r\nDEBUG=1 PYCLIF=~/opt/clif/bin/pyclif \\\r\nKALDI_DIR=../kaldi-for-pykaldi \\ # relative path here\r\nCLIF_MATCHER=~/opt/clif/clang/bin/clif-matcher \\\r\npython setup.py develop\r\n```\r\n\r\nthe command above produces the following `file not found` errors:\r\n\r\n```\r\n[  2%] Generating chain-datastruct-clifwrap.cc, chain-datastruct-clifwrap.h, chain-datastruct-clifwrap-init.cc\r\ncd /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/chain && /home/ryuichi/opt/clif/bin/pyclif --py3output --matcher_bin=/home/ryuichi/opt/clif/clang/bin/clif-matcher --ccdeps_out /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/chain/chain-datastruct-clifwrap.cc --header_out /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/chain/chain-datastruct-clifwrap.h --ccinit_out /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/chain/chain-datastruct-clifwrap-init.cc --modname=_chain_datastruct --prepend=clif/python/types.h -I/home/ryuichi/Dropbox/asr/pykaldi -I/home/ryuichi/Dropbox/asr/pykaldi/kaldi -I/home/ryuichi/Dropbox/asr/pykaldi/build/kaldi -I../kaldi-for-pykaldi/src \"-f-I/home/ryuichi/anaconda3/include/python3.6m              -I/home/ryuichi/Dropbox/asr/pykaldi              -I/home/ryuichi/Dropbox/asr/pykaldi/kaldi              -I/home/ryuichi/Dropbox/asr/pykaldi/build/kaldi              -I../kaldi-for-pykaldi/src              -I/home/ryuichi/opt/clif/clang/lib/clang/5.0.0/include               -std=c++11 -I.. -I/home/ryuichi/Dropbox/asr/kaldi-for-pykaldi/tools/openfst/include -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/ryuichi/Dropbox/asr/kaldi-for-pykaldi/tools/ATLAS_headers/include -msse -msse2 -pthread -g -fPIC -DHAVE_CUDA -I/usr/local/cuda/include\" /home/ryuichi/Dropbox/asr/pykaldi/kaldi/chain/chain-datastruct.clif\r\n/dev/stdin:2:10: fatal error: 'base/timer.h' file not found\r\n#include \"base/timer.h\"\r\n         ^~~~~~~~~~~~~~\r\n_BackendError: Matcher failed with status 1\r\n/dev/stdin:2:10: fatal error: 'base/kaldi-error.h' file not found\r\n#include \"base/kaldi-error.h\"\r\n         ^~~~~~~~~~~~~~~~~~~~\r\n_BackendError: Matcher failed with status 1\r\nkaldi/base/CMakeFiles/_timer_pyclif.dir/build.make:65: recipe for target 'kaldi/base/timer-clifwrap.cc' failed\r\nmake[2]: *** [kaldi/base/timer-clifwrap.cc] Error 4\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nCMakeFiles/Makefile2:244: recipe for target 'kaldi/base/CMakeFiles/_timer_pyclif.dir/all' failed\r\nmake[1]: *** [kaldi/base/CMakeFiles/_timer_pyclif.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n/dev/stdin:2:10: fatal error: 'itf/options-itf.h' file not found\r\n#include \"itf/options-itf.h\"\r\n         ^~~~~~~~~~~~~~~~~~~\r\nkaldi/base/CMakeFiles/_kaldi_error_pyclif.dir/build.make:65: recipe for target 'kaldi/base/kaldi-error-clifwrap.cc' failed\r\nmake[2]: *** [kaldi/base/kaldi-error-clifwrap.cc] Error 4\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nCMakeFiles/Makefile2:431: recipe for target 'kaldi/base/CMakeFiles/_kaldi_error_pyclif.dir/all' failed\r\nmake[1]: *** [kaldi/base/CMakeFiles/_kaldi_error_pyclif.dir/all] Error 2\r\n_BackendError: Matcher failed with status 1\r\nkaldi/itf/CMakeFiles/_options_itf_pyclif.dir/build.make:65: recipe for target 'kaldi/itf/options-itf-clifwrap.cc' failed\r\nmake[2]: *** [kaldi/itf/options-itf-clifwrap.cc] Error 4\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nCMakeFiles/Makefile2:8517: recipe for target 'kaldi/itf/CMakeFiles/_options_itf_pyclif.dir/all' failed\r\nmake[1]: *** [kaldi/itf/CMakeFiles/_options_itf_pyclif.dir/all] Error 2\r\n/dev/stdin:2:10: fatal error: 'base/kaldi-math.h' file not found\r\n#include \"base/kaldi-math.h\"\r\n         ^~~~~~~~~~~~~~~~~~~\r\n_BackendError: Matcher failed with status 1\r\ncd /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/base && ../../../tools/use_namespace.sh /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/base/fstream-clifwrap.cc\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\n[  2%] Built target _fstream_pyclif\r\nkaldi/base/CMakeFiles/_kaldi_math_pyclif.dir/build.make:65: recipe for target 'kaldi/base/kaldi-math-clifwrap.cc' failed\r\nmake[2]: *** [kaldi/base/kaldi-math-clifwrap.cc] Error 4\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nCMakeFiles/Makefile2:847: recipe for target 'kaldi/base/CMakeFiles/_kaldi_math_pyclif.dir/all' failed\r\nmake[1]: *** [kaldi/base/CMakeFiles/_kaldi_math_pyclif.dir/all] Error 2\r\ncd /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/base && ../../../tools/use_namespace.sh /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/base/sstream-clifwrap.cc\r\ncd /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/base && ../../../tools/use_namespace.sh /home/ryuichi/Dropbox/asr/pykaldi/build/kaldi/base/iostream-clifwrap.cc\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\n[  2%] Built target _sstream_pyclif\r\n[  2%] Built target _iostream_pyclif\r\n/dev/stdin:2:10: fatal error: 'chain/chain-datastruct.h' file not found\r\n#include \"chain/chain-datastruct.h\"\r\n         ^~~~~~~~~~~~~~~~~~~~~~~~~~\r\n_BackendError: Matcher failed with status 1\r\nkaldi/chain/CMakeFiles/_chain_datastruct_pyclif.dir/build.make:65: recipe for target 'kaldi/chain/chain-datastruct-clifwrap.cc' failed\r\nmake[2]: *** [kaldi/chain/chain-datastruct-clifwrap.cc] Error 4\r\nmake[2]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nCMakeFiles/Makefile2:1079: recipe for target 'kaldi/chain/CMakeFiles/_chain_datastruct_pyclif.dir/all' failed\r\nmake[1]: *** [kaldi/chain/CMakeFiles/_chain_datastruct_pyclif.dir/all] Error 2\r\nmake[1]: Leaving directory '/home/ryuichi/Dropbox/asr/pykaldi/build'\r\nMakefile:86: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\nCommand '['make', '-j', '8']' returned non-zero exit status 2.\r\n```","created_at":"2018-03-04T04:20:42Z","updated_at":"2018-03-04T04:20:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pykaldi/pykaldi/pulls/25/commits","review_comments_url":"https://api.github.com/repos/pykaldi/pykaldi/pulls/25/comments","review_comment_url":"https://api.github.com/repos/pykaldi/pykaldi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pykaldi/pykaldi/issues/25/comments","statuses_url":"https://api.github.com/repos/pykaldi/pykaldi/statuses/311194666be133e5e40129a81a6863d9ef049dd3","head":{"label":"r9y9:fix-build-for-relative-paths","ref":"fix-build-for-relative-paths","sha":"311194666be133e5e40129a81a6863d9ef049dd3","user":{"login":"r9y9","id":1220272,"avatar_url":"https://avatars1.githubusercontent.com/u/1220272?v=4","gravatar_id":"","url":"https://api.github.com/users/r9y9","html_url":"https://github.com/r9y9","followers_url":"https://api.github.com/users/r9y9/followers","following_url":"https://api.github.com/users/r9y9/following{/other_user}","gists_url":"https://api.github.com/users/r9y9/gists{/gist_id}","starred_url":"https://api.github.com/users/r9y9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r9y9/subscriptions","organizations_url":"https://api.github.com/users/r9y9/orgs","repos_url":"https://api.github.com/users/r9y9/repos","events_url":"https://api.github.com/users/r9y9/events{/privacy}","received_events_url":"https://api.github.com/users/r9y9/received_events","type":"User","site_admin":false},"repo":{"id":119831696,"name":"pykaldi","full_name":"r9y9/pykaldi","owner":{"login":"r9y9","id":1220272,"avatar_url":"https://avatars1.githubusercontent.com/u/1220272?v=4","gravatar_id":"","url":"https://api.github.com/users/r9y9","html_url":"https://github.com/r9y9","followers_url":"https://api.github.com/users/r9y9/followers","following_url":"https://api.github.com/users/r9y9/following{/other_user}","gists_url":"https://api.github.com/users/r9y9/gists{/gist_id}","starred_url":"https://api.github.com/users/r9y9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r9y9/subscriptions","organizations_url":"https://api.github.com/users/r9y9/orgs","repos_url":"https://api.github.com/users/r9y9/repos","events_url":"https://api.github.com/users/r9y9/events{/privacy}","received_events_url":"https://api.github.com/users/r9y9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/r9y9/pykaldi","description":"A Python wrapper for Kaldi","fork":true,"url":"https://api.github.com/repos/r9y9/pykaldi","forks_url":"https://api.github.com/repos/r9y9/pykaldi/forks","keys_url":"https://api.github.com/repos/r9y9/pykaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r9y9/pykaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r9y9/pykaldi/teams","hooks_url":"https://api.github.com/repos/r9y9/pykaldi/hooks","issue_events_url":"https://api.github.com/repos/r9y9/pykaldi/issues/events{/number}","events_url":"https://api.github.com/repos/r9y9/pykaldi/events","assignees_url":"https://api.github.com/repos/r9y9/pykaldi/assignees{/user}","branches_url":"https://api.github.com/repos/r9y9/pykaldi/branches{/branch}","tags_url":"https://api.github.com/repos/r9y9/pykaldi/tags","blobs_url":"https://api.github.com/repos/r9y9/pykaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r9y9/pykaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r9y9/pykaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/r9y9/pykaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r9y9/pykaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/r9y9/pykaldi/languages","stargazers_url":"https://api.github.com/repos/r9y9/pykaldi/stargazers","contributors_url":"https://api.github.com/repos/r9y9/pykaldi/contributors","subscribers_url":"https://api.github.com/repos/r9y9/pykaldi/subscribers","subscription_url":"https://api.github.com/repos/r9y9/pykaldi/subscription","commits_url":"https://api.github.com/repos/r9y9/pykaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/r9y9/pykaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/r9y9/pykaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/r9y9/pykaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/r9y9/pykaldi/contents/{+path}","compare_url":"https://api.github.com/repos/r9y9/pykaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r9y9/pykaldi/merges","archive_url":"https://api.github.com/repos/r9y9/pykaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r9y9/pykaldi/downloads","issues_url":"https://api.github.com/repos/r9y9/pykaldi/issues{/number}","pulls_url":"https://api.github.com/repos/r9y9/pykaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/r9y9/pykaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/r9y9/pykaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r9y9/pykaldi/labels{/name}","releases_url":"https://api.github.com/repos/r9y9/pykaldi/releases{/id}","deployments_url":"https://api.github.com/repos/r9y9/pykaldi/deployments","created_at":"2018-02-01T12:16:34Z","updated_at":"2018-02-05T16:17:19Z","pushed_at":"2018-03-04T04:15:51Z","git_url":"git://github.com/r9y9/pykaldi.git","ssh_url":"git@github.com:r9y9/pykaldi.git","clone_url":"https://github.com/r9y9/pykaldi.git","svn_url":"https://github.com/r9y9/pykaldi","homepage":"https://pykaldi.github.io","size":1472,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pykaldi:master","ref":"master","sha":"4161a33ed0ecd3ada7216d6011aee6da7eed416c","user":{"login":"pykaldi","id":33529801,"avatar_url":"https://avatars3.githubusercontent.com/u/33529801?v=4","gravatar_id":"","url":"https://api.github.com/users/pykaldi","html_url":"https://github.com/pykaldi","followers_url":"https://api.github.com/users/pykaldi/followers","following_url":"https://api.github.com/users/pykaldi/following{/other_user}","gists_url":"https://api.github.com/users/pykaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/pykaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pykaldi/subscriptions","organizations_url":"https://api.github.com/users/pykaldi/orgs","repos_url":"https://api.github.com/users/pykaldi/repos","events_url":"https://api.github.com/users/pykaldi/events{/privacy}","received_events_url":"https://api.github.com/users/pykaldi/received_events","type":"Organization","site_admin":false},"repo":{"id":94806200,"name":"pykaldi","full_name":"pykaldi/pykaldi","owner":{"login":"pykaldi","id":33529801,"avatar_url":"https://avatars3.githubusercontent.com/u/33529801?v=4","gravatar_id":"","url":"https://api.github.com/users/pykaldi","html_url":"https://github.com/pykaldi","followers_url":"https://api.github.com/users/pykaldi/followers","following_url":"https://api.github.com/users/pykaldi/following{/other_user}","gists_url":"https://api.github.com/users/pykaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/pykaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pykaldi/subscriptions","organizations_url":"https://api.github.com/users/pykaldi/orgs","repos_url":"https://api.github.com/users/pykaldi/repos","events_url":"https://api.github.com/users/pykaldi/events{/privacy}","received_events_url":"https://api.github.com/users/pykaldi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pykaldi/pykaldi","description":"A Python wrapper for Kaldi","fork":false,"url":"https://api.github.com/repos/pykaldi/pykaldi","forks_url":"https://api.github.com/repos/pykaldi/pykaldi/forks","keys_url":"https://api.github.com/repos/pykaldi/pykaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pykaldi/pykaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pykaldi/pykaldi/teams","hooks_url":"https://api.github.com/repos/pykaldi/pykaldi/hooks","issue_events_url":"https://api.github.com/repos/pykaldi/pykaldi/issues/events{/number}","events_url":"https://api.github.com/repos/pykaldi/pykaldi/events","assignees_url":"https://api.github.com/repos/pykaldi/pykaldi/assignees{/user}","branches_url":"https://api.github.com/repos/pykaldi/pykaldi/branches{/branch}","tags_url":"https://api.github.com/repos/pykaldi/pykaldi/tags","blobs_url":"https://api.github.com/repos/pykaldi/pykaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pykaldi/pykaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pykaldi/pykaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pykaldi/pykaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pykaldi/pykaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/pykaldi/pykaldi/languages","stargazers_url":"https://api.github.com/repos/pykaldi/pykaldi/stargazers","contributors_url":"https://api.github.com/repos/pykaldi/pykaldi/contributors","subscribers_url":"https://api.github.com/repos/pykaldi/pykaldi/subscribers","subscription_url":"https://api.github.com/repos/pykaldi/pykaldi/subscription","commits_url":"https://api.github.com/repos/pykaldi/pykaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pykaldi/pykaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pykaldi/pykaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pykaldi/pykaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pykaldi/pykaldi/contents/{+path}","compare_url":"https://api.github.com/repos/pykaldi/pykaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pykaldi/pykaldi/merges","archive_url":"https://api.github.com/repos/pykaldi/pykaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pykaldi/pykaldi/downloads","issues_url":"https://api.github.com/repos/pykaldi/pykaldi/issues{/number}","pulls_url":"https://api.github.com/repos/pykaldi/pykaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/pykaldi/pykaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/pykaldi/pykaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pykaldi/pykaldi/labels{/name}","releases_url":"https://api.github.com/repos/pykaldi/pykaldi/releases{/id}","deployments_url":"https://api.github.com/repos/pykaldi/pykaldi/deployments","created_at":"2017-06-19T18:05:19Z","updated_at":"2018-03-02T09:35:40Z","pushed_at":"2018-03-04T00:38:21Z","git_url":"git://github.com/pykaldi/pykaldi.git","ssh_url":"git@github.com:pykaldi/pykaldi.git","clone_url":"https://github.com/pykaldi/pykaldi.git","svn_url":"https://github.com/pykaldi/pykaldi","homepage":"https://pykaldi.github.io","size":1806,"stargazers_count":50,"watchers_count":50,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":3,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pykaldi/pykaldi/pulls/25"},"html":{"href":"https://github.com/pykaldi/pykaldi/pull/25"},"issue":{"href":"https://api.github.com/repos/pykaldi/pykaldi/issues/25"},"comments":{"href":"https://api.github.com/repos/pykaldi/pykaldi/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/pykaldi/pykaldi/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/pykaldi/pykaldi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pykaldi/pykaldi/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/pykaldi/pykaldi/statuses/311194666be133e5e40129a81a6863d9ef049dd3"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":3,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"r9y9"}}