AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-2377595

Garry Grover's questions

Martin Hope
Garry Grover
Asked: 2024-11-18 06:58:16 +0800 CST

构建 GCC 失败,并显示“make:*** 未指定目标且未找到 makefile。”

  • 5

我按照 GCC 安装说明 [1] 下载源代码并配置我的构建,但是当我尝试make从顶层目录(使用MAINTAINERS和Makefile.in)时,我总是收到相同的错误:make: *** No targets specified and no makefile found.我不知道如何继续安装指南的构建步骤。

编辑:我注意到我的objdir/config.log文件以结尾configure: exit 1,我不确定这是否是预期的,或者是否表示配置失败并且项目不处于可行构建状态。

我试过了

  • make

  • make install

  • make bootstrap

  • make -f Makefile.in

    Makefile:26: *** missing separator. Stop.由于以 和 开头的行,@if此操作失败并显示消息@endif。此自动生成的文件有很多这样的行,我怀疑我是否应该手动删除它们。

到目前为止我的完整工作流程:

# Get the source
~$ mkdir gcc; cd gcc
~/gcc$ git clone git://gcc.gnu.org/git/gcc.git .

# Make objdir/ and configure my desired build
~$ mkdir ARM; cd ARM
~/gcc/ARM$ ../configure --prefix=$HOME --target=aarch64-none-elf

# Try to "just make"
~/gcc/ARM$ cd ..
~/gcc$ make # :(

一些可能相关的细节

~/gcc$ gcc --version
gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
Copyright (C) 2021 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$ make --version
GNU Make 4.3
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
~/gcc$ git show
commit 3e89a4d5138e585713604135d4c2601244055e82 (HEAD -> master, origin/trunk, origin/master, origin/HEAD)
Author: Jason Merrill <[email protected]>
Date:   Sat Nov 16 15:25:04 2024 -0500
...
~/gcc$ ls
ABOUT-NLS           config.sub       fixincludes   libcody       libitm           ltmain.sh           missing
ar-lib              configure        gcc           libcpp        libobjc          lt~obsolete.m4      mkdep
ARM                 configure.ac     gnattools     libdecnumber  libphobos        lto-plugin          mkinstalldirs
ChangeLog           contrib          gotools       libffi        libquadmath      ltoptions.m4        move-if-change
ChangeLog.jit       COPYING          include       libgcc        libsanitizer     ltsugar.m4          multilib.am
ChangeLog.tree-ssa  COPYING3         INSTALL       libgfortran   libssp           ltversion.m4        README
compile             COPYING3.LIB     install-sh    libgm2        libstdc++-v3     MAINTAINERS         SECURITY.txt
config              COPYING.LIB      libada        libgo         libtool-ldflags  maintainer-scripts  symlink-tree
config.guess        COPYING.RUNTIME  libatomic     libgomp       libtool.m4       Makefile.def        test-driver
config-ml.in        c++tools         libbacktrace  libgrust      libvtv           Makefile.in         ylwrap
config.rpath        depcomp          libcc1        libiberty     ltgcc.m4         Makefile.tpl        zlib
  1. https://gcc.gnu.org/install/index.html

编辑:修复了一些细节并添加了一些细节

gcc
  • 1 个回答
  • 23 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve