当前位置:网站首页>"Pthread.h" not found problem encountered in compiling GCC
"Pthread.h" not found problem encountered in compiling GCC
2022-07-03 04:59:00 【passenger12234】
stay LFS Of The fifth chapter Compile from source freestanding Of GCC The following error is reported
./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory
35 | #include <pthread.h>
The reference configuration instructions given in the book are
../configure \
--target=$LFS_TGT \
--prefix=$LFS/tools \
--with-glibc-version=2.35 \
--with-sysroot=$LFS \
--with-newlib \
--without-headers \
--enable-initfini-array \
--disable-nls \
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libquadmath \
--disable-libssp \
--disable-libvtv \
--disable-libstdcxx \
--enable-languages=c,c++
I first tried to delete the above pile disable, The following configuration instructions are used ( Mainly curiosity configure Will it automatically infer some libraries and feature There is no way to support , such as threads)
../configure \
--target=$LFS_TGT \
--prefix=$LFS/tools \
--with-glibc-version=2.35 \
--with-sysroot=$LFS \
--with-newlib \
--without-headers \
--enable-initfini-array \
--disable-nls \
--disable-shared \
--disable-multilib \
And then, sure enough , I got the following error report
./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory
35 | #include <pthread.h>
So I tried make clean, Then use the configuration instructions in the book to re configure. What's puzzling is , Still got the above pthread.h not found The error of ( Expected due to the removal of thread support , Should no longer rely on pthread.h The header file ).
Discover the use of rm -rf * hold build Delete all directories and then re configure It was successful . This description is the previous make clean Didn't say that the configuration file was deleted completely .
After a search , Found out GNU automake Description of and GNU coding styles Explanation .
on top coding styles The following instructions are included in the documentation for
‘clean’
Delete all files in the current directory that are normally created by building the program. Also delete files in other directories if they are created by this makefile. However, don’t delete the files that record the configuration. Also preserve files that could be made by building, but normally aren’t because the distribution comes with them. There is no need to delete parent directories that were created with ‘mkdir -p’, since they could have existed anyway.
‘distclean’
Delete all files in the current directory (or created by this makefile) that are created by configuring or building the program. If you have unpacked the source and built the program without creating any other files, ‘make distclean’ should leave only the files that were in the distribution. However, there is no need to delete parent directories that were created with ‘mkdir -p’, since they could have existed anyway.
Delete .dvi files here if they are not part of the distribution.
on top automake In the document , The following are defined clean semantics
- If
makebuilt it, and it is commonly something that one would want to rebuild (for instance, a.ofile), thenmostlycleanshould delete it. - Otherwise, if
makebuilt it, thencleanshould delete it. - If
configurebuilt it, thendistcleanshould delete it. - If the maintainer built it (for instance, a
.infofile), thenmaintainer-cleanshould delete it. Howevermaintainer-cleanshould not delete anything that needs to exist in order to run‘./configure && make’.
So the problem with my previous operation is that I shouldn't use make clean, Instead, use make distclean.
边栏推荐
- Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
- Notes | numpy-10 Iterative array
- 50 practical applications of R language (36) - data visualization from basic to advanced
- The principle is simple, but I don't know how to use it? Understand "contemporaneous group model" in one article
- [XSS bypass - protection strategy] understand the protection strategy and better bypass
- Handler understands the record
- Market status and development prospect prediction of the global fire hose industry in 2022
- Preparation for school and professional cognition
- STM32 reverse entry
- Problems encountered in fuzzy query of SQL statements
猜你喜欢
![[set theory] relation properties (transitivity | transitivity examples | transitivity related theorems)](/img/c2/87358af6b2b2892a6eceb751b3b60c.jpg)
[set theory] relation properties (transitivity | transitivity examples | transitivity related theorems)

LVS load balancing cluster of efficient multi-purpose cluster (NAT mode)

论文阅读_清华ERNIE
![[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)](/img/2a/362f3b0491f721d89336d4f468c9dd.jpg)
[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)

Shuttle + Alluxio 加速内存Shuffle起飞

The programmer resigned and was sentenced to 10 months for deleting the code. JD came home and said that it took 30000 to restore the database. Netizen: This is really a revenge

Use Sqlalchemy module to obtain the table name and field name of the existing table in the database
![[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)](/img/af/8dfa783c87363a9d75c52e7680d508.jpg)
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)

Do you know UVs in modeling?

Keepalived热备与HAProxy
随机推荐
1094 the largest generation (25 points)
Kept hot standby and haproxy
雇佣收银员(差分约束)
【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)
Cross platform plug-in flutter for displaying local notifications_ local_ notifications
Wechat applet waterfall flow and pull up to the bottom
2022-02-12 daily clock in: problem fine brush
Do you know UVs in modeling?
The current market situation and development prospect of the global gluten tolerance test kit industry in 2022
[develop wechat applet local storage with uni app]
1115 counting nodes in a BST (30 points)
String matching: find a substring in a string
Day 51 - tree problem
ZABBIX monitoring of lamp architecture (3): zabbix+mysql (to be continued)
Literature reading_ Research on the usefulness identification of tourism online comments based on semantic fusion of multimodal data (Chinese Literature)
LVS load balancing cluster of efficient multi-purpose cluster (NAT mode)
[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology
并发操作-内存交互操作
[PHP vulnerability weak type] basic knowledge, PHP weak equality, error reporting and bypassing