解决gcc -m32报错fatal error: sys/cdefs.h: No such file or directory

博客聚焦于解决gcc -m32报错问题,当出现fatal error: sys/cdefs.h: No such file or directory错误时,可通过特定方法解决,这在信息技术开发中编译相关操作里较为常见。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386

 

set build/lib.linux-x86_64-cpython-310/matplotlib/_version.py to '3.0.2' running build_ext building 'matplotlib.ft2font' extension /disk221/lihx/anaconda3/envs/scF/lib/python3.10/importlib/__init__.py:169: UserWarning: The NumPy module was reloaded (imported a second time). This can in some cases result in small but subtle issues and is discouraged. _bootstrap._exec(spec, module) creating build/temp.linux-x86_64-cpython-310/src /disk221/lihx/anaconda3/envs/scF/bin/x86_64-conda-linux-gnu-c++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /disk221/lihx/anaconda3/envs/scF/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /disk221/lihx/anaconda3/envs/scF/include -fPIC -DFREETYPE_BUILD_TYPE=system -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -I/disk221/lihx/anaconda3/envs/scF/lib/python3.10/site-packages/numpy/core/include -Iextern/agg24-svn/include -I/disk221/lihx/anaconda3/envs/scF/include -I/disk221/lihx/anaconda3/envs/scF/include/libpng16 -I/disk221/lihx/anaconda3/envs/scF/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/disk221/lihx/anaconda3/envs/scF/include/python3.10 -c src/ft2font.cpp -o build/temp.linux-x86_64-cpython-310/src/ft2font.o In file included from /disk221/lihx/anaconda3/envs/scF/include/python3.10/Python.h:36, from src/mplutils.h:33, from src/ft2font.cpp:10: /usr/include/unistd.h:1170:10: fatal error: bits/unistd_ext.h: No such file or directory 1170 | #include <bits/unistd_ext.h> | ^~~~~~~~~~~~~~~~~~~ compilation terminated. error: command '/disk221/lihx/anaconda3/envs/scF/bin/x86_64-conda-linux-gnu-c++' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for matplotlib Running setup.py clean for matplotlib Failed to build matplotlib ERROR: Failed to build installable wheels for some pyproject.toml based projects (matplotlib)
最新发布
07-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值