-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
This is a followup-issue for #15114, which added constants for the Fadvise() syscall for amd64 and 386 on Linux. I discovered that the constants are also missing for Linux/arm. For all the other architectures they are there, only arm is missing.
I've tried running mkall.sh but this fails:
$ GOOS=linux GOARCH=arm ./mkall.sh
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?
fork/exec /tmp/go-build154582490/command-line-arguments/_obj/exe/mkpost: exec format error
Is mkall.sh supposed to be run on the target architecture?
I propose adding the constants FADV_* manually to ztypes_linux_arm.go, the constants are the same: https://github.com/thorvalds/linux/blob/master/include/uapi/linux/fadvise.h
Would a CL which adds the constants manually be accepted?
Could you please advise me how to add the constants for Linux on arm?
Reactions are currently unavailable