Skip to content

Some 32-bit archs need libatomic linking (powerpc, mips, arm) #286

@barracuda156

Description

@barracuda156
[ 87%] Linking C static library libfyaml_static.a
[ 88%] Linking C shared library libfyaml.dylib
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/fyaml.dir/link.txt --verbose=ON
/opt/local/bin/cmake -P CMakeFiles/fyaml_static.dir/cmake_clean_target.cmake
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/fyaml_static.dir/link.txt --verbose=ON
Undefined symbols for architecture ppc:
  "___atomic_compare_exchange_8", referenced from:
      _fy_worker_thread_steal in fy-thread.c.o
      _fy_thread_work_join_standard in fy-thread.c.o
      _fy_thread_reserve in fy-thread.c.o
      _fy_thread_work_join in fy-thread.c.o
      _fy_malloc_get_tag in fy-allocator-malloc.c.o
      _fy_mremap_tag_alloc in fy-allocator-mremap.c.o
      _fy_mremap_get_tag in fy-allocator-mremap.c.o
      ...
  "___atomic_fetch_add_8", referenced from:
      _fy_linear_alloc in fy-allocator-linear.c.o
      _fy_linear_storev in fy-allocator-linear.c.o
      _fy_mremap_alloc in fy-allocator-mremap.c.o
      _fy_mremap_storev in fy-allocator-mremap.c.o
      _fy_dedup_storev in fy-allocator-dedup.c.o
  "___atomic_fetch_and_8", referenced from:
      _fy_thread_work_join in fy-thread.c.o
      _fy_malloc_set_tag_count in fy-allocator-malloc.c.o
      _fy_malloc_release_tag in fy-allocator-malloc.c.o
      _fy_mremap_tag_alloc in fy-allocator-mremap.c.o
      _fy_mremap_set_tag_count in fy-allocator-mremap.c.o
      _fy_mremap_release_tag in fy-allocator-mremap.c.o
      _fy_mremap_get_tag in fy-allocator-mremap.c.o
      ...
  "___atomic_fetch_or_8", referenced from:
      _fy_worker_thread_steal in fy-thread.c.o
      _fy_thread_work_join_standard in fy-thread.c.o
      _fy_thread_unreserve in fy-thread.c.o
      _fy_thread_work_join in fy-thread.c.o
      _fy_malloc_set_tag_count in fy-allocator-malloc.c.o
      _fy_malloc_setup in fy-allocator-malloc.c.o
      _fy_mremap_tag_alloc in fy-allocator-mremap.c.o
      ...
  "___atomic_fetch_sub_8", referenced from:
      _fy_linear_update_stats in fy-allocator-linear.c.o
      _fy_mremap_update_stats in fy-allocator-mremap.c.o
      _fy_dedup_update_stats in fy-allocator-dedup.c.o
  "___atomic_load_8", referenced from:
      _fy_worker_thread_steal in fy-thread.c.o
      _fy_thread_work_join_standard in fy-thread.c.o
      _fy_thread_reserve in fy-thread.c.o
      _fy_thread_is_reserved in fy-thread.c.o
      _fy_thread_pool_are_all_reserved in fy-thread.c.o
      _fy_thread_pool_is_any_reserved in fy-thread.c.o
      _fy_thread_work_join in fy-thread.c.o
      ...
  "___atomic_store_8", referenced from:
      _fy_thread_pool_setup in fy-thread.c.o
      _fy_malloc_set_tag_count in fy-allocator-malloc.c.o
      _fy_malloc_setup in fy-allocator-malloc.c.o
      _fy_mremap_tag_setup in fy-allocator-mremap.c.o
      _fy_mremap_tag_alloc in fy-allocator-mremap.c.o
      _fy_mremap_set_tag_count in fy-allocator-mremap.c.o
      _fy_mremap_setup in fy-allocator-mremap.c.o
      ...
ld: symbol(s) not found for architecture ppc
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions