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

build on Mac M1 running issue "error: invalid alignment value" #212

Open
feixian opened this issue Sep 13, 2023 · 0 comments
Open

build on Mac M1 running issue "error: invalid alignment value" #212

feixian opened this issue Sep 13, 2023 · 0 comments

Comments

@feixian
Copy link

feixian commented Sep 13, 2023

hi ,I run the command npm I or npm run-script dist. it shows the error information "invalid alignment value". could you help me with that? Thanks in advanced.

bogon:media-server-node hualaitech$    npm run-script dist

> [email protected] dist
> node-gyp configure && node-gyp build --jobs=max && mkdir -p dist && tar cvzf dist/medooze-media-server-`node -e 'console.log(require("./package.json").version)'`.tgz `([ "$(uname)" = 'Darwin' ] && echo "-s |^|medooze-media-server/|") || echo " --transform=flags=r;s|^|medooze-media-server/|"` package.json index.js medooze-media-server.d.ts README.md lib/* build/Release/medooze-media-server.node

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 3.11.5 found at "/usr/local/opt/[email protected]/bin/python3.11"
gyp info spawn /usr/local/opt/[email protected]/bin/python3.11
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/hualaitech/Desktop/medooze-server-node/media-server-node/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/hualaitech/Library/Caches/node-gyp/18.17.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/hualaitech/Library/Caches/node-gyp/18.17.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/hualaitech/Library/Caches/node-gyp/18.17.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/hualaitech/Desktop/medooze-server-node/media-server-node',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ]
  CC(target) Release/obj.target/libsrtp/external/srtp/gcm_aes_backend-asm.o
../external/srtp/gcm_aes_backend-asm.S:13:1: error: unknown directive
.hidden AesGcmSrtpBackend_ia32cap_P
^
../external/srtp/gcm_aes_backend-asm.S:17:1: error: unknown directive
.type AesGcmSrtpBackend_asm_ia32_cpuid,@function
^
../external/srtp/gcm_aes_backend-asm.S:184:1: error: unknown directive
.size AesGcmSrtpBackend_asm_ia32_cpuid,.-AesGcmSrtpBackend_asm_ia32_cpuid
^
../external/srtp/gcm_aes_backend-asm.S:192:1: error: unknown directive
.type AesGcmSrtpBackend_asm_aesni_set_encrypt_key,@function
^
../external/srtp/gcm_aes_backend-asm.S:564:1: error: unknown directive
.size AesGcmSrtpBackend_asm_aesni_set_encrypt_key,.-AesGcmSrtpBackend_asm_aesni_set_encrypt_key
^
../external/srtp/gcm_aes_backend-asm.S:565:1: error: unknown directive
.size __aesni_set_encrypt_key,.-__aesni_set_encrypt_key
^
../external/srtp/gcm_aes_backend-asm.S:566:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:593:1: error: unknown directive
.type AesGcmSrtpBackend_asm_vpclmulqdq_capable,@function
^
../external/srtp/gcm_aes_backend-asm.S:594:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:604:1: error: unknown directive
.size AesGcmSrtpBackend_asm_vpclmulqdq_capable, .-AesGcmSrtpBackend_asm_vpclmulqdq_capable
^
../external/srtp/gcm_aes_backend-asm.S:607:1: error: unknown directive
.type AesGcmSrtpBackend_asm_init_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:608:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:623:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:647:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:675:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:1130:1: error: unknown directive
.size AesGcmSrtpBackend_asm_init_avx512, .-AesGcmSrtpBackend_asm_init_avx512
^
../external/srtp/gcm_aes_backend-asm.S:1132:1: error: unknown directive
.type AesGcmSrtpBackend_asm_setiv_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:1133:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:2504:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:2528:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:2556:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:2620:1: error: unknown directive
.size AesGcmSrtpBackend_asm_setiv_avx512, .-AesGcmSrtpBackend_asm_setiv_avx512
^
../external/srtp/gcm_aes_backend-asm.S:2622:1: error: unknown directive
.type AesGcmSrtpBackend_asm_update_aad_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:2623:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:3960:1: error: unknown directive
.size AesGcmSrtpBackend_asm_update_aad_avx512, .-AesGcmSrtpBackend_asm_update_aad_avx512
^
../external/srtp/gcm_aes_backend-asm.S:3962:1: error: unknown directive
.type AesGcmSrtpBackend_asm_encrypt_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:3963:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:4020:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:24919:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:46464:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:68686:1: error: unknown directive
.size AesGcmSrtpBackend_asm_encrypt_avx512, .-AesGcmSrtpBackend_asm_encrypt_avx512
^
../external/srtp/gcm_aes_backend-asm.S:68688:1: error: unknown directive
.type AesGcmSrtpBackend_asm_decrypt_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:68689:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:68746:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:89645:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:111190:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:133412:1: error: unknown directive
.size AesGcmSrtpBackend_asm_decrypt_avx512, .-AesGcmSrtpBackend_asm_decrypt_avx512
^
../external/srtp/gcm_aes_backend-asm.S:133414:1: error: unknown directive
.type AesGcmSrtpBackend_asm_finalize_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:133415:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:133498:1: error: unknown directive
.size AesGcmSrtpBackend_asm_finalize_avx512, .-AesGcmSrtpBackend_asm_finalize_avx512
^
../external/srtp/gcm_aes_backend-asm.S:133500:1: error: unknown directive
.hidden AesGcmSrtpBackend_asm_gmult_avx512
^
../external/srtp/gcm_aes_backend-asm.S:133501:1: error: unknown directive
.type AesGcmSrtpBackend_asm_gmult_avx512,@function
^
../external/srtp/gcm_aes_backend-asm.S:133502:8: error: invalid alignment value
.align 32
       ^
../external/srtp/gcm_aes_backend-asm.S:133542:1: error: unknown directive
.size AesGcmSrtpBackend_asm_gmult_avx512, .-AesGcmSrtpBackend_asm_gmult_avx512
^
../external/srtp/gcm_aes_backend-asm.S:133547:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133559:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133584:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133591:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133598:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133605:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133612:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133619:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133626:8: error: invalid alignment value
.align 64
       ^
../external/srtp/gcm_aes_backend-asm.S:133634:8: error: invalid alignment value
.align 64
       ^
make: *** [Release/obj.target/libsrtp/external/srtp/gcm_aes_backend-asm.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Darwin 22.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--jobs=max"
gyp ERR! cwd /Users/hualaitech/Desktop/medooze-server-node/media-server-node
gyp ERR! node -v v18.17.1
gyp ERR! node-gyp -v v9.3.1
gyp ERR! not ok 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant