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