Setup fails due to missing directory x86_64-pc-linux-gnu/setup/src
评估
- 难度
- 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AdaCore/aws 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
-
Upgrade of zlib required to solve compilation warnings due to K&R style可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 58/100
-
难度 3/5 1-2 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
AWS.Config.Client_Certificate function returning Server_Certificate instead of Client_Certificate未关闭
难度 1/5 1 小时以内 新手友好度 55/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
MISP/misp-workbench#496 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
microsoft/cpp_client_telemetry#1550 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
ash-project/ash_typescript#106 ·
-
Missing LICENSE未关闭
难度 1/5 1 小时以内 新手友好度 76/100
duckdb/extension-ci-tools#454 ·
维护者通常 1 天内回复