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

libressl 3.8.3 build fail with error: invalid instruction mnemonic 'endbr64' #1021

Closed
armdn opened this issue Mar 18, 2024 · 3 comments
Closed

Comments

@armdn
Copy link

armdn commented Mar 18, 2024

The new stable 3.8.3 failed to build with throwing this errors:

Last 15 lines from /Users/admin/Library/Logs/Homebrew/libressl/02.make:
libtool: compile:  clang -DPACKAGE_NAME=\"libressl\" -DPACKAGE_TARNAME=\"libressl\" -DPACKAGE_VERSION=\"3.8.3\" "-DPACKAGE_STRING=\"libressl 3.8.3\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libressl\" -DVERSION=\"3.8.3\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSIZEOF_TIME_T=8 -DHAVE_SYMLINK=1 -DHAVE_MACHINE_ENDIAN_H=1 -DHAVE_ERR_H=1 -DHAVE_READPASSPHRASE_H=1 -DHAVE_NETINET_IP_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_NETDB_H=1 -DHAVE_RESOLV_H=1 -DHAVE_ASPRINTF=1 -DHAVE_MEMMEM=1 -DHAVE_READPASSPHRASE=1 -DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -DHAVE_STRNDUP=1 -DHAVE_STRNLEN=1 -DHAVE_STRSEP=1 -DHAVE_TIMEGM=1 -DHAVE_GETOPT=1 -DHAVE_GETPROGNAME=1 -DHAVE_SYSLOG=1 -DHAVE_POLL=1 -DHAVE_SOCKETPAIR=1 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_BUF=1 -DHAVE_ARC4RANDOM_UNIFORM=1 -DHAVE_TIMINGSAFE_BCMP=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -I. -I../crypto/hidden -I../include -I/private/tmp/libressl-20240318-44598-5ww7dn/libressl-3.8.3/include -I../include/compat -DLIBRESSL_INTERNAL -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS= -DLIBRESSL_CRYPTO_INTERNAL -I../crypto/asn1 -I../crypto/bio -I../crypto/bn -I../crypto/bytestring -I../crypto/curve25519 -I../crypto/dh -I../crypto/dsa -I../crypto/ec -I../crypto/ecdh -I../crypto/ecdsa -I../crypto/evp -I../crypto/hmac -I../crypto/modes -I../crypto/ocsp -I../crypto/pkcs12 -I../crypto/rsa -I../crypto/sha -I../crypto/x509 -I../crypto -DLIBRESSL_INTERNAL -DOPENSSL_NO_HW_PADLOCK -DOPENSSLDIR=\"/usr/local/etc/libressl\" -DAES_ASM -DBSAES_ASM -DVPAES_ASM -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DMD5_ASM -DGHASH_ASM -DRSA_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DWHIRLPOOL_ASM -DOPENSSL_CPUID_OBJ -I../crypto/bn/arch/amd64/ -D_FORTIFY_SOURCE=2 -g -O2 -Wall -std=gnu99 -fno-strict-aliasing -fno-strict-overflow -fstack-protector-strong -c bn/arch/amd64/bignum_sqr_4_8_alt.S  -fno-common -DPIC -o bn/arch/amd64/.libs/libcrypto_la-bignum_sqr_4_8_alt.o
bn/arch/amd64/bignum_mul_8_16_alt.S:75:2: error: invalid instruction mnemonic 'endbr64'
 endbr64

 ^~~~~~~
make[2]: *** [bn/arch/amd64/libcrypto_la-bignum_mul_8_16_alt.lo] Error 1
bn/arch/amd64/bignum_sqr.S:65:2: error: invalid instruction mnemonic 'endbr64'
 endbr64

 ^~~~~~~
bn/arch/amd64/bignum_sqr_4_8_alt.S:74:2: error: invalid instruction mnemonic 'endbr64'
 endbr64

 ^~~~~~~
make[2]: *** [bn/arch/amd64/libcrypto_la-bignum_sqr.lo] Error 1

make[2]: *** [bn/arch/amd64/libcrypto_la-bignum_sqr_4_8_alt.lo] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1

System: macOS 10.13.6
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

@busterb
Copy link
Contributor

busterb commented Mar 19, 2024

is this in macOS homebrew's build recipe?

@wtn
Copy link

wtn commented Mar 30, 2024

This appears to be a duplicate of #933.

You should try libressl 3.8.4 which came out recently.

@busterb
Copy link
Contributor

busterb commented Mar 31, 2024

Thanks for checking, I'll close this

@busterb busterb closed this as completed Mar 31, 2024
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

3 participants