Giter Site home page Giter Site logo

(lib)clang is needed about inari HOT 5 CLOSED

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024
(lib)clang is needed

from inari.

Comments (5)

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

Installing llvm12_clang from Haiku Depot

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

clang found, but libclang is not found.

checking for cbindgen... /bin/cbindgen
checking for rustfmt... /bin/rustfmt
checking for clang for bindgen... /bin/clang++
checking for libclang for bindgen... not found
ERROR: Could not find libclang to generate rust bindings for C/C++. Please install the necessary packages, run `mach bootstrap`, or use --with-libclang-path to give the path containing it.
~/src/firefox-102.9.0/obj-x86_64-unknown-haiku> 

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

Trying install llvm12_clang_analysis package.

I don't know this contains libclang or not.

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

already installed, but not found

~/src/firefox-102.9.0/obj-x86_64-unknown-haiku> ls /system/lib/libclang*
/system/lib/libclang-cpp.so  /system/lib/libclang-cpp.so.12  /system/lib/libclang.so.12

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

detection code was OS dependant, fixed by

diff --git a/build/moz.configure/bindgen.configure b/build/moz.configure/bindgen.configure
index 2194e732d5..2a77385f59 100644
--- a/build/moz.configure/bindgen.configure
+++ b/build/moz.configure/bindgen.configure
@@ -22,7 +22,7 @@ option(env="CBINDGEN", nargs=1, when=cbindgen_is_needed, help="Path to cbindgen"
 def check_cbindgen_version(cbindgen, fatal=False):
     log.debug("trying cbindgen: %s" % cbindgen)
 
-    cbindgen_min_version = Version("0.23.0")
+    cbindgen_min_version = Version("0.20.0")#Version("0.23.0")
 
     # cbindgen x.y.z
     version = Version(check_cmd_output(cbindgen, "--version").strip().split(" ")[1])
@@ -205,7 +205,7 @@ def bindgen_libclang_path(libclang_path, clang, library_name_info, host):
     libclang_choices.append(
         "%sclang%s" % (library_name_info.dll.prefix, library_name_info.dll.suffix)
     )
-    if host.kernel == "Linux":
+    if host.kernel == "Linux" or host.kernel == "Haiku":
         libclang_choices.append("libclang.so.*")
 
     if host.os == "OpenBSD":

from inari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.