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

Move include of Python.h to fix Arch build issue #391

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

seedship
Copy link

@seedship seedship commented Apr 24, 2020

The include of Python.h needs to be rearranged. It cannot be imported first because it redefines _XOPEN_SOURCE

See issue #383

@emersonknapp emersonknapp changed the title Rearranging commits to fix issue #383 Move include of Python.h to fix Arch build issue Apr 24, 2020
@emersonknapp
Copy link
Collaborator

@seedship this looks good to me, but it looks like it has a merge conflict, can you rebase to master?

@seedship seedship changed the base branch from master to eloquent April 25, 2020 06:26
Signed-off-by: Richard Nai <richardnai6@gmail.com>
@seedship
Copy link
Author

@emersonknapp Ahh my bad, I meant to merge into the eloquent branch. Updated the base to reflect this.

@emersonknapp
Copy link
Collaborator

Is this change also required on master to build Foxy on Arch? Happy to merge this fix into eloquent regardless

@seedship
Copy link
Author

Hm I'm not sure, I tried to get the Foxy source by doing wget https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.repos but it returned a 404.

@emersonknapp
Copy link
Collaborator

The Foxy branch hasn't been cut there yet, it's still on master https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos

@seedship
Copy link
Author

seedship commented Apr 27, 2020

Ah I just checked, rosbag2 built fine on my machine in master

@emersonknapp
Copy link
Collaborator

Excellent. Trying a Eloquent build here - think I got all the params right

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@seedship
Copy link
Author

Hm, why did the builds fail? They built fine on my machine

@emersonknapp
Copy link
Collaborator

emersonknapp commented Apr 29, 2020

Ah - I did a --packages-select-regex rosbag2 for the colcon test command - which works on the current branches, but doesn't in Eloquent because the rosbag2 metapackage didn't list rosbag2_storage_default_plugins as a build dependency at the time. I'll re-run - sorry about the confusion

@emersonknapp
Copy link
Collaborator

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@emersonknapp
Copy link
Collaborator

Re-run windows Build Status

@emersonknapp
Copy link
Collaborator

@Karsten1987 looping you in - i haven't done patchfixes for released distros, is there any process beyond merging into the relevant branch?

@Karsten1987
Copy link
Collaborator

Karsten1987 commented Apr 29, 2020

Normally, I'd recommend to open the initial PR towards the master branch. Once that PR gets merged, we've cherry-picked that commit on top of the release branches. That would make it a bit more straight forward - technically that commit could also be cherry-picked onto dashing - it's still a support distro.
It'll work the other way around as well, where the release branch commit has to be forward-ported to master after.

Either way, we have to mark this PR within the patch release project board, so that we cut a new release.

@emersonknapp
Copy link
Collaborator

Trying another rerun Re-run windows Build Status

@Karsten1987
Copy link
Collaborator

I've tabled this for the patch release. It should be no problem to later on backport this to Foxy, once the windows build problems are sorted out.

@Karsten1987
Copy link
Collaborator

Looks good to me. Please enhance this change though with a small comment saying why this is needed.

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@Karsten1987
Copy link
Collaborator

@seedship can you please rebase your branch? That will unblock CI.

@seedship
Copy link
Author

Sorry for the long delay. I have just checked the eloquent branch, and I see no new commits have been made. Do I need to rebase my master branch? I'm trying to merge into eloquent.

@Karsten1987
Copy link
Collaborator

Please rebase on top of master and target the PR towards the master branch. I would like to make sure that we don't break anything on master and will then come up with a backport of that commit for foxy and eloquent.

@seedship
Copy link
Author

I have just rebased my master branch. However, it is worth noting that master builds successfully on my computer, without the commit. Only Eloquent doesn't build successfully without the reordering, and I don't know why.

@Karsten1987
Copy link
Collaborator

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@Karsten1987 Karsten1987 linked an issue Jun 23, 2020 that may be closed by this pull request
@Karsten1987
Copy link
Collaborator

@seedship can you verify that your branch sits correctly on top of master? Looks like CI is still failing due to some missing commits (removal of poco in particular).

But given that it compiles correctly on foxy/master, I am wondering if that is the correct fix though - Apologies, I haven't read the ongoing thread here completely before. This looks more like calming the symptoms than fixing what's actual going wrong here. But I also don't really know how to approach this.

@emersonknapp what do you think? Should be instead just merge this straight onto eloquent instead of master and then backporting it?

@emersonknapp
Copy link
Collaborator

Since master/Foxy is currently working, i think it makes more sense to just put the patchfix straight onto Eloquent. I don't know of a specific commit that we could backport.

@Karsten1987
Copy link
Collaborator

Karsten1987 commented Jul 10, 2020

Eloquent run:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Collaborator

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to and looking at the "unstable" results. That's either due to the fact that I actually ran CI on focal as well as the typical end-to-end tests which were addressed later on (master branch).

@emersonknapp I'll leave it up to to merge.

@emersonknapp
Copy link
Collaborator

Just for my own peace of mind I'm going to try the build on bionic as well

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@emersonknapp emersonknapp merged commit 986d82e into ros2:eloquent Jul 15, 2020
@emersonknapp
Copy link
Collaborator

Thanks @seedship for the patch - thanks for the patience!

@seedship
Copy link
Author

My pleasure, thanks!

@seedship seedship deleted the fix383 branch July 15, 2020 22:12
@jacobperron
Copy link
Member

Since master/Foxy is currently working, i think it makes more sense to just put the patchfix straight onto Eloquent. I don't know of a specific commit that we could backport.

It sounds like this patch is not intended for Foxy, so I'm removing this from the project board, please re-add if I'm mistaken.

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.

error: "_XOPEN_SOURCE" redefined [-Werror]
4 participants