{"action":"created","issue":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/7666","repository_url":"https://api.github.com/repos/chapel-lang/chapel","labels_url":"https://api.github.com/repos/chapel-lang/chapel/issues/7666/labels{/name}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/7666/comments","events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/7666/events","html_url":"https://github.com/chapel-lang/chapel/issues/7666","id":268937790,"number":7666,"title":"Support C++ headers in compileline","user":{"login":"buddha314","id":630441,"avatar_url":"https://avatars0.githubusercontent.com/u/630441?v=4","gravatar_id":"","url":"https://api.github.com/users/buddha314","html_url":"https://github.com/buddha314","followers_url":"https://api.github.com/users/buddha314/followers","following_url":"https://api.github.com/users/buddha314/following{/other_user}","gists_url":"https://api.github.com/users/buddha314/gists{/gist_id}","starred_url":"https://api.github.com/users/buddha314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buddha314/subscriptions","organizations_url":"https://api.github.com/users/buddha314/orgs","repos_url":"https://api.github.com/users/buddha314/repos","events_url":"https://api.github.com/users/buddha314/events{/privacy}","received_events_url":"https://api.github.com/users/buddha314/received_events","type":"User","site_admin":false},"labels":[{"id":496603397,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/type:%20Feature%20Request","name":"type: Feature Request","color":"e99695","default":false},{"id":520459015,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/user%20issue","name":"user issue","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-10-26T22:58:50Z","updated_at":"2017-11-02T00:40:13Z","closed_at":null,"author_association":"NONE","body":"`compileline` barfs on C++ headers\r\n\r\nhello.cpp\r\n```cpp\r\n/* Hello World program */\r\n\r\n//#include<stdio.h>   // just fine\r\n#include<iostream>  // gastro-intestinal distress...\r\n\r\nint main()\r\n{\r\n    printf(\"Hello World\\n\");\r\n}\r\n```\r\n\r\nAnd the `Makefile`\r\n```make\r\ndefault: hello.cpp\r\n\t`/Users/buddha/github/chapel/util/config/compileline --compile` $<\r\n```\r\n\r\nIf you watch closely, you can see it:\r\n\r\n```bash\r\nmake default\r\n`/Users/buddha/github/chapel/util/config/compileline --compile` hello.cpp\r\nIn file included from hello.cpp:4:\r\nIn file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/iostream:38:\r\nIn file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios:216:\r\nIn file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale:18:\r\nIn file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/mutex:189:\r\nIn file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__mutex_base:17:\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:156:1: error: unknown type name 'mach_port_t'\r\nmach_port_t __libcpp_thread_get_port();\r\n^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:300:1: error: unknown type name 'mach_port_t'\r\nmach_port_t __libcpp_thread_get_port() {\r\n^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/__threading_support:301:12: error: use of undeclared identifier 'pthread_mach_thread_np'\r\n    return pthread_mach_thread_np(pthread_self());\r\n           ^\r\n3 errors generated.\r\nmake: *** [default] Error 1\r\n```\r\n\r\n```bash\r\nchpl --version\r\nchpl Version 1.17.0 pre-release (8e8a423107)\r\nCopyright (c) 2004-2017, Cray Inc.  (See LICENSE file for more details)\r\n```\r\n\r\n```bash\r\n printchplenv \r\nmachine info: Darwin macbuddha.lan 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64\r\nCHPL_HOME: /Users/buddha/github/chapel *\r\nscript location: /Users/buddha/github/chapel/util\r\nCHPL_TARGET_PLATFORM: darwin\r\nCHPL_TARGET_COMPILER: clang\r\nCHPL_TARGET_ARCH: native\r\nCHPL_LOCALE_MODEL: flat\r\nCHPL_COMM: none\r\nCHPL_TASKS: qthreads\r\nCHPL_LAUNCHER: none\r\nCHPL_TIMERS: generic\r\nCHPL_UNWIND: none\r\nCHPL_MEM: jemalloc\r\nCHPL_MAKE: make\r\nCHPL_ATOMICS: intrinsics\r\nCHPL_GMP: gmp\r\nCHPL_HWLOC: hwloc\r\nCHPL_REGEXP: re2\r\nCHPL_AUX_FILESYS: none\r\n```"},"comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments/341284714","html_url":"https://github.com/chapel-lang/chapel/issues/7666#issuecomment-341284714","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/7666","id":341284714,"user":{"login":"nspark","id":2961664,"avatar_url":"https://avatars3.githubusercontent.com/u/2961664?v=4","gravatar_id":"","url":"https://api.github.com/users/nspark","html_url":"https://github.com/nspark","followers_url":"https://api.github.com/users/nspark/followers","following_url":"https://api.github.com/users/nspark/following{/other_user}","gists_url":"https://api.github.com/users/nspark/gists{/gist_id}","starred_url":"https://api.github.com/users/nspark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nspark/subscriptions","organizations_url":"https://api.github.com/users/nspark/orgs","repos_url":"https://api.github.com/users/nspark/repos","events_url":"https://api.github.com/users/nspark/events{/privacy}","received_events_url":"https://api.github.com/users/nspark/received_events","type":"User","site_admin":false},"created_at":"2017-11-02T00:40:13Z","updated_at":"2017-11-02T00:40:13Z","author_association":"CONTRIBUTOR","body":"@buddha314 I'm not sure what you mean. You seem to be invoking `compileline` from within a Makefile. Does invoking `compileline` with the extra flags in my earlier comment resolve your issue? If so, can you add those arguments to your Makefile?"}}
{"actor":{"display_login":"nspark"}}