{"action":"created","issue":{"url":"https://api.github.com/repos/travitch/whole-program-llvm/issues/48","repository_url":"https://api.github.com/repos/travitch/whole-program-llvm","labels_url":"https://api.github.com/repos/travitch/whole-program-llvm/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/travitch/whole-program-llvm/issues/48/comments","events_url":"https://api.github.com/repos/travitch/whole-program-llvm/issues/48/events","html_url":"https://github.com/travitch/whole-program-llvm/issues/48","id":178086127,"number":48,"title":"clang-3.4: error: linker command failed with exit code 1 (use -v to see invocation)","user":{"login":"qingkunM","id":16755305,"avatar_url":"https://avatars.githubusercontent.com/u/16755305?v=3","gravatar_id":"","url":"https://api.github.com/users/qingkunM","html_url":"https://github.com/qingkunM","followers_url":"https://api.github.com/users/qingkunM/followers","following_url":"https://api.github.com/users/qingkunM/following{/other_user}","gists_url":"https://api.github.com/users/qingkunM/gists{/gist_id}","starred_url":"https://api.github.com/users/qingkunM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingkunM/subscriptions","organizations_url":"https://api.github.com/users/qingkunM/orgs","repos_url":"https://api.github.com/users/qingkunM/repos","events_url":"https://api.github.com/users/qingkunM/events{/privacy}","received_events_url":"https://api.github.com/users/qingkunM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-20T15:02:25Z","updated_at":"2016-09-21T04:40:51Z","closed_at":null,"body":"Hello, when i compile pkg-config-0.18.1 the following problem comes up. It denotes something wrong with the linker command. Does anyone know the problem? Thank you very much.\r\n\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gtree.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gtree.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gtree.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(ghash.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(ghash.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(ghash.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(garray.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(garray.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(garray.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(glist.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(glist.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(glist.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gslist.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gslist.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gslist.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestgdate.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gmem.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gmem.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gmem.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gmessages.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gmessages.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gmessages.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gmutex.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gmutex.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gmutex.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gnode.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gnode.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gnode.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gprimes.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gprimes.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gprimes.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(grel.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(grel.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(grel.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gslist.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gslist.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gslist.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gstrfuncs.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gstring.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gstring.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gstring.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gtimer.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gtimer.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gtimer.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gtree.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gtree.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gtree.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\n./.libs/libglib.a(gutils.o): In function `g_bit_nth_lsf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: multiple definition of `g_bit_nth_lsf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1563: first defined here\r\n./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: multiple definition of `g_bit_nth_msf'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1578: first defined here\r\n./.libs/libglib.a(gutils.o): In function `g_bit_storage':\r\n/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: multiple definition of `g_bit_storage'\r\ntestglib.o:/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8/./glib.h:1596: first defined here\r\nclang-3.4: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[4]: *** [testgdateparser] Error 1\r\nmake[4]: *** Waiting for unfinished jobs....\r\nclang-3.4: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[4]: *** [testgdate] Error 1\r\nclang-3.4: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[4]: *** [testglib] Error 1\r\nmake[4]: Leaving directory `/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8'\r\nmake[3]: *** [all-recursive] Error 1\r\nmake[3]: Leaving directory `/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8'\r\nmake[2]: *** [all] Error 2\r\nmake[2]: Leaving directory `/home/mqk/Downloads/pkg-config-0.18.1/glib-1.2.8'\r\nmake[1]: *** [all-recursive] Error 1\r\nmake[1]: Leaving directory `/home/mqk/Downloads/pkg-config-0.18.1'\r\nmake: *** [all] Error 2"},"comment":{"url":"https://api.github.com/repos/travitch/whole-program-llvm/issues/comments/248509939","html_url":"https://github.com/travitch/whole-program-llvm/issues/48#issuecomment-248509939","issue_url":"https://api.github.com/repos/travitch/whole-program-llvm/issues/48","id":248509939,"user":{"login":"qingkunM","id":16755305,"avatar_url":"https://avatars.githubusercontent.com/u/16755305?v=3","gravatar_id":"","url":"https://api.github.com/users/qingkunM","html_url":"https://github.com/qingkunM","followers_url":"https://api.github.com/users/qingkunM/followers","following_url":"https://api.github.com/users/qingkunM/following{/other_user}","gists_url":"https://api.github.com/users/qingkunM/gists{/gist_id}","starred_url":"https://api.github.com/users/qingkunM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingkunM/subscriptions","organizations_url":"https://api.github.com/users/qingkunM/orgs","repos_url":"https://api.github.com/users/qingkunM/repos","events_url":"https://api.github.com/users/qingkunM/events{/privacy}","received_events_url":"https://api.github.com/users/qingkunM/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T04:40:51Z","updated_at":"2016-09-21T04:40:51Z","body":"I am using clang-3.4 and llvm-3.4(build from source instead of pre-binary).  Building pkg-config-0.18.1 through gcc just woks well. Hoping for your advices @travitch @ianamason."}}
{"actor":{"display_login":"qingkunM"}}