国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

fatal error: linux/compiler-gcc9.h: No such file or directory

這篇具有很好參考價值的文章主要介紹了fatal error: linux/compiler-gcc9.h: No such file or directory。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

linux

找到README文件

cd /mnt/e/CLionProjects/linux-3.10.99
sudo useradd linux3x
sudo passwd linux3x
sudo mkdir /home/linux3x
sudo chown linux3x:linu3x /home/linux3x
sudo chmod 755 /home/linux3x
su - linux3x
mkdir ~/build
mkdir ~/build/kernel
exit
make O=/home/linux3x/build/kernel menuconfig
make O=/home/linux3x/build/kernel
# sudo make O=/home/linux3x/build/kernel modules_install install

mzh@DESKTOP-GITL67P:~$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. ?There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
?

因為當前gcc版本是9.x, 找不到 compiler-gcc9.h, 復(fù)制compiler-gcc5.h成compiler-gcc9.h

fatal error: linux/compiler-gcc9.h: No such file or directory,linux,運維,服務(wù)器

Kernel doesn't support PIC mode for compiling?

# force no-pie for distro compilers that enable pie by default
KBUILD_CFLAGS += $(call cc-option, -fno-pie)
KBUILD_CFLAGS += $(call cc-option, -no-pie)
KBUILD_AFLAGS += $(call cc-option, -fno-pie)
KBUILD_CPPFLAGS += $(call cc-option, -fno-pie)

cp?E:\CLionProjects\linux-3.10.99\linux-3.10.99\include\linux\compiler-gcc5.h?E:\CLionProjects\linux-3.10.99\linux-3.10.99\include\linux\compiler-gcc9.h

CLion頭文件報錯

fatal error: linux/compiler-gcc9.h: No such file or directory,linux,運維,服務(wù)器

標紅,不能跳轉(zhuǎn)

sudo cp -r ./include/linux/ /usr/local/include/

不要copy到/usr/include, 否則當前運行的操作系統(tǒng)壞了。

mzh@DESKTOP-GITL67P:/mnt/e/CLionProjects/linux-3.10.99/linux-3.10.99$ sudo rsync -avz ./include/ /usr/local/include/

但是這樣會重復(fù)定義,所以還是用vim算了。

mzh@DESKTOP-GITL67P:/usr/local/include$ rm -rf acpi/ asm-generic/ clocksource/ config/ crypto/ drm/ dt-bindings/ generated/ keys/ linux3x/ math-emu/ media/ memory/ misc/ net/ pcmcia/ ras/ rdma/ rxrpc/ scsi/ sound/ target/ trace/ uapi/ video/ xen/

sudo apt-get install ctags

$ cat tags.sh

#/bin/bash

WORKDIR="/mnt/e/CLionProjects/linux-3.10.99"
find "${WORKDIR}" -name "*.[c|h]" | xargs ctags -f "${WORKDIR}/tags"
# find /usr/include -name "*.h" | xargs ctags -a "${WORKDIR}/tags"

ctags -a 表示追加索引內(nèi)容到tags文件。Linux不依賴libc.so,所以不需要添加/usr/include。?

./tags.sh

在~/.vimrc中添加

set tags="/mnt/e/CLionProjects/linux-3.10.99/linux-3.10.99/tags"

對于報錯Time skewed

sudo ntpdate -uv time.windows.com

linux TCP 代碼在線查看

process解析

Misc on Linux fork, switch_to, and scheduling

Radix tree?文章來源地址http://www.zghlxwxcb.cn/news/detail-709505.html

到了這里,關(guān)于fatal error: linux/compiler-gcc9.h: No such file or directory的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • fatal error: opencv2/opencv.hpp: No such file or directory

    這是因為opencv頭文件的路徑中多了一個opencv4的文件夾:/usr/include/opencv4/opencv2 可以將opencv2文件夾鏈接到include文件夾下

    2024年02月11日
    瀏覽(22)
  • vscode中解決頭文件找不到問題,即fatal error: **.h: No such file or directory

    vscode中解決頭文件找不到問題,即fatal error: **.h: No such file or directory

    最近,在需要運行擁有頭文件的cpp代碼時候,vscode提示fatal error: **.h: No such file or directory 找不到頭文件或所在目錄。 這里記錄一下我的解決辦法。 1.設(shè)置launch.json 設(shè)置重點為加注釋的句子 ? 2.設(shè)置lauch.json 3. 按下F5 程序可正常尋找到頭文件,輸出結(jié)果正確 問題解決。 PS: 后

    2024年02月13日
    瀏覽(21)
  • 【OpenCV4】fatal error: opencv2/core.hpp: No such file or directory 解決方法

    【OpenCV4】fatal error: opencv2/core.hpp: No such file or directory 解決方法

    Mac 系統(tǒng) VScode OpenCV 4.5.4 在運行代碼的時候出現(xiàn)報錯 檢查 c_cpp_properties.json , launch.json , tasks.json 這 3 個文件,參考: https://blog.csdn.net/qq_42067550/article/details/122634801?spm=1001.2014.3001.5502 查看 pkg-config 的設(shè)置 檢查 vscode 工作區(qū)設(shè)置 在終端輸入: 的到: 隨便打開一個 訪達 窗口,

    2023年04月08日
    瀏覽(22)
  • 解決 fatal error: asm/bitsperlong.h: No such file or directory #include <asm/bitsperlong.h>

    解決 fatal error: asm/bitsperlong.h: No such file or directory #include <asm/bitsperlong.h>

    問題: ./include/uapi/asm-generic/int-ll64.h:12:10: fatal error: asm/bitsperlong.h: No such file or directory #include asm/bitsperlong.h 查看路徑其實是存在該文件的 最終問題解決: ? 使用命令查看當前是否設(shè)置了其他交叉編譯工具鏈 ? 若存在,比如我在~/.bashrc 中 永久設(shè)置了ARM架構(gòu)交叉編譯工具鏈,

    2024年02月03日
    瀏覽(53)
  • 編譯 FastDFS 時報錯 fatal error: sf/sf_global.h: No such file or directory 解決辦法

    編譯 FastDFS 時報錯 fatal error: sf/sf_global.h: No such file or directory 解決辦法

    編譯 FastDFS 時,報錯如下 原因: 需要先編譯和安裝 libserverframe,新引入的網(wǎng)絡(luò)框架庫,下載地址:https://github.com/happyfish100 編譯安裝完后即可正常編譯安裝 FastDFS

    2024年02月21日
    瀏覽(40)
  • linux 寫c, 編譯報錯 stdio.h: No such file or directory,compilation terminated.

    linux 寫c, 編譯報錯 stdio.h: No such file or directory,compilation terminated.

    環(huán)境: windows11-subsystem(Ubuntu20) 問題: linux 寫c, 編譯報錯如圖(fatal error: stdio.h: No such file or directory │compilation terminated. #include stdio.h) 復(fù)現(xiàn): 問題原因: 默認操作系統(tǒng)安裝的gcc版本不對,和軟硬件不兼容 解決方案 卸載默認gcc: build-essential: 它包含了 GNU 編輯器集合,GNU 調(diào)試器,和

    2024年02月13日
    瀏覽(19)
  • 找不到opencv2/opencv.hpp,fatal error: opencv2/opencv.hpp: No such file or directory

    在CMakeLists.txt? 當中添加你的opencv.hpp 路徑即可。 我的opencv.hpp? 在?/usr/include/opencv2/ INCLUDE_DIRECTORIES(/usr/include/opencv2/) 通過命令 include_directories 來設(shè)置頭文件的搜索目錄

    2024年02月12日
    瀏覽(20)
  • docker: Error response from daemon: OCI runtime create failed: container_linux.go:318 no such file

    本地鏡像默認工作目錄為:/tmp/project,根據(jù)該鏡像運行容器時報錯,原因是:掛載的目錄為/tmp/client/,而執(zhí)行 npm i 命令時,進入的是client目錄,解決方式:將命令修改為以下即可: cd /tmp/client/? npm i docker 運行時報錯: 修改后的代碼:

    2024年02月15日
    瀏覽(24)
  • nginx `error:2006D080:BIO routines:BIO_new_file:no such file error`

    現(xiàn)象: Nginx 配置文件中存在 SSL/TLS 相關(guān)的指令,并且指定了一個無效的證書文件路徑。具體來說,Nginx 嘗試加載 /opt/nginx/conf/none 文件作為證書文件,但該文件不存在,因此加載失敗。 排查: 最終排查下來因為上游服務(wù)器不可用,隨之ssl也無法繼續(xù)提供,這個時候執(zhí)行Nginx

    2024年02月15日
    瀏覽(42)
  • 解決Git配置error:could not lock config file....No such file or directory

    解決Git配置error:could not lock config file....No such file or directory

    新安裝git出現(xiàn)無法設(shè)置用戶名和郵箱的方法。 $ git config --global user.name “用戶名” $ git config --global user.email “郵箱” 當在git bash里設(shè)置用戶名郵箱出現(xiàn)類似以下提示時的解決方法。 GIT error: could not lock config file C:/Users/FZQ/Desktop/%USERPROFILE%/…No such file or directory 這里說在我的電

    2024年02月06日
    瀏覽(89)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包