GCC should support or run with multilib to eliminate this error.
GitHub
github.com › Zygo › bees › issues › 140
cannot compile bees due to missing bits/wordsize.h · Issue #140 · Zygo/bees
January 12, 2020 - Hi I cannot compile bees due to missing bits/wordsize.h I run Fedora Silverblue 30 $ make fatal: not a git repository (or any parent up to mount point /var/home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). ...
Author omichalek
ERROR: Fatal error wordsize.h no such file or directory along with other warnings when building Linux kernel
Image link: https://postimg.cc/c67X1qC1/2cb2ebe0 Image link: https://postimg.cc/BjC027mJ/27391bec More on reddit.com
Missing `bits/wordsize.h` while compiling
An application I use, uses python and netifaces. This fails compiling with the following message on the org.gnome.Platform and Sdk 3.20: Running setup.py install for netifaces Complete output from ... More on github.com
How to determine the wordsize in Linux kernel programming? - Unix & Linux Stack Exchange
In userspace code, the macro __WORDSIZE is used, included in . However, when I do Linux kernel programming, the __WORDSIZE seems not available. If is More on unix.stackexchange.com
python - error installing lxml on ec2 - Stack Overflow
Having trouble installing lxml on an amazon ec2 instance. Can you possibly help me figure this out? I think it might be a problem with the way gcc installed based on the wordsize.h issue, but I ha... More on stackoverflow.com
Ubuntu
bugs.launchpad.net › bugs › 2067082
Bug #2067082 “bits/wordsize.h: No such file or directory” : Bugs : glibc package : Ubuntu
As Ubuntu have no interest in supporting 32-bit libraries this won't go anywhere. ... Ubuntu 22.04.5 LTS - Like to confirm this is an issue as of 5\12\2024 - trying to compile an old github project and come across the same problem. Compilation fails due to assuming "usr/include/" contains a folder "bits/", which in my case should contain the files "wordsize.h" and "timesize.h".
Reddit
reddit.com › r/kisslinux › error: fatal error wordsize.h no such file or directory along with other warnings when building linux kernel
r/kisslinux on Reddit: ERROR: Fatal error wordsize.h no such file or directory along with other warnings when building Linux kernel
June 30, 2021 -
The picture is in the comments section. Can someone please help? Im stuck on this error for about 2hrs ( + 1hr bc of the post time)
Top answer 1 of 2
1
Image link: https://postimg.cc/c67X1qC1/2cb2ebe0 Image link: https://postimg.cc/BjC027mJ/27391bec
2 of 2
1
bits/wordsize.h appears to be glibc specific, which to me means it is likely that there's something wrong with either your installation to this point or with your kernel configuration.
GitHub
github.com › flatpak › flatpak › issues › 220
Missing `bits/wordsize.h` while compiling · Issue #220 · flatpak/flatpak
July 30, 2016 - Running setup.py install for netifaces Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-q4nhh9e0/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-92nrgnit-record/install-record.txt --single-version-externally-managed --compile --user: running install running build running build_ext checking for getifaddrs...not found. checking for getnameinfo...not found. checking for socket IOCTLs...not found. checking for optional header files...none foun
Author gbraad
Gentoo
bugs.gentoo.org › 715476
715476 – dev-lang/teyjus-2.1-r2 : ../.../standardlib.h: fatal error: bits/wordsize.h: No such file or directory
August 9, 2022 - Gentoo's Bugzilla – Bug 715476 dev-lang/teyjus-2.1-r2 : ../.../standardlib.h: fatal error: bits/wordsize.h: No such file or directory Last modified: 2022-08-09 06:51:12 UTC node [vulture]
Stack Exchange
unix.stackexchange.com › questions › 167751 › how-to-determine-the-wordsize-in-linux-kernel-programming
How to determine the wordsize in Linux kernel programming? - Unix & Linux Stack Exchange
The asm/types.h should have BITS_PER_LONG set, which should be the word size to Robert Love's Linux Kernel Development (sixth result in the search). ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... Proportional odds logistic regression for ordered category outcome - how to convert odds ratios to probabilities in this case?
Gentoo
bugs.gentoo.org › 712842
712842 – sys-fabric/opensm-3.3.24 : ../.../cl_debug_osd.h: fatal error: bits/wordsize.h: No such file or directory
February 9, 2022 - Gentoo's Bugzilla – Bug 712842 sys-fabric/opensm-3.3.24 : ../.../cl_debug_osd.h: fatal error: bits/wordsize.h: No such file or directory Last modified: 2022-02-09 07:03:31 UTC node [vulture]
Narkive
lfs-support.linuxfromscratch.narkive.com › 8bXoKFuV › make-error-gcc
make error gcc - lfs-support@linuxfromscratch.org - narkive
=== /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[5]: *** [_muldi3.o] Error 1 make[5]: Leaving directory -- Kind Regards, Rajinder Yadav Upon further investigation, I only have the following 2 stub files $ cd /usr/include/gnu $ ls · Post by Rajinder Yadav libc-version.h lib-names.h stubs-64.h stubs.h doing a cat of stubs.h I notice bits/wordsize.h is included, so I check it out $ cat stubs.h ==========OUTPUT ======== /* This file selects the right generated file of `__stub_FUNCTION' macros based on the architecture being compiled for.
Gentoo
bugs.gentoo.org › 829176
829176 – sys-cluster/galera-26.4.17 - galerautils/.../gu_arch.h: fatal error: bits/wordsize.h: No such file or directory
March 26, 2024 - Gentoo's Bugzilla – Bug 829176 sys-cluster/galera-26.4.17 - galerautils/.../gu_arch.h: fatal error: bits/wordsize.h: No such file or directory Last modified: 2025-09-26 08:33:33 UTC node [vulture]
The Mail Archive
mail-archive.com › ubuntu-bugs@lists.ubuntu.com › msg6064664.html
[Bug 2067082] [NEW] bits/wordsize.h: No such file or directory
May 24, 2024 - ccache cc -c -o dlls/winecrt0/... /home/test/wine-git/dlls/winecrt0/dll_entry.c:29: /usr/include/features-time64.h:20:10: fatal error: bits/wordsize.h: No such file or directory 20 | #include <bits/wordsize.h> | ^~~~~~~~~~~~~~~~~ compilation terminated....
Google Groups
groups.google.com › g › linux.debian.bugs.dist › c › WbCKWyUzq9k
Bug#1027966: building of cross-toolchain-base broken, wrong assumption of dpkg-buildinfo
January 5, 2023 - Package: dpkg-dev Version: 1.21.16 Severity: serious Tags: sid bookworm see https://buildd.debian.org/status/fetch.php?pkg=cross-toolchain-base-ports&arch=all&ver=60&stamp=1672912429&raw=0 touch /<<PKGBUILDDIR>>/glibc-2.36/stamp-dir/binaryinst_libc6.1-udeb make[1]: Leaving directory '/<<PKGBUILDDIR>>/glibc-2.36' dpkg-genbuildinfo --build=any -O../glibc_2.36-7_alpha.buildinfo In file included from /usr/include/features.h:392, from /usr/include/unistd.h:25, from <stdin>:1: /usr/include/features-time64.h:20:10: fatal error: bits/wordsize.h: No such file or directory 20 | #include <bits/wordsize.h> | ^~~~~~~~~~~~~~~~~ compilation terminated.
Mozilla Bugzilla
bugzilla.mozilla.org › show_bug.cgi
1723953 - Build on Linux (any arch) using GCC fails in configure
they don't use the C++ headers or libstdc++.so from the sysroot · they don't necessarily know to use the multiarch directories in the sysroot
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
foolish glibc error * / Programming & Scripting / Arch Linux Forums
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory I found this in stubs.h: /* This file selects the right generated file of `__stub_FUNCTION' macros based on the architecture being compiled for. */ #include <bits/wordsize.h> #if __WORDSIZE == 32 # include <gnu/stubs-32.h> #elif __WORDSIZE == 64 # include <gnu/stubs-64.h> #else # error "unexpected value for __WORDSIZE macro" #endif ·
Texas Instruments E2E
e2e.ti.com › support › processors-group › processors › f › processors-forum › 799376 › linux-tmdx654idkevm-error-while-cross-compilation
Linux/TMDX654IDKEVM: Error while Cross-Compilation - Processors forum - Processors - TI E2E support forums
May 7, 2019 - Looking into the "wordsize.h" file I can see that it has the following processor directives: #if __MHWORDSIZE == 32 #ifdef _MIPS_SIM #if _MIPS_SIM == _ABIO32 #include <bits/wordsize-32.h> #elif _MIPS_SIM == _ABIN32 #include <bits/wordsize-n32.h> #else #error "Unknown _MIPS_SIM" #endif #else /* _MIPS_SIM is not defined */ #include <bits/wordsize-32.h> #endif #elif __MHWORDSIZE == 64 #include <bits/wordsize-64.h> #else #error "Unknown __WORDSIZE detected" #endif /* matches #if __WORDSIZE == 32 */
AMD Customer Community
adaptivesupport.amd.com › s › question › 0D52E00006hpmRTSAY › ai-sdk-crosscompile
AI SDK Cross-compile - Xilinx Support
November 2, 2018 - Loading · ×Sorry to interrupt · Refresh
Top answer 1 of 2
2
Looks like it's not finding your platform specific include files. i.e. bits/wordsize.h
Check that you have the following directory:
/usr/include/x86_64-linux-gnu/bits
If it exists try the the following
cd /usr/include
ln -s /usr/include/x86_64-linux-gnu/* .
If the files don't exist try:
sudo apt-get install libc6-dev
If you are using CentOS or Redhat
yum install glibc-devel glibc-headers
2 of 2
0
If you're trying to install lxml in a Python 3 virtualenv, you'll need to install python34-devel rather than just python-devel:
sudo yum install python34-devel
openSUSE Forums
forums.opensuse.org › english › applications
mingw64 cross compiling issues - Applications - openSUSE Forums
December 3, 2022 - Hi! I usually cross compile an app from Tumbleweed and for some reason in the last month or two months the compiler started to fail. It seems that it’s trying to use the C++ headers from the native system. I’m getting a header not found error when trying to use anything from the C++ standard library: x86_64-w64-mingw32-g++ -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -MD -MP -DDEBUG -DEE_DEBUG -DEE_MEMORY_MANAGER -m64 -g -B /usr/bin/x86_64-w64-mingw32- -Wall -o ...