Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install on Asahi Linux/aarch64 linux #175

Open
theoparis opened this issue Mar 15, 2025 · 0 comments
Open

Fails to install on Asahi Linux/aarch64 linux #175

theoparis opened this issue Mar 15, 2025 · 0 comments
Labels
bug Something isn't working need repro

Comments

@theoparis
Copy link

theoparis commented Mar 15, 2025

Issue description

......
rror ../deps/opus/silk/fixed/encode_frame_FIX.c:206:21: note: in expansion of macro ‘silk_NSQ’
npm error   206 |                     silk_NSQ( &psEnc->sCmn, &psEnc->sCmn.sNSQ, &psEnc->sCmn.indices, x_frame, psEnc->sCmn.pulses,
npm error       |                     ^~~~~~~~
npm error ../deps/opus/silk/main.h:270:18: note: referencing argument 13 of type ‘const int[4]’
npm error   270 |     ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
npm error       |     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error   271 |                    HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
npm error       |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../deps/opus/silk/fixed/encode_frame_FIX.c:206:21: note: in expansion of macro ‘silk_NSQ’
npm error   206 |                     silk_NSQ( &psEnc->sCmn, &psEnc->sCmn.sNSQ, &psEnc->sCmn.indices, x_frame, psEnc->sCmn.pulses,
npm error       |                     ^~~~~~~~
npm error ../deps/opus/silk/main.h:249:6: note: in a call to function ‘silk_NSQ_c’
npm error   249 | void silk_NSQ_c(
npm error       |      ^~~~~~~~~~
npm error ../deps/opus/silk/decode_indices.c: In function ‘silk_decode_indices’:
npm error ../deps/opus/silk/decode_indices.c:74:42: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
npm error    74 |         psDec->indices.GainsIndices[ i ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 );
npm error       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error In file included from ../deps/opus/silk/main.h:33,
npm error                  from ../deps/opus/silk/decode_indices.c:32:
npm error ../deps/opus/silk/structs.h:119:34: note: at offset 4 into destination object ‘GainsIndices’ of size 4
npm error   119 |     opus_int8                    GainsIndices[ MAX_NB_SUBFR ];
npm error       |                                  ^~~~~~~~~~~~
npm error ../deps/opus/silk/decode_indices.c:133:42: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
npm error   133 |             psDec->indices.LTPIndex[ k ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_LTP_gain_iCDF_ptrs[ psDec->indices.PERIndex ], 8 );
npm error       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../deps/opus/silk/structs.h:120:34: note: at offset 4 into destination object ‘LTPIndex’ of size 4
npm error   120 |     opus_int8                    LTPIndex[ MAX_NB_SUBFR ];
npm error       |                                  ^~~~~~~~
npm error ../deps/opus/celt/arm/celt_neon_intr.c: In function ‘celt_pitch_xcorr_float_neon’:
npm error ../deps/opus/celt/arm/celt_neon_intr.c:208:18: error: implicit declaration of function ‘celt_inner_prod_neon’; did you mean ‘celt_inner_prod_c’? [-Wimplicit-function-declaration]
npm error   208 |       xcorr[i] = celt_inner_prod_neon(_x, _y+i, len);
npm error       |                  ^~~~~~~~~~~~~~~~~~~~
npm error       |                  celt_inner_prod_c
npm error ../deps/opus/celt/arm/celt_neon_intr.c:208:18: warning: nested extern declaration of ‘celt_inner_prod_neon’ [-Wnested-externs]
npm error make: *** [deps/libopus.target.mk:310: Release/obj.target/libopus/deps/opus/celt/arm/celt_neon_intr.o] Error 1

It seems like I wasn't the only who encountered this issue: https://www.answeroverflow.com/m/1335236091724435466

Versions

  • @discordjs/opus 0.10.0

Issue priority

Low (slightly annoying)

@theoparis theoparis added bug Something isn't working need repro labels Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need repro
Projects
None yet
Development

No branches or pull requests

1 participant