Won't build on Alpine 3.19 and above
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- backend, build-system
Hướng nghiên cứu
Tái hiện lỗi trên Alpine 3.19 trở lên bằng cách sử dụng các phần phụ thuộc apk được liệt kê và npm i -g @vscode/spdlog. Bắt đầu với binding.gyp và đầu ra build native xung quanh deps/spdlog/include/spdlog/fmt/bundled/format.h; xác định sự không tương thích của compiler hoặc linker trên Alpine. Được xem là hoàn tất khi package build và cài đặt thành công trên các phiên bản Alpine bị ảnh hưởng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
beatit:~# npm i -g @vscode/spdlog
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/@vscode/spdlog
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/usr/local/lib/node_modules/@vscode/spdlog/build'
npm ERR! TOUCH Release/obj.target/node_modules/node-addon-api/node_addon_api_except.stamp
npm ERR! CXX(target) Release/obj.target/spdlog/src/main.o
npm ERR! CXX(target) Release/obj.target/spdlog/src/logger.o
npm ERR! SOLINK_MODULE(target) Release/obj.target/spdlog.node
npm ERR! make: Leaving directory '/usr/local/lib/node_modules/@vscode/spdlog/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@20.15.1 | linux | x64
npm ERR! gyp info find Python using Python version 3.11.14 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/@vscode/spdlog/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/.cache/node-gyp/20.15.1/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.15.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.15.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/@vscode/spdlog',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! /usr/include/fortify/stdio.h: In function 'snprintf_float.constprop.isra':
npm ERR! /usr/include/fortify/stdio.h:114:27: error: inlining failed in call to 'always_inline' 'snprintf': function body can be overwritten at link time
npm ERR! 114 | _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n,
npm ERR! | ^
npm ERR! ../deps/spdlog/include/spdlog/fmt/bundled/format.h:1609:36: note: called from here
npm ERR! 1609 | ? snprintf_ptr(begin, capacity, format, precision, value)
npm ERR! | ^
npm ERR! /usr/include/fortify/stdio.h:114:27: error: inlining failed in call to 'always_inline' 'snprintf': function body can be overwritten at link time
npm ERR! 114 | _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n,
npm ERR! | ^
npm ERR! ../deps/spdlog/include/spdlog/fmt/bundled/format.h:1610:36: note: called from here
npm ERR! 1610 | : snprintf_ptr(begin, capacity, format, value);
npm ERR! | ^
npm ERR! make[1]: *** [/tmp/ccFAGFGK.mk:14: /tmp/cccbOpoA.ltrans4.ltrans.o] Error 1
npm ERR! make[1]: *** Waiting for unfinished jobs....
npm ERR! In function 'snprintf_float',
npm ERR! inlined from 'write' at ../deps/spdlog/include/spdlog/fmt/bundled/format.h:3214:19:
npm ERR! /usr/include/fortify/stdio.h:114:27: error: inlining failed in call to 'always_inline' 'snprintf': function body can be overwritten at link time
npm ERR! 114 | _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n,
npm ERR! | ^
npm ERR! ../deps/spdlog/include/spdlog/fmt/bundled/format.h:1609:36: note: called from here
npm ERR! 1609 | ? snprintf_ptr(begin, capacity, format, precision, value)
npm ERR! | ^
npm ERR! /usr/include/fortify/stdio.h:114:27: error: inlining failed in call to 'always_inline' 'snprintf': function body can be overwritten at link time
npm ERR! 114 | _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n,
npm ERR! | ^
npm ERR! ../deps/spdlog/include/spdlog/fmt/bundled/format.h:1610:36: note: called from here
npm ERR! 1610 | : snprintf_ptr(begin, capacity, format, value);
npm ERR! | ^
npm ERR! make[1]: *** [/tmp/ccFAGFGK.mk:5: /tmp/cccbOpoA.ltrans1.ltrans.o] Error 1
npm ERR! lto-wrapper: fatal error: make returned 2 exit status
npm ERR! compilation terminated.
npm ERR! /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: error: lto-wrapper failed
npm ERR! collect2: error: ld returned 1 exit status
npm ERR! make: *** [spdlog.target.mk:142: Release/obj.target/spdlog.node] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Linux 6.6.116-0-lts
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/@vscode/spdlog
npm ERR! gyp ERR! node -v v20.15.1
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
Steps to reproduce:
- Install Alpine Linux 3.19 or above
- Install dependencies:
apk add python3 krb5-dev alpine-sdk bash libstdc++ libc6-compat nodejs npm yarn - Attempt to install @vscode/spdlog
Installing fmt and spdlog from package repos does not change.
- Ngôn ngữ chính
- JavaScript
- Star
- 58
- Fork
- 30
- Merge trung bình
- 3 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/node-spdlog
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
microsoft/node-spdlog#52 · 1 bình luận · 2 reaction ·
-
Test suite fails on ppc64le Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/node-spdlog#40 ·
Tất cả issue của microsoft/node-spdlog
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
neondatabase/website#5944 ·
-
module: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
jaegertracing/jaeger-ui#4506 ·