If you are on an amd64 installation, you can try to install the package libc6-dev-i386. This helped me solve the same issue you encountered while trying to compile smm from i8kutils.

Answer from zerwas on askubuntu.com
Discussions

Fatal error: sys/cdefs.h: No such file or directory
Hey, is anyone else getting this error? fatal error: sys/cdefs.h: No such file or directory Mine just showed up the other day...happening on multiple PCs. not even sure where this is included. Running "IRremote.h" and "RTClib.h" More complete error message: In file included from /mnt/creat... More on forum.arduino.cc
🌐 forum.arduino.cc
0
0
June 18, 2023
c++ - gcc won't compile missing sys/cdefs.h - Stack Overflow
Trying to compile gcc on an armhf embedded device but it halts when trying to compile libgcc with xgcc saying it can't find sys/cdefs.h libc6 and libc6-dev are already installed and cdefs.h can be... More on stackoverflow.com
🌐 stackoverflow.com
android - fatal error: sys/cdefs.h: No such file or directory while compiling openssl-1.1.0h - Stack Overflow
I am trying to compile open ssl for android. I followed this link for compilation. https://stackoverflow.com/questions/11929773/compiling-the-latest-openssl-for-android But i am stuck at this error More on stackoverflow.com
🌐 stackoverflow.com
/usr/include/features.h:367:12: fatal error: 'sys/cdefs.h' file not found # include <sys/cdefs.h>
when I make sdsoc_build to generate FPGA bitstream. One error has happened: INFO: [SDSoC 0-0] Performing accelerator source linting for top INFO: [SDSoC 0-0] Moving function top to Programmable Log... More on github.com
🌐 github.com
3
August 17, 2017
🌐
EndeavourOS
forum.endeavouros.com › arm
Cdefs.h not found during compile on some packages, but file exists on system - ARM - EndeavourOS
October 22, 2021 - The compiler pukes and says cdefs.h not found, but the file does exist on my system in multiple places. I believe it comes from the libbsd package, which is installed. I’ve run into the issue with a few different packages now. I lost track of the others, but libretro-bnes ...
🌐
Arduino Forum
forum.arduino.cc › development tools › cloud editor
Fatal error: sys/cdefs.h: No such file or directory - Cloud Editor - Arduino Forum
June 18, 2023 - Hey, is anyone else getting this error? fatal error: sys/cdefs.h: No such file or directory Mine just showed up the other day...happening on multiple PCs. not even sure where this is included. Running "IRremote.h" and "RTClib.h" More complete error message: In file included from /mnt/creat...
🌐
GitHub
github.com › ispc › ispc › issues › 1611
armv7l Raspbian buster: fatal error: 'sys/cdefs.h' file not found · Issue #1611 · ispc/ispc
December 1, 2019 - [ 31%] Generating builtins-c-32-linux-armv7.cpp clang-8: warning: unknown platform, assuming -mfloat-abi=soft clang-8: warning: unknown platform, assuming -mfloat-abi=soft In file included from builtins/builtins.c:68: In file included from /usr/include/unistd.h:25: /usr/include/features.h:424:12: fatal error: 'sys/cdefs.h' file not found ·
Find elsewhere
🌐
GitHub
github.com › cornell-zhang › bnn-fpga › issues › 6
/usr/include/features.h:367:12: fatal error: 'sys/cdefs.h' file not found # include <sys/cdefs.h> · Issue #6 · cornell-zhang/bnn-fpga
August 17, 2017 - I think the file (/usr/include/features.h) shound not been bulid by sds++. May be the evn PATH is error.
Author   qingzengsong
🌐
Google Groups
groups.google.com › g › plink2-users › c › OYPAf0EjKOw
sys/cdefs.h not found when compiling on kubuntu linux 14.04
In file included from /usr/include/stdio.h:27:0, from plink_common.h:6, from plink_calc.c:73: /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory # include <sys/cdefs.h> ^ compilation terminated.
🌐
Medium
medium.com › @tmlvnn › ️-how-i-fixed-fatal-error-sys-cdefs-h-67f180bd3088
🛠️ How I Fixed fatal error: sys/cdefs.h: No such file or directory While Compiling C on Parrot OS (ARM64) | by tamilvanan | Medium
July 20, 2025 - In file included from /usr/include/aarch64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from simple.c:1: /usr/include/features.h:489:12: fatal error: sys/cdefs.h: No such file or directory 489 | # include <sys/cdefs.h> | ^~~~~~~~~~~~~ compilation terminated.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
can't find sys/cdefs.h - Raspberry Pi Forums
December 12, 2019 - Hi all, I am setting up the toolchain for cross compiling for the RaspberryPi 3. My host is Ubuntu 19, and I'm using cmake to build a library that I want to use on the pi. All is going well except for when I compile the library, it fails on "'sys/cdefs.h' no such file or directory".
🌐
GitHub
github.com › GodotNativeTools › godot-cpp › issues › 230
Compile error: fatal error: sys/cdefs.h: No such file or directory [AND] fatal error: bits/c++config.h: No such file or directory · Issue #230 · godotengine/godot-cpp
July 15, 2018 - scons platform=linux generate_bindings=yes scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o src/core/String.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/String.cpp In file included from /usr/include/stdint.h:25:0, from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9, from godot_headers/gdnative/string.h:38, from include/core/String.hpp:4, from src/core/String.cpp:1: /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory compilation terminated. scons: *** [src/core/String.o] Error 1 scons: building terminated because of errors. I found out that I needed that lib: libc6-dev-i386 than I had this next error ·
Author   ricardoalcantara
🌐
GitHub
github.com › emscripten-core › emscripten › issues › 10818
compile error : /usr/include/features.h:367:12: fatal error: 'sys/cdefs.h' file not found · Issue #10818 · emscripten-core/emscripten
March 31, 2020 - -- Found installed version of Eigen: ... In file included from /usr/include/unistd.h:25: /usr/include/features.h:367:12: fatal error: 'sys/cdefs.h' file not found...
Author   pans0ul
🌐
Stack Exchange
unix.stackexchange.com › questions › 308490 › why-does-apt-get-refuse-to-install-cdefs-h-besides-a-symlink
dpkg - Why does apt-get refuse to install cdefs.h (besides a symlink)? - Unix & Linux Stack Exchange
August 24, 2016 - 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up libc6-amd64 (2.19-18+deb8u3) ... Processing triggers for libc-bin (2.19-18+deb8u3) ...
🌐
GitHub
github.com › abhiTronix › raspberry-pi-cross-compilers › issues › 81
fatal error: sys/cdefs.h: No such file or directory · Issue #81 · abhiTronix/raspberry-pi-cross-compilers
May 9, 2021 - In file included from /home/stefano/qtrpi4/tools/cross-pi-gcc-8.3.0-2/arm-linux-gnueabihf/include/c++/8.3.0/arm-linux-gnueabihf/bits/os_defines.h:39, from /home/stefano/qtrpi4/tools/cross-pi-gcc-8.3.0-2/arm-linux-gnueabihf/include/c++/8.3.0/arm-linux-gnueabihf/bits/c++config.h:508, from /home/stefano/qtrpi4/tools/cross-pi-gcc-8.3.0-2/arm-linux-gnueabihf/include/c++/8.3.0/type_traits:38, from ../qtrpi4/qt5.15/include/QtCore/qglobal.h:45, from ../qtrpi4/qt5.15/include/QtGui/qtguiglobal.h:43, from ../qtrpi4/qt5.15/include/QtWidgets/qtwidgetsglobal.h:43, from ../qtrpi4/qt5.15/include/QtWidgets/qmainwindow.h:43, from ../qtrpi4/qt5.15/include/QtWidgets/QMainWindow:1, from ../qt-test-2/mainwindow.h:4, from ../qt-test-2/main.cpp:1: /home/stefano/qtrpi4/sysroot/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
Author   cooked
🌐
Quora
quora.com › How-do-I-fix-fatal-error-sys-cdefs-h-file-not-found-include-sys-cdefs-h
How do I fix "fatal error: 'sys/cdefs.h' file not found # include <sys/cdefs.h>"?
January 13, 2016 - Answer: This is probably caused by trying to build a 32 bit binary on a 64 bit system (with -[code ]m32 [/code]for instance). You need to install the 32 bit versions of the common libraries.