Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Error while compiling natively with Fedora 30 __bitwise redefined #582

@Nolaan

Description

@Nolaan

Hello,
I'm running into a compile time error while building natively on the raspberry pi 3B running Fedora 30

[ 99%] Built target dtovl
[100%] Building C object host_applications/linux/apps/dtoverlay/CMakeFiles/dtoverlay.dir/dtoverlay_main.c.o
In file included from /root/compile/userland/opensrc/helpers/libfdt/libfdt.h:54,
                 from /root/compile/userland/host_applications/linux/apps/dtoverlay/dtoverlay_main.c:37:
/root/compile/userland/opensrc/helpers/libfdt/libfdt_env.h:64: error: "__bitwise" redefined [-Werror]
   64 | #define __bitwise
      | 
In file included from /usr/include/linux/stat.h:5,
                 from /usr/include/bits/statx.h:30,
                 from /usr/include/sys/stat.h:446,
                 from /root/compile/userland/host_applications/linux/apps/dtoverlay/dtoverlay_main.c:33:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
cc1: all warnings being treated as errors
make[2]: *** [host_applications/linux/apps/dtoverlay/CMakeFiles/dtoverlay.dir/build.make:63: host_applications/linux/apps/dtoverlay/CMakeFiles/dtoverlay.dir/dtoverlay_main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4520: host_applications/linux/apps/dtoverlay/CMakeFiles/dtoverlay.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

The include hierarchy is somewhat buggy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions