Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856694 - genkernel doesn't disable -Werror
Summary: genkernel doesn't disable -Werror
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2022-07-06 14:33 UTC by Andrei Horodniceanu
Modified: 2022-07-31 07:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Horodniceanu 2022-07-06 14:33:27 UTC
I have tested with genkernel-4.2.6-r{2,3,4} and with the live ebuild.

The precise thing that fails for me is libxcrypt, during the building of the initramfs, giving errors such as:
-----------
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I./lib -DIN_LIBCRYPT -Wall -Wextra -Walloc-zero -Walloca -Wbad-function-cast -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=1 -Wlogical-op -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wpointer-arith -Wrestrict -Wshadow -Wstrict-overflow=2 -Wstrict-prototypes -Wundef -Wvla -Wwrite-strings -Wpedantic -Werror -fno-plt -Os -pipe -fomit-frame-pointer -c lib/alg-md5.c  -fPIC -DPIC -o lib/.libs/libcrypt_la-alg-md5.o
In file included from lib/crypt-port.h:41,
                 from lib/alg-md5.c:38:
/usr/include/sys/cdefs.h:4:2: error: #warning usage of non-standard #include <sys/cdefs.h> is deprecated [-Werror=cpp]
    4 | #warning usage of non-standard #include <sys/cdefs.h> is deprecated
      |  ^~~~~~~
-----------

As a small side-note about the error, it is the same that I get when trying to emerge libxcrypt with the clang tool-chain, however, in genkernel's case the error persists even if I go back to using gcc.