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

common: fix arm32 compile breakage. #5785

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

rustyrussell
Copy link
Contributor

It's obviously the incorrect type, while our CI didn't catch it, Nicholas did:

plugins/fetchinvoice.c:1362:30: error: conversion from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
 1362 |      || tlv_span(wire, 1001, UINT64_MAX, NULL) != 0) {

Reported-by: @NicholasDorier
Signed-off-by: Rusty Russell [email protected]
Changelog-Fixed: Build: arm32 compiler error in fetchinvoice, due to bad types on 32-bit platforms.
Fixes: #5776

It's obviously the incorrect type, while our CI didn't catch it, Nicholas did:

```
plugins/fetchinvoice.c:1362:30: error: conversion from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
 1362 |      || tlv_span(wire, 1001, UINT64_MAX, NULL) != 0) {
```

Reported-by: @NicholasDorier
Signed-off-by: Rusty Russell <[email protected]>
Changelog-Fixed: Build: arm32 compiler error in fetchinvoice, due to bad types on 32-bit platforms.
Fixes: ElementsProject#5776
@rustyrussell rustyrussell added this to the v22.11.1 milestone Dec 5, 2022
@NicolasDorier
Copy link
Collaborator

Tested on our fork, it builds now.

@NicolasDorier
Copy link
Collaborator

I see your CI is building ARM32, so this is strange it didn't detected the problem.
I would suggest that you try to build the contrib docker files as part of CI. Not only it would have caught that, but it would also avoid getting out of date dockerfiles.

@cdecker cdecker enabled auto-merge (rebase) December 6, 2022 09:44
@cdecker
Copy link
Member

cdecker commented Dec 6, 2022

ACK 4d3142d

@cdecker cdecker merged commit 37590ee into ElementsProject:master Dec 6, 2022
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.

Unable to build 22.11 on arm32
3 participants