Skip to content

Util-linux-2.39-GCCcore-12.3.0 fails to build on CentOS 7 (PER_LINUX_FDPIC undeclared) #18519

@casparvl

Description

@casparvl
  CC       lib/eject-monotonic.o
sys-utils/setarch.c:90:7: error: PER_LINUX_FDPIC undeclared here (not in a function); did you mean PER_LINUX_32BIT?
   90 |     X(PER_LINUX_FDPIC) \
      |       ^~~~~~~~~~~~~~~
sys-utils/setarch.c:345:27: note: in definition of macro X
  345 | #define X(opt) { .value = opt, .name = #opt },
      |                           ^~~
sys-utils/setarch.c:346:9: note: in expansion of macro ALL_PERSONALITIES
  346 |         ALL_PERSONALITIES
      |         ^~~~~~~~~~~~~~~~~
make[2]: *** [sys-utils/setarch.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/dev/shm/utillinux/2.39/GCCcore-12.3.0/util-linux-2.39'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/shm/utillinux/2.39/GCCcore-12.3.0/util-linux-2.39'
make: *** [all] Error 2

Observed by @verdurin when testing another PR #18495 (comment)

Seems it should be provided by the kernel? https://docs.huihoo.com/doxygen/linux/kernel/3.7/uapi_2linux_2personality_8h.html

I created this issue for reference, as we didn't want it to block that (unrelated) PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions