Skip to content

llvm-config tbd file system argument mac #3834

Open
@overloadedargs

Description

@overloadedargs
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions