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

Makefile: Fix cross-compile in moby when using runc_nodmz #4345

Closed
wants to merge 1 commit into from

Conversation

rata
Copy link
Member

@rata rata commented Jul 12, 2024

As suggested by moby/moby#48160 (comment) it was indeed the include of cc_platform.mk what is causing compilation issues. We were not disabling the include when compiling with runc_nodmz, IMHO we should avoid including it.

@cyphar can you take a look at the compilation issues in moby/moby#47666 and fix cc_platform.mk?

This seems to fix the compilation in moby (if we use runc_nodmz), although some tests fail. That still needs to be debugged too.

Compilation with this seems to work: https://github.com/moby/moby/actions/runs/9909151362
You can see the changes here: moby/moby#48161


One of the reasons to have a build tag to disable runc-dmz is to get rid of possible compile issues introduced by it (it needs to cross-compile a C program).

We were not being strict enough to include this file only when needed. This patch includes it only when not using runc_nodmz.

While we want to fix the compilation issues of runc-dmz in another commit, let's make when using runc_nodmz we don't include more than needed to compile.

@rata rata mentioned this pull request Jul 12, 2024
21 tasks
One of the reasons to have a build tag to disable runc-dmz is to get rid
of possible compile issues introduced by it (it needs to cross-compile a
C program).

We were not being strict enough to include this file only when needed.
This patch includes it only when not using runc_nodmz.

While we want to fix the compilation issues of runc-dmz in another
commit, let's make when using runc_nodmz we don't include more than
needed to compile.

Signed-off-by: Rodrigo Campos <[email protected]>
Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

NACK; this is hardly the right approach. What I think we should do is something like #4346.

@rata
Copy link
Member Author

rata commented Jul 13, 2024

Oh, makes sense! I'll close this, then

@rata rata closed this Jul 13, 2024
@rata rata deleted the rata/moby-dmz-fixes branch July 13, 2024 10:25
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.

2 participants