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

--ldflags: command not found #58

Open
Fulgurance opened this issue Nov 30, 2021 · 2 comments
Open

--ldflags: command not found #58

Fulgurance opened this issue Nov 30, 2021 · 2 comments

Comments

@Fulgurance
Copy link

Hello, I seen today the problem with YAML error was solve. I tried to use again Qt on Gentoo, but I had again one error.


In lib/qt5/src/qt5/binding.cr:7:20

 7 | {% use_binding = run("#{__DIR__}/../../support/decide_binding_fast.cr") %}
                      ^--
Error: Error executing run (exit code: 1): '/home/zohran/Documents/Programmation/Test Crystal Qt/lib/qt5/src/qt5/../../support/decide_binding_fast.cr' 


stdout:

    


stderr:

    --: line 1: --ldflags: command not found
    Failed to find llvm version
    
    Failed to find one or more paths.  See above for details.
    Unhandled exception: Support script decide_binding_slow.cr failed (Exception)
      from ???
      from ???
      from __crystal_main
      from main
      from ???
      from __libc_start_main
      from _start
      from ???
@ppibburr
Copy link

ppibburr commented Jan 9, 2023

I confirm

@docelic
Copy link
Collaborator

docelic commented Jan 9, 2023

I believe this is coming from either:

qt5.cr

config/find_paths.yml:      - shell: "{LLVM_CONFIG_BINARY} --ldflags"

or bindgen:

clang/find_clang.cr:OPTIONS[:llvm_ld_flags] = output_of(OPTIONS[:llvm_config], "--ldflags")

In both cases the cause of the error is the same -- it happens because llvm-config program was not found.

It gets installed along with llvm. Please see if you have llvm and llvm-config installed, and if you do, please try to see why it is not auto-detected and found.

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

3 participants