Skip to content

Conversation

@tiborvass
Copy link
Contributor

@tiborvass tiborvass commented Jun 14, 2018

This fixes the following compilation error on 32bit ARM:

$ GOARCH=arm GOARCH=6 go build ./libcontainer/system/
libcontainer/system/linux.go:119:89: constant 4294967295 overflows int

Signed-off-by: Tibor Vass [email protected]

Related to #1688
Fixes #1818

@AkihiroSuda
Copy link
Member

seccomp_test.go:365: time="2018-06-14T18:07:54Z" level=fatal msg="panic from initialization: parseLine only accepts {*string, *int, *[]string} as arguments! (*int64)(0xc420013500) is not a pointer!, goroutine 1 [running, locked to thread]:

I think we can just add *int64 to

case *int:

@tiborvass tiborvass force-pushed the fix-arm32bit branch 2 times, most recently from 377c69b to 6c937ad Compare June 14, 2018 18:32
This fixes the following compilation error on 32bit ARM:
```
$ GOARCH=arm GOARCH=6 go build ./libcontainer/system/
libcontainer/system/linux.go:119:89: constant 4294967295 overflows int
```

Signed-off-by: Tibor Vass <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

LGTM(IANAM) if green, thanks!

Copy link

@seemethere seemethere left a comment

Choose a reason for hiding this comment

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

LGTM

@cyphar
Copy link
Member

cyphar commented Jun 15, 2018

LGTM.

Approved with PullApprove

@mrunalp
Copy link
Contributor

mrunalp commented Jun 15, 2018

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit ad0f525 into opencontainers:master Jun 15, 2018
@tiborvass
Copy link
Contributor Author

Thank you very much!

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.

Build fails with GOOS=linux GOARCH=386 due to int overflow

5 participants