{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/2982","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/2982/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/2982/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/2982/events","html_url":"https://github.com/conan-io/conan/issues/2982","id":328594516,"node_id":"MDU6SXNzdWUzMjg1OTQ1MTY=","number":2982,"title":"AutoToolsBuildEnvironment doesn't find dependencies when using Windows Bash","user":{"login":"wdobbe","id":19475596,"node_id":"MDQ6VXNlcjE5NDc1NTk2","avatar_url":"https://avatars2.githubusercontent.com/u/19475596?v=4","gravatar_id":"","url":"https://api.github.com/users/wdobbe","html_url":"https://github.com/wdobbe","followers_url":"https://api.github.com/users/wdobbe/followers","following_url":"https://api.github.com/users/wdobbe/following{/other_user}","gists_url":"https://api.github.com/users/wdobbe/gists{/gist_id}","starred_url":"https://api.github.com/users/wdobbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdobbe/subscriptions","organizations_url":"https://api.github.com/users/wdobbe/orgs","repos_url":"https://api.github.com/users/wdobbe/repos","events_url":"https://api.github.com/users/wdobbe/events{/privacy}","received_events_url":"https://api.github.com/users/wdobbe/received_events","type":"User","site_admin":false},"labels":[{"id":293864761,"node_id":"MDU6TGFiZWwyOTM4NjQ3NjE=","url":"https://api.github.com/repos/conan-io/conan/labels/bug","name":"bug","color":"fc2929","default":true},{"id":821746717,"node_id":"MDU6TGFiZWw4MjE3NDY3MTc=","url":"https://api.github.com/repos/conan-io/conan/labels/in%20review","name":"in review","color":"0000e6","default":false}],"state":"open","locked":false,"assignee":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"assignees":[{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/56","html_url":"https://github.com/conan-io/conan/milestone/56","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/56/labels","id":3434619,"node_id":"MDk6TWlsZXN0b25lMzQzNDYxOQ==","number":56,"title":"1.6","description":null,"creator":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":0,"state":"open","created_at":"2018-06-19T06:25:50Z","updated_at":"2018-06-26T10:46:44Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-06-01T17:05:27Z","updated_at":"2018-06-26T11:16:29Z","closed_at":null,"author_association":"NONE","body":"Conan version: 1.4\r\nOS: Windows 10, version 1803, build 17134.1, Windows subsystem for Linux installed (openSuse)\r\n\r\nI tried to build the following recipe:\r\nhttps://github.com/wdobbe/conan-graphicsmagick.git\r\n\r\nOn Linux the (autoconf) configure script of GraphicsMagick finds the libjpeg and libpng that Conan installed. However on Windows both libjpeg and libpng are not detected. (Note that the configure script will not complain too hard about this, and compilation will start anyway).\r\n\r\nWhen I open a windows bash prompt myself, set CPPFLAGS and LDFLAGS to the locations where Conan installed libjpeg and libpng and then run the configure script, it does detect both libraries.\r\n\r\nSo it looks like the CPPFLAGS and LDFLAGS environment variables that are set up by AutoToolsBuildEnvironment are not picked up by the configure script.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/400271285","html_url":"https://github.com/conan-io/conan/issues/2982#issuecomment-400271285","issue_url":"https://api.github.com/repos/conan-io/conan/issues/2982","id":400271285,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDI3MTI4NQ==","user":{"login":"wdobbe","id":19475596,"node_id":"MDQ6VXNlcjE5NDc1NTk2","avatar_url":"https://avatars2.githubusercontent.com/u/19475596?v=4","gravatar_id":"","url":"https://api.github.com/users/wdobbe","html_url":"https://github.com/wdobbe","followers_url":"https://api.github.com/users/wdobbe/followers","following_url":"https://api.github.com/users/wdobbe/following{/other_user}","gists_url":"https://api.github.com/users/wdobbe/gists{/gist_id}","starred_url":"https://api.github.com/users/wdobbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdobbe/subscriptions","organizations_url":"https://api.github.com/users/wdobbe/orgs","repos_url":"https://api.github.com/users/wdobbe/repos","events_url":"https://api.github.com/users/wdobbe/events{/privacy}","received_events_url":"https://api.github.com/users/wdobbe/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T11:16:29Z","updated_at":"2018-06-26T11:16:29Z","author_association":"NONE","body":"I tested the Feature/wsl_env_vars branch of your conan fork. Unfortunately the configure step of graphicsMagick fails because it cannot find grep:\r\n\r\n```\r\nC:\\Users\\wdobbe\\generated\\conan-graphicsmagick>python c:\\Users\\wdobbe\\opensource\\conan_forks\\conan\\conan.py build . --source-folder=tmp\\source --install-folder=tmp\\build --build-folder=tmp\\build --package-folder=tmp\\package\r\nProject: Running build()\r\nProject: Calling:\r\n > /mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/source/GraphicsMagick-1.3.30/configure --enable-shared=yes --enable-static=no --with-bzlib --with-jpeg --with-png --without-dps --without-fpx --without-jbig --without-jp2 --without-lcms2 --without-lzma --with-magick-plus-plus --without-perl --without-trio --without-webp --without-wmf --with-zlib --prefix=/mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/package --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32\r\nProject: run_in_windows_bash: C:\\WINDOWS\\system32\\bash.exe --login -c ^\"cd \\^\"/mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/build\\^\" ^&^& /mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/source/GraphicsMagick-1.3.30/configure --enable-shared=yes --enable-static=no --with-bzlib --with-jpeg --with-png --without-dps --without-fpx --without-jbig --without-jp2 --without-lcms2 --without-lzma --with-magick-plus-plus --without-perl --without-trio --without-webp --without-wmf --with-zlib --prefix=/mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/package --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32  ^\"\r\nProject: /etc/profile: line 137: grep: command not found\r\nProject: configuring GraphicsMagick 1.3.30\r\nProject: checking build system type... x86_64-w64-mingw32\r\nProject: checking host system type... x86_64-w64-mingw32\r\nProject: checking whether build environment is sane... yes\r\nProject: checking for a BSD-compatible install... /usr/bin/install -c\r\nProject: checking for a thread-safe mkdir -p... /usr/bin/mkdir -p\r\nProject: checking for gawk... gawk\r\nProject: checking whether make sets $(MAKE)... yes\r\nProject: checking whether make supports nested variables... yes\r\nProject: checking whether make supports nested variables... (cached) yes\r\nProject: checking for style of include used by make... GNU\r\nProject: checking for x86_64-w64-mingw32-gcc... C:/Users/wdobbe/.conan/data/mingw_installer/1.0/conan/stable/package/b2a5c106cd30b29d475da50a9633d31c2329d6bd/bin/gcc.exe\r\nProject: checking whether the C compiler works... no\r\nProject: configure: error: in `/mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/build':\r\nProject: configure: error: C compiler cannot create executables\r\nProject: See `config.log' for more details\r\nProject: run_in_windows_bash: C:\\WINDOWS\\system32\\bash.exe --login -c ^\"cd \\^\"/mnt/c/Users/wdobbe/generated/conan-graphicsmagick/tmp/build\\^\" ^&^& make -j4 ^\"\r\nProject: /etc/profile: line 137: grep: command not found\r\nProject: make: *** No targets specified and no makefile found.  Stop.\r\nERROR: GraphicsMagick/1.3.30@PROJECT: Error in build() method, line 80\r\n        env_build.make()\r\n        ConanException: Error 2 while executing make -j4\r\n```\r\n\r\nWith my own fork the configure step succeeds."}}
{"actor":{"display_login":"wdobbe"}}