not able to build on mac os x (intel)

Open
#1 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
macos, zig

Research direction

Reproduce the native build on macOS Intel with Zig 0.14.0-dev.1391+e084c46ed, starting from openssl/crypto/modes/aes-gcm-avx512.s and the zig build-lib command shown in the report. Trace why the assembly directives and alignment values are rejected; done means the openssl package builds successfully without these errors.

Written by the indexing model from the issue text.

Description

I am trying to use this lib but no success:
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:135940:1: error: unknown directive
.size ossl_aes_gcm_finalize_avx512, .-ossl_aes_gcm_finalize_avx512
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:135942:1: error: unknown directive
.hidden ossl_gcm_gmult_avx512
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:135943:1: error: unknown directive
.type ossl_gcm_gmult_avx512,@function
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:135944:8: error: invalid alignment value
.align 32
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:135984:1: error: unknown directive
.size ossl_gcm_gmult_avx512, .-ossl_gcm_gmult_avx512
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:135989:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136001:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136026:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136033:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136040:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136047:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136054:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136061:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136068:8: error: invalid alignment value
.align 64
^
/Users/enver/Projects/zig/openssl/crypto/modes/aes-gcm-avx512.s:136076:8: error: invalid alignment value
.align 64
^

error: the following command failed with 36 compilation errors:
/Users/enver/zig/zig build-lib @/Users/enver/Projects/zig/openssl/.zig-cache/args/d1e5797d8a359d62135e2ba4392d4875dd4d341d5c5fbdf929886388d3aee714
Build Summary: 0/3 steps succeeded; 1 failed
install transitive failure
└─ install openssl transitive failure
└─ zig build-lib openssl Debug native 36 errors

My zig version: 0.14.0-dev.1391+e084c46ed

Dominant language
Assembly
Stars
28
Forks
18
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from allyourcodebase/openssl

All issues in allyourcodebase/openssl

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.