Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Setup fails due to missing directory x86_64-pc-linux-gnu/setup/src

未关闭 适合新手
#396 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@stcarrez 已经在做这个了。

开始于 2026年6月21日。

  • #397 来自 @stcarrez —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
领域
build-system

调研方向

从 config/Makefile 开始,运行报告中的 make setup 命令,以重现缺少 /setup/src 目录的失败。检查使用 SDIR 和 STP_DIR 的规则,然后确认该目录已创建,并且 os_lib.ads 是根据正确的前置条件生成的。当 setup 步骤完成且没有报告中的 cd 或 os_lib-tmplt.c 错误时即完成。

由索引模型根据 Issue 内容生成。

描述

To setup the build for aws, the make setup command is executed but it fails to copy a file in the <target>/setup/src directory because that directory does not exist. At the end, the <target>/setup/src is in fact the file that was copied.

We end up with the following execution:

make setup ZLIB=false DEMOS=false LAL=false XMLADA=true SOCKET=openssl prefix=install_dir  PRJ_BUILD=Release
make[1]: Entering directory '/src/gnat/aws/config'
Setup
   [mkdir]        exec directory for project Setup
Bind
   [gprbind]      xoscons.bexch
   [Ada]          xoscons.ali
Link
   [link]         xoscons.adb
Setup OS specific definitions
/bin/sh: 1: cd: can't cd to /src/gnat/aws/x86_64-pc-linux-gnu/setup/src
cc1: fatal error: os_lib-tmplt.c: No such file or directory
compilation terminated.
make[1]: Leaving directory '/src/gnat/aws/config'
make[1]: Entering directory '/src/gnat/aws/regtests'
Can not generate system tags. The test are disabled
make[1]: Leaving directory '/src/gnat/aws/regtests'
make[1]: Entering directory '/src/gnat/aws/demos'
make[1]: Leaving directory '/src/gnat/aws/demos'
make[1]: Entering directory '/src/gnat/aws/templates_parser'
make[1]: Leaving directory '/src/gnat/aws/templates_parser'
make[1]: Entering directory '/src/gnat/aws/templates_parser'
make[1]: Leaving directory '/src/gnat/aws/templates_parser'

The root cause is the config/Makefile that uses incorrect definitions. The <target>/setup/src directory is expected to be created by:

$(SDIR)/src:
     $(MKDIR) $(STP_DIR)/src

But SDIR and STP_DIR are not the same variables, hence may not contain the same values.

And later:

$(SDIR)/src/os_lib.ads: $(SDIR)/src $(XOSCONS)$(EXEEXT) force

is wrong for the same reason.

Fixing the config/Makefile to use:

$(STP_DIR)/src:
        $(MKDIR) $(STP_DIR)/src

and

$(SDIR)/src/os_lib.ads: $(STP_DIR)/src $(XOSCONS)$(EXEEXT) force

solved the issue on my side.

主要语言
Ada
星标
163
派生
46
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AdaCore/aws 的其他 Issue

查看 AdaCore/aws 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。