[Bug]: Unable to build on MacOS, ARM64
Describe the issue
Hello!
An open source project makes use of the abseil dependency. I'm downloading this version of abseil from the conancenter:
abseil/20230802.1:bf4c190a2a11c2e8ee87f448eac6d5d97f23aca1 - Build
I get the below error:
[ 11%] Building CXX object absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/internal/randen_hwaes.cc.o
[ 11%] Built target strerror
c++: error: unsupported option '-msse4.1' for target 'arm64-apple-darwin24.5.0'
make[2]: *** [absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/internal/randen_hwaes.cc.o] Error 1
make[1]: *** [absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
This is the environment of my machine:
➜ .build_3 git:(abcd) ✗ uname -a
Darwin <username> 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 arm64
Do you have any suggestions to resolve this issue? Previously, I have not run into any issue with abseil, however, that could be because I had downloaded the relevant files into my local cache.
Were there any recent updates to the version of abseil in the conancenter?
Steps to reproduce the problem
This webpage will help you build the rippled project: https://github.com/XRPLF/rippled/blob/develop/BUILD.md
Apologies, I don't have a smaller project that can isolate this issue.
What version of Abseil are you using?
abseil/20230802.1:bf4c190a2a11c2e8ee87f448eac6d5d97f23aca1
What operating system and version are you using?
already provided in the issue description
What compiler and version are you using?
apple-clang v16.0
What build system are you using?
cmake version 3.31.5
Additional context
No response
อธิบายปัญหา➜ .build_3 git:(abcd) ✗ uname -a
Darwin
สวัสดี! โปรเจ็กต์โอเพนซอร์สนี้ใช้การพึ่งพาการโรยตัว ฉันกำลังดาวน์โหลดเวอร์ชันการโรยตัวนี้จาก conancenter:
abseil/20230802.1:bf4c190a2a11c2e8ee87f448eac6d5d97f23aca1 - Buildฉันได้รับข้อผิดพลาดดังต่อไปนี้:
[ 11%] Building CXX object absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/internal/randen_hwaes.cc.o [ 11%] Built target strerror c++: error: unsupported option '-msse4.1' for target 'arm64-apple-darwin24.5.0' make[2]: *** [absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/internal/randen_hwaes.cc.o] Error 1 make[1]: *** [absl/random/CMakeFiles/random_internal_randen_hwaes_impl.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....นี่คือสภาพแวดล้อมของเครื่องของฉัน:
➜ .build_3 git:(abcd) ✗ uname -a Darwin <username> 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 arm64คุณมีข้อเสนอแนะใด ๆ ในการแก้ไขปัญหานี้หรือไม่? ก่อนหน้านี้ ฉันไม่เคยพบปัญหาใด ๆ เกี่ยวกับการโรยตัว แต่อาจเป็นเพราะฉันดาวน์โหลดไฟล์ที่เกี่ยวข้องลงในแคชในเครื่อง
มีการอัปเดตล่าสุดสำหรับเวอร์ชันของ abseil ใน conancenter หรือไม่
ขั้นตอนในการทำซ้ำปัญหา
เว็บเพจนี้จะช่วยคุณสร้างโครงการ Rippled: https://github.com/XRPLF/rippled/blob/develop/BUILD.md
ขออภัย ฉันไม่มีโครงการเล็กๆ ที่สามารถแยกปัญหาเรื่องนี้ได้
คุณใช้ Abseil เวอร์ชันอะไรอยู่?
โรยตัว/20230802.1:bf4c190a2a11c2e8ee87f448eac6d5d97f23aca1
คุณใช้ระบบปฏิบัติการและเวอร์ชันอะไรอยู่?
มีระบุไว้ในคำอธิบายปัญหาแล้ว
คุณใช้คอมไพเลอร์และเวอร์ชันอะไรอยู่?
แอปเปิล-แคลง v16.0
คุณใช้ระบบสร้างอะไรอยู่?
cmake เวอร์ชัน 3.31.5
บริบทเพิ่มเติม
ไม่มีการตอบสนอง
This should have been fixed by PR #1710 back in July 2024