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
[armv7l] error: cast from pointer to integer of different size #397
Comments
garlick
added a commit
to garlick/flux-sched
that referenced
this issue
Oct 20, 2018
Problem: compilation fails on armv7l architecture wtih C libplanner_la-planner_multi.lo planner_multi.c: In function ‘planner_multi_rem_span’: planner_multi.c:414:49: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] if (planner_rem_span (ctx->planners[i], (int64_t)s) == -1) ^ planner_multi.c: In function ‘planner_multi_span_first’: planner_multi.c:436:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] rc = (int64_t)span; ^ planner_multi.c: In function ‘planner_multi_span_next’: planner_multi.c:453:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] rc = (int64_t)span; ^ Cast to uintptr_t instead. Fixes flux-framework#397
garlick
added a commit
to garlick/flux-sched
that referenced
this issue
Oct 20, 2018
Problem: compilation fails on armv7l architecture wtih CC libplanner_la-planner_multi.lo planner_multi.c: In function ‘planner_multi_rem_span’: planner_multi.c:414:49: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] if (planner_rem_span (ctx->planners[i], (int64_t)s) == -1) ^ planner_multi.c: In function ‘planner_multi_span_first’: planner_multi.c:436:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] rc = (int64_t)span; ^ planner_multi.c: In function ‘planner_multi_span_next’: planner_multi.c:453:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] rc = (int64_t)span; ^ Cast to uintptr_t instead. Fixes flux-framework#397
Sounds good - I'll just leave it there for you to cherry-pick. |
@garlick: is armv7l a 32bit system? |
Yep:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Encountered this buiuld error on armv7l:
The text was updated successfully, but these errors were encountered: