Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed jobserver not working with GNU make >= 4.2 #480

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

racko
Copy link
Contributor

@racko racko commented Aug 12, 2017

--jobserver-fds has been renamed to --jobserver-auth.

Also calling make with both --jobserver-auth and -j leads to 'warning:
-jN forced in submake: disabling jobserver mode.'

See https://lists.gnu.org/archive/html/info-gnu/2016-05/msg00013.html

@racko
Copy link
Contributor Author

racko commented Aug 16, 2017

@wjwwood I noticed that you commented on my other pull request #481, but not on this one. Did you just not find the time or are there other issues?

I assumed that the build failure has nothing to do with my commit. I don't understand the error messages like "VAR2 NOT DEFINED!" and if anything, my commit could only cause catkin to build with a single processor. It could not cause this kind of build failure, or am I missing something? Could I retrigger the build bot?

@racko racko force-pushed the jobserver_fix branch 2 times, most recently from aff6b2a to 479d526 Compare August 16, 2017 12:23
--jobserver-fds has been renamed to --jobserver-auth.

Also calling make with both --jobserver-auth and -j leads to 'warning:
-jN forced in submake: disabling jobserver mode.'

See https://lists.gnu.org/archive/html/info-gnu/2016-05/msg00013.html
@racko
Copy link
Contributor Author

racko commented Aug 16, 2017

I noticed that the build log mentioned that the build timed out. I changed the commit so the deprecated --jobserver-fds behavior still works. Strange that "make-with-auth + catkin-with-fds" simply runs single-threaded while "make-with-fds + catkin-with-auth" seems to block and do nothing oO

Well ... now it works :)

@wjwwood
Copy link
Member

wjwwood commented Aug 16, 2017

I think I was poking the CI job to see if the issue was your pr or something wrong with the CI setup.

Based on what you told me, it sounds like might be a race condition? I'll try to spend some time testing it out more thoroughly but I have some other stuff to do today.

@racko
Copy link
Contributor Author

racko commented Aug 16, 2017

Oh, I think (hope) that my initial pull request was buggy, but that the new version is fine :P

@v4hn
Copy link
Contributor

v4hn commented Apr 5, 2018

Thank you @racko .
@wjwwood I stayed away from catkin_tools up to now because it did nothing but idle on my system with a current gnu make.
This patch resolves the problem and works well. Please review again.

@jbohren-hbr
Copy link
Contributor

@v4hn have you verified that this works with gcc 4.1 and gcc 4.2?

@v4hn
Copy link
Contributor

v4hn commented Jul 25, 2018 via email

@jbohren-hbr
Copy link
Contributor

have you verified that this works with gcc 4.1 and gcc 4.2?

I guess you mean make, not gcc.

You got me.

No I have not, but CI did. I tested (and for the last 3 months used...) it with gnu make 4.2.1

That's good to hear, we'll pull it here at honeybee for further testing on make 4.1.

@mikepurvis
Copy link
Member

I haven't yet hit this as I'm on Xenial/Bionic in my day-to-day and gnu make 4.2+ doesn't drop until Cosmic:

https://packages.ubuntu.com/search?keywords=make

However, it seems like a harmless change. Should it go in?

@v4hn
Copy link
Contributor

v4hn commented Mar 29, 2019 via email

@mikepurvis
Copy link
Member

Sounds good! Merging now, and will validate before release on Ubuntu X and Homebrew.

@mikepurvis mikepurvis merged commit d30e4a8 into catkin:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants