Skip to content

-Werror causes build failure on musl which creates warning for incorrect includes #692

@a16bitsysop

Description

@a16bitsysop

AM_CFLAGS=-Wall -Werror -fno-strict-aliasing -I$(top_srcdir)/include

libtool: compile:  cc -DHAVE_CONFIG_H -I. -Os -fstack-clash-protection -Wformat -Werror=format-security -O2 -DNDEBUG -MT drv/isa_ce_sm3_armv8.lo -MD -MP -MF drv/.deps/isa_ce_sm3_armv8.Tpo -c drv/isa_ce_sm3_armv8.S  -fPIC -DPIC -o drv/isa_ce_sm3_armv8.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -Wall -Werror -fno-strict-aliasing -I./include -fPIC -fstack-protector-strong -O2 -ftrapv -Wl,-z,relro,-z,now -Wl,-s "-DUADK_VERSION_NUMBER=\"UADK version: 2.7.0\"" "-DUADK_RELEASED_TIME=\"Released June 6, 2024\"" -DWD_STATIC_DRV -fPIC -DWD_NO_LOG -Os -fstack-clash-protection -Wformat -Werror=format-security -O2 -DNDEBUG -MT v1/wd.lo -MD -MP -MF v1/.deps/wd.Tpo -c v1/wd.c  -fPIC -DPIC -o v1/wd.o
In file included from v1/wd.c:26:
/usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      |  ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:1051: v1/wd.lo] Error 1

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