=== 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 [17:28] xnox: 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 configure [17:29] Saviq, 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:30] Saviq, there is debhelper itself, but also there is cross-build patch in cmake source. either one, or both might be doing this. [17:30] xnox: doesn't exist [17:30] Saviq, also i'm assuming you are using normal cross-compilaton, not the archaic dpkg-cross stuff [17:30] # aarch64-linux-gnu-cc [17:30] No command 'aarch64-linux-gnu-cc' found, did you mean: [17:30] Command 'aarch64-linux-gnu-gcc' from package 'gcc-aarch64-linux-gnu' (main) [17:30] aarch64-linux-gnu-cc: command not found [17:31] Saviq, and you do have cross build-depends insteadd for the arm64 right? [17:31] xnox: normal as in `debuild -aarm64`? [17:31] # aarch64-linux-gnu-gcc [17:31] aarch64-linux-gnu-gcc: fatal error: no input files [17:31] compilation terminated. [17:31] yes that is normal [17:31] crossbuild-essential-arm64 is installed right? [17:31] yup [17:32] yeah using mk-build-deps --host-arch arm64 [17:32] the same works on 17.10 [17:32] fun [17:32] might be a cross-toolchain bug, rather than anything in debhelper/cmake. [17:32] let me check things and/or possibly ping doko [17:33] xnox: FWIW the same applies to -c++ vs. -g++ [17:33] yeah, checked that too [17:55] Saviq, 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=61d575451f028e2bba666d40ee1dedc8c6308f40 [17:56] please 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 it [18:00] xnox: ack [18:01] how did we not see this before... [18:01] prolly overlay hid it away [18:04] xnox: bug #1728673 [18:04] bug 1728673 in debhelper (Ubuntu) "cmake's default compiler names incorrect when crosscompiling" [Undecided,New] https://launchpad.net/bugs/1728673 [18:06] Saviq, there is a cheat =) install and use debhelper from xenial-backports, as that one is fixed =) [18:06] xnox: aha, might do that === alan_g is now known as alan_g|EOD [23:07] Saviq, can you return me a favor? [23:07] what is the best current practice for cmake gmock/gtest? [23:07] -- Found Threads: TRUE [23:07] CMake Error at /usr/src/googletest/googletest/cmake/internal_utils.cmake:149 (add_library): [23:07] add_library cannot create target "gmock" because another target with the [23:07] same name already exists. The existing target is a static library created [23:07] in source directory "/usr/src/googletest/googlemock". See documentation [23:07] for policy CMP0002 for more details. [23:07] Call Stack (most recent call first): [23:07] /usr/src/googletest/googletest/cmake/internal_utils.cmake:172 (cxx_library_with_type) [23:07] /usr/src/gmock/CMakeLists.txt:84 (cxx_library) [23:07] .. [23:07] i hate when above happens =/ [23:18] aha :) [23:21] xnox: have a look at https://github.com/MirServer/mir/compare/1e543d3b885fca34f494a9be4d6f60ec541c4203...277b0a0b13087e190a641f06cd5a745e6d14c181 [23:22] actually that might not be all, but Alan did just redo the gtest/gmock detection in mir https://github.com/MirServer/mir/commits/master [23:25] so https://github.com/MirServer/mir/blob/master/cmake/FindGtestGmock.cmake should help [23:25] as it works on Ubuntu and Fedora, too [23:44] hm, why is /usr/src/googletest/googletest/ second given that is the preferred path on both ubuntu and debian in new world order?