{"action":"created","issue":{"url":"https://api.github.com/repos/ueno/ruby-gpgme/issues/67","labels_url":"https://api.github.com/repos/ueno/ruby-gpgme/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/ueno/ruby-gpgme/issues/67/comments","events_url":"https://api.github.com/repos/ueno/ruby-gpgme/issues/67/events","html_url":"https://github.com/ueno/ruby-gpgme/issues/67","id":111110609,"number":67,"title":"Can't install: Incorrect arguments passed to the C compiler","user":{"login":"adament","id":270613,"avatar_url":"https://avatars.githubusercontent.com/u/270613?v=3","gravatar_id":"","url":"https://api.github.com/users/adament","html_url":"https://github.com/adament","followers_url":"https://api.github.com/users/adament/followers","following_url":"https://api.github.com/users/adament/following{/other_user}","gists_url":"https://api.github.com/users/adament/gists{/gist_id}","starred_url":"https://api.github.com/users/adament/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adament/subscriptions","organizations_url":"https://api.github.com/users/adament/orgs","repos_url":"https://api.github.com/users/adament/repos","events_url":"https://api.github.com/users/adament/events{/privacy}","received_events_url":"https://api.github.com/users/adament/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-13T05:48:25Z","updated_at":"2015-12-15T08:35:48Z","closed_at":"2015-12-15T08:35:48Z","body":"I tried installing gpgme 2.0.10 on my Arch Linux machine and got the error:\r\n\r\n```\r\nconfigure: error: in `/tmp/test/gem/gems/gpgme-2.0.10/ext/gpgme/tmp/x86_64-unknown-linux-gnu/ports/libgpg-error/1.20/libgpg-error-1.20':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n```\r\n\r\nLooking in config.log I get:\r\n\r\n```\r\nconfigure:3699: $? = 0\r\nconfigure:3688: gcc -v >&5\r\nUsing built-in specs.\r\nCOLLECT_GCC=gcc\r\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper\r\nTarget: x86_64-unknown-linux-gnu\r\nConfigured with: /build/gcc-multilib/src/gcc-5.2.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=gcc4-compatible\r\nThread model: posix\r\ngcc version 5.2.0 (GCC) \r\nconfigure:3699: $? = 0\r\nconfigure:3688: gcc -V >&5\r\ngcc: error: unrecognized command line option '-V'\r\ngcc: fatal error: no input files\r\ncompilation terminated.\r\nconfigure:3699: $? = 1\r\nconfigure:3688: gcc -qversion >&5\r\ngcc: error: unrecognized command line option '-qversion'\r\ngcc: fatal error: no input files\r\ncompilation terminated.\r\nconfigure:3699: $? = 1\r\nconfigure:3719: checking whether the C compiler works\r\nconfigure:3741: gcc '-fPIC '   conftest.c  >&5\r\ngcc: error: '-fPIC: No such file or directory\r\ngcc: error: ': No such file or directory\r\nconfigure:3745: $? = 1\r\nconfigure:3783: result: no\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n| #define PACKAGE_NAME \"libgpg-error\"\r\n| #define PACKAGE_TARNAME \"libgpg-error\"\r\n| #define PACKAGE_VERSION \"1.20\"\r\n| #define PACKAGE_STRING \"libgpg-error 1.20\"\r\n| #define PACKAGE_BUGREPORT \"http://bugs.gnupg.org\"\r\n| #define PACKAGE_URL \"\"\r\n| #define PACKAGE \"libgpg-error\"\r\n| #define VERSION \"1.20\"\r\n| /* end confdefs.h.  */\r\n| \r\n| int\r\n| main ()\r\n| {\r\n| \r\n|   ;\r\n|   return 0;\r\n| }\r\nconfigure:3788: error: in `/tmp/test/gem/gems/gpgme-2.0.10/ext/gpgme/tmp/x86_64-unknown-linux-gnu/ports/libgpg-error/1.20/libgpg-error-1.20':\r\nconfigure:3790: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n```\r\n\r\nRunning gcc --version I get\r\n\r\n```\r\ngcc (GCC) 5.2.0\r\nCopyright (C) 2015 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n```\r\n\r\nI think the error is that the single quote ' is prepended to -fPIC in ext/gpgme/extconf.rb. It works when compiling with --use-system-libraries.\r\n\r\nThe full command that I ran was:\r\n\r\n```\r\n> gem install --ignore-dependencies --no-user-install -i \"test/gem\" -n \"test/usr/bin\" gpgme-2.0.10.gem\r\n```\r\nand I have attached the output and the config.log here: https://gist.github.com/adament/68897817542127fc3c93"},"comment":{"url":"https://api.github.com/repos/ueno/ruby-gpgme/issues/comments/164684556","html_url":"https://github.com/ueno/ruby-gpgme/issues/67#issuecomment-164684556","issue_url":"https://api.github.com/repos/ueno/ruby-gpgme/issues/67","id":164684556,"user":{"login":"ueno","id":47549,"avatar_url":"https://avatars.githubusercontent.com/u/47549?v=3","gravatar_id":"","url":"https://api.github.com/users/ueno","html_url":"https://github.com/ueno","followers_url":"https://api.github.com/users/ueno/followers","following_url":"https://api.github.com/users/ueno/following{/other_user}","gists_url":"https://api.github.com/users/ueno/gists{/gist_id}","starred_url":"https://api.github.com/users/ueno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ueno/subscriptions","organizations_url":"https://api.github.com/users/ueno/orgs","repos_url":"https://api.github.com/users/ueno/repos","events_url":"https://api.github.com/users/ueno/events{/privacy}","received_events_url":"https://api.github.com/users/ueno/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T08:35:48Z","updated_at":"2015-12-15T08:35:48Z","body":"should be fixed in 2.0.11. sorry for the delay."}}