I got the same issue with @sirocco and some others.
Firstly, you need sparse
as a dependency package.
Then, it returns that compiler unable to open 'stddef.h'
I fix the issue by adding this patch to mmc-utils
How?:
Paste the text below to create a txt file named "0001-fix.patch" under src/mmc-utils dir, then run "git apply 0001-fix.patch --ignore-whitespace" in console
diff --git a/Makefile b/Makefile
index 06ae0f7..9dc9ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ objects = \
3rdparty/hmac_sha/hmac_sha2.o \
3rdparty/hmac_sha/sha2.o
-CHECKFLAGS = -Wall -Werror -Wuninitialized -Wundef
+GCC_INCLUDE_DIR := $(shell $(CC) -print-file-name=include)
+CHECKFLAGS = -I$(GCC_INCLUDE_DIR) -Wall -Wuninitialized -Wundef
DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
--
Then, the compilation should pass.
Pinned Comments
jpegxguy commented on 2021-12-15 16:13 (UTC) (edited on 2021-12-15 16:26 (UTC) by jpegxguy)
Hi guys,
I found this documentation on kernel.org which points to a different repo:
https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
I'm thinking this might be why the tree we knew moved to
mmc-utils-old
I'll probably end up changing the source to that newer repo after testing for a bit, because the new tree seems more active.
UPDATE: The new tree builds fine for me. Also,
make
is part of the groupbase-devel
, which is an implied make dependency of any AUR package.