Skip to content

Building GMT source code fails on macOS CI #6718

Closed

Description

@seisman

Building the source code works in https://github.com/GenericMappingTools/gmt/actions/runs/2302632613, but started to fail since two days ago (https://github.com/GenericMappingTools/gmt/actions/runs/2312004435).

The failure is likely caused by a broken Homebrew package:

/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd && :
Undefined symbols for architecture x86_64:
  "___kmpc_for_static_fini", referenced from:
      _.omp_outlined. in gmt_vector.c.o
      _.omp_outlined..15 in gmt_vector.c.o
      _.omp_outlined. in kiss_fft.c.o
      _.omp_outlined. in gmtspatial.c.o
      _.omp_outlined..211 in gmtspatial.c.o
      _.omp_outlined. in grdimage.c.o
      _.omp_outlined..173 in grdimage.c.o
      ...
  "___kmpc_for_static_init_4", referenced from:
      _.omp_outlined..15 in gmt_vector.c.o
      _.omp_outlined. in kiss_fft.c.o
      _.omp_outlined. in grdmask.c.o
  "___kmpc_for_static_init_4u", referenced from:
      _.omp_outlined. in gmt_vector.c.o
      _.omp_outlined. in grdlandmask.c.o
      _.omp_outlined..30 in grdlandmask.c.o
      _.omp_outlined..31 in grdlandmask.c.o
      _.omp_outlined. in grdmath.c.o
      _.omp_outlined..975 in grdmath.c.o
      _.omp_outlined..1001 in grdmath.c.o
      ...
  "___kmpc_for_static_init_8", referenced from:
      _.omp_outlined. in gmtspatial.c.o
      _.omp_outlined. in grdimage.c.o
      _.omp_outlined..173 in grdimage.c.o
      _.omp_outlined..174 in grdimage.c.o
      _.omp_outlined..176 in grdimage.c.o
      _.omp_outlined..177 in grdimage.c.o
      _.omp_outlined..178 in grdimage.c.o
      ...
  "___kmpc_for_static_init_8u", referenced from:
      _.omp_outlined..211 in gmtspatial.c.o
  "___kmpc_fork_call", referenced from:
      _gmt_gaussjordan in gmt_vector.c.o
      _gmt_solve_svd in gmt_vector.c.o
      _kf_work in kiss_fft.c.o
      _GMT_gmtspatial in gmtspatial.c.o
      _GMT_grdimage in grdimage.c.o
      _GMT_grdlandmask in grdlandmask.c.o
      _GMT_grdmask in grdmask.c.o
      ...
  "_omp_get_thread_num", referenced from:
      _.omp_outlined..960 in grdmath.c.o
  "_omp_set_dynamic", referenced from:
      _gmt_enable_threads in gmt_support.c.o
  "_omp_set_num_threads", referenced from:
      _gmt_enable_threads in gmt_support.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Activity

  1. joa-quim commented on Jul 22, 2023

    @joa-quim
    Member

    Still true?

  2. seisman commented on Jul 23, 2023

    @seisman
    MemberAuthor

    Now it works. Will be closed by #6742.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions