Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Won't build on Alpine 3.19 and above

Abierto
#55 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp, node.js

Línea de trabajo

Reproduce el fallo en Alpine 3.19 o posterior usando las dependencias apk indicadas y npm i -g @vscode/spdlog. Empiece por binding.gyp y la salida de compilación nativa alrededor de deps/spdlog/include/spdlog/fmt/bundled/format.h; identifique la incompatibilidad del compilador o enlazador de Alpine. Se considera completado cuando el paquete se compila e instala correctamente en las versiones de Alpine afectadas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

  1. Install Alpine Linux 3.19 or above
  2. Install dependencies: apk add python3 krb5-dev alpine-sdk bash libstdc++ libc6-compat nodejs npm yarn
  3. Attempt to install @vscode/spdlog

Installing fmt and spdlog from package repos does not change.

Lenguaje dominante
JavaScript
Estrellas
58
Forks
30
Merge medio
3 d 23 h
PR fusionados (30 d)
3

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/node-spdlog

Todos los issues de microsoft/node-spdlog

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.