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

llvm-config tbd file system argument mac #3834

Open
8 tasks
overloadedargs opened this issue Aug 18, 2020 · 0 comments
Open
8 tasks

llvm-config tbd file system argument mac #3834

overloadedargs opened this issue Aug 18, 2020 · 0 comments

Comments

@overloadedargs
Copy link

overloadedargs commented Aug 18, 2020

  1. What command did you run?

I ran ./configure --verbose --prefix=/Users/*****/.rvm/rubies/rbx-5.0 --with-opt-dir=/usr/local/opt/libyaml --with-opt-dir=/usr/local/opt/libksba --with-opt-dir=/usr/local/opt/readline --with-opt-dir=/usr/local/opt/zlib --with-opt-dir=/usr/local/opt/openssl@1.1

then make

  1. What behavior did you expect?

I expected it to build correctly

  1. What behavior did you get instead?

I think the make step failed because of llvm bindings to libxml2. On Mac and homebrew the @llvm_ldflags include an argument of -llibxml2.tbd which does not work. This comes from the llvm-config command on the line @llvm_ldflags = #{@llvm_configure} #{flags}.strip.gsub("\n", ' ')

  1. What version of Rubinius?

5

  1. What version of operating system?

Output of uname -a:

Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64

  1. What is your operating system distribution, if your operating system has more than one?

My distribution is ...

  1. How did you build your version of Rubinius?
  • I used RVM.
  • I used ruby-build.
  • I used ruby-install.
  • I built manually from a tarball.
  • [x ] I built manually from a git clone.
  • I installed a binary.

Note this behaviour is also apparent when attempting rvm install rbx-5

  1. Does this issue involve proprietary code?
  • Yes, this issue involves proprietary code that I cannot share.
  • Yes, this issue involves proprietary code, but I am able to share it under certain conditions.
  • [ x] No, this issue doesn't involve proprietary code.
  1. Are you able to help us debug the issue?
  • [x ] Yes, I'm able to help debug, including running commands under lldb.
  • No, I'm not able help debug or I don't have time to help.

Note I manually modified this argument from -llibxml2.tbd to -lxml2. I don't know if it correctly built with that linked library but the make step passed. I don't know anything about llvm and I am adding it here just because it's probably an llvm Mac specific issue in case anyone is having the same problem.

@overloadedargs overloadedargs changed the title LLVM-CONFIG TBD file system argument macOS llvm-config tbd file system argument macOS Aug 18, 2020
@overloadedargs overloadedargs changed the title llvm-config tbd file system argument macOS llvm-config tbd file system argument mac Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant