Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] Add -Wno-implicit-function-declaration for LTP build #2005

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion libos/test/ltp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ BUILDDIR = $(ROOTDIR)/build
INSTALLDIR = $(ROOTDIR)/install
TESTCASEDIR = $(INSTALLDIR)/testcases/bin

# Without the below flag, LTP's clone301 test fails on Clang 18 (e.g. on Ubuntu 24.04) with
# "error: implicit declaration of function pidfd_send_signal".
# TODO: Remove this flag when LTP is updated to the latest release (where this is fixed).
EXTRA_CFLAGS = -Wno-implicit-function-declaration

clean-extra += clean-build

.PHONY: all
Expand All @@ -24,7 +29,7 @@ $(BUILDDIR)/BUILD_SUCCESS: $(SRCDIR)/configure
mkdir -p $(BUILDDIR)
# Kernel module tests are not meaningful for our LibOS and building them causes troubles on
# incompatible host kernels.
cd $(BUILDDIR) && $(SRCDIR)/configure --without-modules --prefix $(INSTALLDIR)
cd $(BUILDDIR) && $(SRCDIR)/configure CFLAGS=$(EXTRA_CFLAGS) --without-modules --prefix $(INSTALLDIR)
$(MAKE) -C $(BUILDDIR) -f $(SRCDIR)/Makefile top_srcdir=$(SRCDIR) top_builddir=$(BUILDDIR) all
touch $@

Expand Down