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

Fix compilation warnings on ioctl-echo-loop and Docker image #26

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

mpolitzer
Copy link
Collaborator

@mpolitzer mpolitzer commented Nov 27, 2023

The tools are not building as is.
check: https://discord.com/channels/600597137524391947/1107945240360394853/1177252457894641745
Use a fixed rust version as described on the thread.

There are also some compiler warning fixes on a separate commit.

@mpolitzer mpolitzer requested a review from vfusco November 27, 2023 13:11
@mpolitzer mpolitzer self-assigned this Nov 27, 2023
@mpolitzer mpolitzer added the enhancement New feature or request label Nov 27, 2023
@mpolitzer mpolitzer requested a review from a team November 27, 2023 13:17
@@ -102,7 +104,7 @@ static int finish_request(int fd, struct rollup_finish *finish, bool accept) {
finish->accept_previous_request = accept;
res = ioctl(fd, IOCTL_ROLLUP_FINISH, (unsigned long) finish);
if (res != 0) {
fprintf(stderr, "IOCTL_ROLLUP_FINISH returned error %d\n", res);
fprintf(stderr, "IOCTL_ROLLUP_FINISH returned error %s [%d]\n", strerror(errno), errno);
Copy link
Contributor

@diegonehab diegonehab Nov 27, 2023

Choose a reason for hiding this comment

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

To be very picky, this doesn't work because strerror could modify errno. :/ So you should save it. Elsewhere is the same.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, It may give a strerror errno code instead of what was expected.

Copy link
Contributor

@diegonehab diegonehab left a comment

Choose a reason for hiding this comment

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

Really simple change.

@tuler
Copy link
Member

tuler commented Nov 27, 2023

I guess we need to change the base image of all sunodo templates to debian as well, right?
Keep in mind sid is the unstable release of debian.

@mpolitzer mpolitzer force-pushed the chore/deabin-base-image branch from b8e807d to df34a67 Compare November 27, 2023 15:25
@mpolitzer mpolitzer changed the title Chore change the base image to deabin:sid Fix compilation warnings on ioctl-echo-loop and Docker image Nov 27, 2023
@mpolitzer
Copy link
Collaborator Author

mpolitzer commented Nov 27, 2023

I guess we need to change the base image of all sunodo templates to debian as well, right? Keep in mind sid is the unstable release of debian.

@tuler We decided to not take this route for now and use this fix instead: https://github.com/cartesi/machine-emulator-tools/pull/26/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R34.

rootfs images will still be ubuntu:22.04 based after this PR.

@mpolitzer mpolitzer merged commit df34a67 into main Nov 29, 2023
2 checks passed
@mpolitzer mpolitzer deleted the chore/deabin-base-image branch November 29, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants