{"action":"created","issue":{"url":"https://api.github.com/repos/chrisvana/repobuild/issues/12","labels_url":"https://api.github.com/repos/chrisvana/repobuild/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/chrisvana/repobuild/issues/12/comments","events_url":"https://api.github.com/repos/chrisvana/repobuild/issues/12/events","html_url":"https://github.com/chrisvana/repobuild/issues/12","id":56126511,"number":12,"title":"Compilation failure","user":{"login":"Baughn","id":45811,"avatar_url":"https://avatars.githubusercontent.com/u/45811?v=3","gravatar_id":"","url":"https://api.github.com/users/Baughn","html_url":"https://github.com/Baughn","followers_url":"https://api.github.com/users/Baughn/followers","following_url":"https://api.github.com/users/Baughn/following{/other_user}","gists_url":"https://api.github.com/users/Baughn/gists{/gist_id}","starred_url":"https://api.github.com/users/Baughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baughn/subscriptions","organizations_url":"https://api.github.com/users/Baughn/orgs","repos_url":"https://api.github.com/users/Baughn/repos","events_url":"https://api.github.com/users/Baughn/events{/privacy}","received_events_url":"https://api.github.com/users/Baughn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-31T14:25:58Z","updated_at":"2015-02-05T00:33:55Z","closed_at":null,"body":"On the newest Ubuntu, it appears there's some compiler flag missing:\r\n\r\n```\r\n*** Warning: Linking the shared library libglog.la against the non-libtool\r\n*** objects  /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags.cc.o /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags_completions.cc.o /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags_nc.cc.o /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags_reporting.cc.o is not portable!\r\nlibtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginS.o  .libs/libglog_la-logging.o .libs/libglog_la-raw_logging.o .libs/libglog_la-vlog_is_on.o .libs/libglog_la-utilities.o .libs/libglog_la-demangle.o .libs/libglog_la-symbolize.o .libs/libglog_la-signalhandler.o  /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags.cc.o /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags_completions.cc.o /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags_nc.cc.o /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags_reporting.cc.o   -L/usr/local/lib -L/opt/local/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -lstdc++ -lm -lpthread -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o  -pthread -O3   -pthread -Wl,-soname -Wl,libglog.so.0 -o .libs/libglog.so.0.0.0\r\n/usr/bin/ld: /home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags.cc.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC\r\n/home/svein/dev/repobuild/.gen-obj/common/third_party/google/gflags/src/gflags.cc.o: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:734: recipe for target 'libglog.la' failed\r\nmake[1]: *** [libglog.la] Error 1\r\nmake[1]: Leaving directory '/home/svein/dev/repobuild/common/third_party/google/glog'\r\nMakefile:242: recipe for target '.gen-obj/common/third_party/google/glog/.glog_gen.1.0.dummy' failed\r\nmake: *** [.gen-obj/common/third_party/google/glog/.glog_gen.1.0.dummy] Error 1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/chrisvana/repobuild/issues/comments/72971545","html_url":"https://github.com/chrisvana/repobuild/issues/12#issuecomment-72971545","issue_url":"https://api.github.com/repos/chrisvana/repobuild/issues/12","id":72971545,"user":{"login":"chrisvana","id":4582347,"avatar_url":"https://avatars.githubusercontent.com/u/4582347?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvana","html_url":"https://github.com/chrisvana","followers_url":"https://api.github.com/users/chrisvana/followers","following_url":"https://api.github.com/users/chrisvana/following{/other_user}","gists_url":"https://api.github.com/users/chrisvana/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvana/subscriptions","organizations_url":"https://api.github.com/users/chrisvana/orgs","repos_url":"https://api.github.com/users/chrisvana/repos","events_url":"https://api.github.com/users/chrisvana/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvana/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T00:33:55Z","updated_at":"2015-02-05T00:33:55Z","body":"Thanks, I will try and reproduce.\r\n\r\nFrom the error message, it may be that glog.cc.o is getting compiled without -fPIC. That sounds like a problem in the autoconf/configure script. If you want to play with it, you can try to run ./configure && make manually in that directory to see if it still gives the error."}}