Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error (and was also erroring during runtime) #29

Closed
ravibrock opened this issue Apr 24, 2024 · 2 comments
Closed

Build error (and was also erroring during runtime) #29

ravibrock opened this issue Apr 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ravibrock
Copy link

Description

  Failed (1)
    ● cord.nvim 3.2ms ✔ build
        dir    /Users/ravibrock/.local/share/nvim/lazy/cord.nvim
        url    https://github.com/vyfor/cord.nvim
        branch master
        commit 188840a
        readme README.md
        event   VeryLazy 

      ✔ [task] clone 1649.81ms
        Cloning into '/Users/ravibrock/.local/share/nvim/lazy/cord.nvim'...
        remote: Enumerating objects: 409, done.        
        remote: Counting objects: 100% (75/75), done.        
        remote: Compressing objects: 100% (70/70), done.        
        remote: Total 409 (delta 6), reused 26 (delta 2), pack-reused 334        
        Receiving objects: 100% (409/409), 56.87 KiB | 1021.00 KiB/s, done.
        Resolving deltas: 100% (216/216), done.
      ✔ [task] checkout 0.19ms
      ✔ [task] docs 0ms
      ✔ [task] build 1128.6ms
        dyld[46514]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb
          Referenced from: <EEB49284-2EAD-3371-9401-139E8557678B> /opt/homebrew/Cellar/rust/1.77.2_1/lib/librustc_driver-3dc17bded25d4e59.dylib
          Expected in:     <B0C4597F-D1E6-36D5-83FD-81D0ACE34F6C> /opt/homebrew/Cellar/llvm/18.1.4/lib/libLLVM.dylib
        ./build: line 3: 46514 Abort trap: 6           rustc --crate-type=cdylib -C opt-level=3 -C panic=abort -C lto=fat -o cord src/lib.rs

I'm getting a build error here after trying to reinstall the plugin – before reinstalling it was throwing the "symbol not found" error when running Neovim. I don't know Rust, unfortunately, so I can't really speculate as to why this is happening. My configuration is below:

{
    "vyfor/cord.nvim",
    event = "VeryLazy",
    build = "./build",
    opts = {
        display = {
            show_repository = false,
            show_cursor_position = false,
        },
        text = {
            viewing = "Coding ✍️",
            editing = "Coding ✍️",
            file_browser = "Browsing files 📑",
            plugin_manager = "Managing plugins 🔌",
            workspace = "",
        },
    },
},

Operating system

MacOS Sonoma 14.4.1

Neovim version

NVIM v0.10.0-dev-2194+g3ab6f60dc-Homebrew
Build type: Release
LuaJIT 2.1.1713773202

Steps to reproduce

  1. Install cord.nvim with lazy.nvim
  2. Run build step

Expected behavior

Instalilng and building normally.

Actual behavior

See issue description.

Minimal configuration

local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    '--branch=stable',
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
  {
    'vyfor/cord.nvim',
    build = './build',
  },
})
@ravibrock ravibrock added the bug Something isn't working label Apr 24, 2024
@vyfor
Copy link
Owner

vyfor commented Apr 24, 2024

Appears to be a compatibility issue with LLVM. Could you try installing LLVM 17, and rerun the build?
brew install llvm@17

@ravibrock
Copy link
Author

That worked, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants