Target make file contains syntax which is not interpreted correctly on AIX
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
从详细的 node-gyp rebuild 输出和第 279 行生成的 custom_package.target.mk 开始,然后检查 $(call do_cmd,solink_module) 命令在 AIX /bin/sh 下是如何展开的。将生成的命令与 AIX 接受的 shell 语法进行比较;当 native addon 的构建在 AIX 上成功完成时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
- Node Version: node v18.20.5 , npm 10.8.2
- Platform: AIX PPC 64
- Compiler: gcc version 10.3.0 (GCC)
- Module: Proprietary custom module
Target make file contains syntax which is not interpreted correctly on AIX
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/home/user/user1/node-v18.20.5-aix-ppc64/bin/node',
gyp verb cli '/tmp/custom_package/node_modules/.bin/node-gyp',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--target=v18.20.5',
gyp verb cli '--release',
gyp verb cli '--msvs_version=2019',
gyp verb cli '--buildfolder=Release',
gyp verb cli '--linux_variant=undefined',
gyp verb cli '--v8_enable_pointer_compression=false',
gyp verb cli '--v8_enable_31bit_smis_on_64bit_arch=false',
gyp verb cli '--build_v8_with_gn=false',
gyp verb cli '--enable_lto=false'
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | aix | ppc64
gyp verb clean removing "build" directory
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - executable path is "/usr/bin/python3"
gyp verb find Python - executing "/usr/bin/python3" to get version
gyp verb find Python - version is "3.9.6"
gyp info find Python using Python version 3.9.6 found at "/usr/bin/python3"
gyp verb get node dir no --target version specified, falling back to host node version: 18.20.5
gyp verb install input version string "18.20.5"
gyp verb install installing version: 18.20.5
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 11
gyp verb needs "installVersion" 11
gyp verb install version is good
gyp verb get node dir target node version installed: 18.20.5
.
.
.
.
g++ -shared -Wl ........
/bin/sh: syntax error at line 1 : `(' unexpected
gmake: Leaving directory '/tmp/custom_package/nodejs/src/custom_package/node_modules/custom_package-napi/build'
gmake: *** [custom_package.target.mk:279: Release/obj.target/custom_package.node] Error 2
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
The line 279 is " $(call do_cmd,solink_module)" in the generated make file
A few lines above it are:
$(obj).target/custom_module.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
$(obj).target/custom_module.node: LIBS := $(LIBS)
$(obj).target/custom_module.node: TOOLSET := $(TOOLSET)
$(obj).target/custom_module.node: $(OBJS) FORCE_DO_CMD
$(call do_cmd,solink_module)
NOTE: This works on all the other platforms linux / windows on pc, amd, arm, mac, graviton. It complains specifically for AIX.
- 主要语言
- Python
- 星标
- 10.7k
- 派生
- 1.9k
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nodejs/node-gyp 的其他 Issue
-
dependencies github_actions
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Support authentication for private `--dist-url` Node.js distribution mirrors可能已有人在做 @carmelid 于 26 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
nodejs/node-gyp#3372 · 1 条评论 ·
维护者通常 1 天内回复
-
gyp: 'Undefined variable android_ndk_path' when building native modules on Android (Termux) without NDK可能已有人在做 @lesliechowsh 于 62 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
nodejs/node-gyp#3355 · 1 条评论 ·
维护者通常 1 天内回复
-
MSYS2
难度 4/5 3-5 天 新手友好度 35/100
nodejs/node-gyp#3350 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
nodejs/node-gyp#3344 · 3 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
WingedGuardian/GENesis-AGI#3375 ·
维护者通常 1 天内回复
-
curriculum documentation quality
难度 2/5 1-3 小时 新手友好度 75/100
githubnext/gh-aw-workshop#4601 ·
维护者通常 1 天内回复
-
approved Good First Issue scope: docs
难度 1/5 1 小时以内 新手友好度 85/100
hiero-ledger/hiero-sdk-python#2730 · 3 条评论 ·
维护者通常 1 天内回复