Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

gmock issues prevent successful build #1

Open
jwhendy opened this issue Sep 16, 2019 · 11 comments
Open

gmock issues prevent successful build #1

jwhendy opened this issue Sep 16, 2019 · 11 comments

Comments

@jwhendy
Copy link
Contributor

jwhendy commented Sep 16, 2019

I can't build this with upstream sources, only the ros-gbp version. There are other reports of the issue of not finding gmock.

I think the patch on the last bullet has potential, but think it required adapting to arch's dir structure, perhaps. Note some of the paths added by that patch in #1022 in this comment. Note in the next comment what arch has sitting around with respect to gmock/gtest.

@acxz
Copy link
Member

acxz commented Feb 25, 2020

So here is the ArchLinux bug report: link

I found the upstream of pkgbuilds for anthraxx, who maintains gmock/gtest: https://github.com/anthraxx/arch-pkgbuilds and submitted an issue for updating gmock/gtest: anthraxx/arch-pkgbuilds#30. I also submitted a PR for upgrading the package itself: anthraxx/arch-pkgbuilds#31

Upgrading gmock/gtest prob wont solve this issue, so someone will still have to resolve this issue, but atleast I found the repo so if anyone wants to fix this issue, they can submit PRs, instead of just complaining on bug report. I may get around to do it, but can't promise anything esp since I am not using this package.

EDIT: Well since I updated the package I thought I might as well just fix the bug, here is the PR for it, anthraxx/arch-pkgbuilds#33

We need to keep in mind that unnecessary upstream issues get closed. @jwhendy can you take care of this? I think you can go ahead and close them now since we know it is not upstream ros problems but ArchLinux packaging.

@jwhendy
Copy link
Contributor Author

jwhendy commented Feb 25, 2020

Report at catkin was closed today (thanks for that). I was hoping someone could explain the CMakeLists related error, which was still not clear in my mind, and still isn't. I modified one from Ubuntu and one from gtest, but got a warning for every package when doing catkin build, so I wasn't sure. Anyway, probably arch's issue anyway.

I already closed realtime_tools 9 days ago. Are there any others to close?

Edit: and thanks for the PR! I saw this linked this morning when I commented, but assumed it was anthraxx who finally got to this since my but report has been open now since freaking Sept 2019! On one hand, hopefully this lowers the barrier to get it fixed, on the other... dang, I hope someone is at the wheel and even paying attention!?

@acxz
Copy link
Member

acxz commented Feb 25, 2020

I think we got all the issues covered.

Yeah, sure np thought I would actually dig into the issue and squash it. Not gonna blame antraxx though since he recently got promoted to Project Lead of Arch Linux, so he is definteily a busy man. Just glad that he has a repo for his pkgbuilds so it makes it easier to contribute to.

@acxz
Copy link
Member

acxz commented Feb 25, 2020

I kinda want to close this issue, since the gtest-py3 package from the AUR has the fixes needed. But if you want to keep this open for tracedown until the upstream PR gets merged, feel free to keep it open.

Actually let's keep this issue open, I may still be having the same problem. :(

@acxz acxz changed the title gmock issues will prevent migrating to upstream for now gmock issues prevent successful build Feb 25, 2020
@jwhendy
Copy link
Contributor Author

jwhendy commented Feb 25, 2020

But do we depend on gtest-py3 or will our packages pull in gtest? I'm assuming the latter, in which case while we might know to workaround with gtest-py3, others will run into this anyway.

So, I'd propose:

  • wait until the issue is actually resolved (just like we leave any other issues open that rely on upstream fixes), edit: or:
  • redefine this org to depend on gtest-py3. That said, when official gtest is fixed... will we keep gtest-py3 or switch back?

@acxz
Copy link
Member

acxz commented Feb 25, 2020

We had a similar issue with libpgm a long time back, the solution then was to just let users know that libpgm will not work and to install libpgm-git unless upstream gets the fix out. We can do the same,

Also just did a thorough check and the real-time tools is still not building for me. If you can take a look into this with the newer gtest-py3 package that would be great. Your analysis earlier really helped me understand and submit the patch for gtest.

@ristle
Copy link

ristle commented Mar 1, 2020

If you have this issue you can delete this code from CMakeLists.txt if with enabling the gmock and gtest. Also, I deleted gmock and gtest using -Rdd for checking the result. Using the comments, I delete As a final aside, I remembered that I did this without success.

if(CATKIN_TOPLEVEL)
    message(STATUS "gtest not found, C++ tests can not be built. Please install the gtest headers globally in your system or checkout gtest (by running 'git clone  https://github.com/google/googletest.git -b release-1.8.0' in the source space '${CMAKE_SOURCE_DIR}' of your workspace) to enable gtests")
  else()
Is there a reason this is only proposed for gtest vs. also being a workaround if gmock is not found?

Thank u)

@acxz
Copy link
Member

acxz commented Mar 20, 2020

@bionade24 can we get this package updated, ASAP? It is currently causing ros-melodic-desktop-full to fail.

@bionade24
Copy link
Member

Done

@acxz
Copy link
Member

acxz commented Mar 22, 2020

The issue is still out there so I think we should keep it open, the patch is just to not compile the tests so that the rest of the ros-melodic stack can be successfully installed.

@acxz acxz reopened this Mar 22, 2020
@acxz acxz removed the need to sync label Mar 22, 2020
@bionade24
Copy link
Member

Yeah, sorry forgot about this convention.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants