libaco icon indicating copy to clipboard operation
libaco copied to clipboard

Add support for aarch64

Open postwait opened this issue 4 years ago • 7 comments

postwait avatar Apr 29 '20 20:04 postwait

I'm sure the new Apple M1 users would love to see support for this :smile:

techbech avatar Jan 06 '21 21:01 techbech

We're running the code here successfully: https://github.com/circonus-labs/libmtev/tree/master/src/aco

postwait avatar Jan 06 '21 21:01 postwait

You just saved me a lot of time! Thanks!

bmcdorman avatar Apr 28 '21 18:04 bmcdorman

Any chance to merge this? @hnes

CarterLi avatar Sep 16 '21 01:09 CarterLi

Hello, when I merge https://github.com/hnes/libaco/pull/38 into https://github.com/dragon-zhang/libaco, still unable to compile, the following is the error report of compilation :

Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
  "aco_funcp_protector_asm", referenced from:
      _aco_share_stack_new2 in aco.c.o
  "aco_save_fpucw_mxcsr", referenced from:
      _aco_thread_init in aco.c.o
  "acosw", referenced from:
      _aco_resume in aco.c.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [libaco] Error 1
make[2]: *** [CMakeFiles/libaco.dir/all] Error 2
make[1]: *** [CMakeFiles/libaco.dir/rule] Error 2
make: *** [libaco] Error 2

here is the CMakeLists.txt:

cmake_minimum_required(VERSION 3.19)
project(libaco C)

set(CMAKE_C_STANDARD 11)

include_directories(.)

add_executable(libaco
        aco.c
        aco.h
        aco_assert_override.h)

can you guyes offering some help ?

loongs-zhang avatar Mar 04 '22 02:03 loongs-zhang

By the way, my chip is apple m1.

loongs-zhang avatar Mar 04 '22 02:03 loongs-zhang

Hello, when I merge #38 into https://github.com/dragon-zhang/libaco, still unable to compile, the following is the error report of compilation

You need to add acosw.S source file to your add_executable call.

RovingStone avatar Nov 08 '23 19:11 RovingStone