/srv/irclogs.ubuntu.com/2017/10/30/#ubuntu-mir.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
Saviqxnox: hey, any idea where does -DCMAKE_C_COMPILER value come from in dh_auto_configure when cross-compiling? seems on 16.04 arm64 it points to aarch64-…-cc instead of -gcc, resulting in broken configure17:28
xnoxSaviq, both should be valid, are you telling me that ....-cc doesn't exist? or that it does exist, but behaves not like gcc, and/or ...gcc is expected?17:29
xnoxSaviq, there is debhelper itself, but also there is cross-build patch in cmake source. either one, or both might be doing this.17:30
Saviqxnox: doesn't exist17:30
xnoxSaviq, also i'm assuming you are using normal cross-compilaton, not the archaic dpkg-cross stuff17:30
Saviq# aarch64-linux-gnu-cc17:30
SaviqNo command 'aarch64-linux-gnu-cc' found, did you mean:17:30
Saviq Command 'aarch64-linux-gnu-gcc' from package 'gcc-aarch64-linux-gnu' (main)17:30
Saviqaarch64-linux-gnu-cc: command not found17:30
xnoxSaviq, and you do have cross build-depends insteadd for the arm64 right?17:31
Saviqxnox: normal as in `debuild -aarm64`?17:31
Saviq# aarch64-linux-gnu-gcc17:31
Saviqaarch64-linux-gnu-gcc: fatal error: no input files17:31
Saviqcompilation terminated.17:31
xnoxyes that is normal17:31
xnoxcrossbuild-essential-arm64 is installed right?17:31
Saviqyup17:31
Saviqyeah using mk-build-deps --host-arch arm6417:32
Saviqthe same works on 17.1017:32
xnoxfun17:32
xnoxmight be a cross-toolchain bug, rather than anything in debhelper/cmake.17:32
xnoxlet me check things and/or possibly ping doko17:32
Saviqxnox: FWIW the same applies to -c++ vs. -g++17:33
xnoxyeah, checked that too17:33
xnoxSaviq, please use ubuntu-bug and open a bug against debhelper, saying that when crosscompilig, using dh, using dh's buildsystem cmake, it sets incorrect default compiler variables. and request that this commit is SRUed into xenial - https://anonscm.debian.org/git/debhelper/debhelper.git/patch/lib/Debian/Debhelper/Buildsystem/cmake.pm?id=61d575451f028e2bba666d40ee1dedc8c6308f4017:55
xnoxplease let me know the bug number, i can prep the sru, but could you please open the bug report such that you get all the notifications about it17:56
Saviqxnox: ack18:00
Saviqhow did we not see this before... <shake_head />18:01
Saviqprolly overlay hid it away18:01
Saviqxnox: bug #172867318:04
ubot5bug 1728673 in debhelper (Ubuntu) "cmake's default compiler names incorrect when crosscompiling" [Undecided,New] https://launchpad.net/bugs/172867318:04
xnoxSaviq, there is a cheat =) install and use debhelper from xenial-backports, as that one is fixed =)18:06
Saviqxnox: aha, might do that18:06
=== alan_g is now known as alan_g|EOD
xnoxSaviq, can you return me a favor?23:07
xnoxwhat is the best current practice for cmake gmock/gtest?23:07
xnox-- Found Threads: TRUE23:07
xnoxCMake Error at /usr/src/googletest/googletest/cmake/internal_utils.cmake:149 (add_library):23:07
xnox  add_library cannot create target "gmock" because another target with the23:07
xnox  same name already exists.  The existing target is a static library created23:07
xnox  in source directory "/usr/src/googletest/googlemock".  See documentation23:07
xnox  for policy CMP0002 for more details.23:07
xnoxCall Stack (most recent call first):23:07
xnox  /usr/src/googletest/googletest/cmake/internal_utils.cmake:172 (cxx_library_with_type)23:07
xnox  /usr/src/gmock/CMakeLists.txt:84 (cxx_library)23:07
xnox..23:07
xnoxi hate when above happens =/23:07
Saviqaha :)23:18
Saviqxnox: have a look at https://github.com/MirServer/mir/compare/1e543d3b885fca34f494a9be4d6f60ec541c4203...277b0a0b13087e190a641f06cd5a745e6d14c18123:21
Saviqactually that might not be all, but Alan did just redo the gtest/gmock detection in mir https://github.com/MirServer/mir/commits/master23:22
Saviqso https://github.com/MirServer/mir/blob/master/cmake/FindGtestGmock.cmake should help23:25
Saviqas it works on Ubuntu and Fedora, too23:25
xnoxhm, why is /usr/src/googletest/googletest/ second given that is the preferred path on both ubuntu and debian in new world order?23:44

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!