Skip to content

[bug] macOS development requires pcre2 and libyaml #1359

Description

@dsabsay

Describe the bug

I ran the included ./install-ctags-macos.sh but it failed to link because it was missing a couple dependencies:

pcre2:

ld: warning: ignoring file '/usr/local/Cellar/pcre2/10.40/lib/libpcre2-8.0.dylib': found architecture 'x86_64', required architecture 'arm64'
...
Undefined symbols for architecture arm64:
Undefined symbols for architecture arm64:
  "_pcre2_code_free_8", referenced from:
      _delete_code in libctags.a[198](libctags_a-lregex-pcre2.o)
Undefined symbols for architecture arm64:
  "_pcre2_code_free_8", referenced from:
      _delete_code in libctags.a[198](libctags_a-lregex-pcre2.o)
  "_pcre2_compile_8", referenced from:
      _compile in libctags.a[198](libctags_a-lregex-pcre2.o)
...

libyaml:

ld: warning: ignoring file '/usr/local/Cellar/libyaml/0.2.5/lib/libyaml-0.2.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/libyaml/0.2.5/lib/libyaml-0.2.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/libyaml/0.2.5/lib/libyaml-0.2.dylib': found architecture 'x86_64', required architecture 'arm64'
Undefined symbols for architecture arm64:
Undefined symbols for architecture arm64:
  "_yaml_parser_delete", referenced from:
      _findYamlTags in libctags.a[209](libctags_a-yaml.o)
  "_yaml_parser_delete", referenced from:
      _findYamlTags in libctags.a[209](libctags_a-yaml.o)
  "_yaml_parser_initialize", referenced from:
      _findYamlTags in libctags.a[209](libctags_a-yaml.o)
...

I think this happened because I had x86_64 installs of these two things.

To reproduce

Not sure it's worth trying to reproduce since it's a local dev setup thing.

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1):

Additional information

No response

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