Git Product home page Git Product logo

Comments (9)

aluebs avatar aluebs commented on May 3, 2024

The README has instructions on how to build a custom clang. Do you still get the error after following those.

from lyra.

HyacinthJingjing avatar HyacinthJingjing commented on May 3, 2024

Yes, i have used the command "cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=release ../llvm".

from lyra.

aluebs avatar aluebs commented on May 3, 2024

Did that work? And did you ninja installed clang afterwards?

from lyra.

HyacinthJingjing avatar HyacinthJingjing commented on May 3, 2024

It did not work. About ”-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++“, does it support other compiler(gcc or g++)?

from lyra.

aluebs avatar aluebs commented on May 3, 2024

Currently only clang is supported, because the std implementations need to be the same as the ones used to build the .so library.

from lyra.

mchinen avatar mchinen commented on May 3, 2024

The question seems to be what version of clang you can use to build a bootstrapped clang. We have used clang 6.0 to 12.0 to build our clang toolchain. I believe 3.9.1 is quite old circa 2016. Most package managers have a more recent version that you could try (if in ubuntu/debian, do apt update before installing clang). We haven't tried using gcc or other compilers, so to keep things simple I would try using a more recent clang.

from lyra.

HyacinthJingjing avatar HyacinthJingjing commented on May 3, 2024

When i use bazel to build the project, i encountered this error:
WARNING: /search/odin/zhuweifeng/.cache/bazel/bazel_zhuweifeng/cbee13c87ab2f3c1be98316600f9f92e/external/com_google_audio_dsp/third_party/fft2d/BUILD:3:11: in linkstatic attribute of cc_library rule @com_google_audio_dsp//third_party/fft2d:fft2d: setting 'linkstatic=1' is recommended if there are no object files
INFO: Analyzed target //:encoder_main (53 packages loaded, 1576 targets configured).
INFO: Found 1 target...
ERROR: /search/odin/zhuweifeng/.cache/bazel/bazel_zhuweifeng/cbee13c87ab2f3c1be98316600f9f92e/external/com_google_audio_dsp/audio/dsp/portable/BUILD:319:10: Compiling audio/dsp/portable/write_wav_file_generic.c failed: undeclared inclusion(s) in rule '@com_google_audio_dsp//audio/dsp/portable:write_wav_file_generic':
this rule is missing dependency declarations for the following files included by 'audio/dsp/portable/write_wav_file_generic.c':
'/search/odin/zhuweifeng/bazel
/llvm-project/build_clang/lib/clang/12.0.0/include/stdint.h'
'/search/odin/zhuweifeng/bazel
/llvm-project/build_clang/lib/clang/12.0.0/include/stddef.h'
'/search/odin/zhuweifeng/bazel_/llvm-project/build_clang/lib/clang/12.0.0/include/stdarg.h'
Target //:encoder_main failed to build
INFO: Elapsed time: 55.377s, Critical Path: 13.00s
INFO: 223 processes: 72 internal, 151 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
Can you give me some suggestions?

from lyra.

aluebs avatar aluebs commented on May 3, 2024

Did you install the custom clang version like explained in the README file? Particularly, did you run "sudo ninja install"? Because it seems like it isn't finding the includes that should be under /usr/local/lib/clang/12.0.0/include. Maybe @mchinen has more insight on this particular error.

from lyra.

aluebs avatar aluebs commented on May 3, 2024

The new Lyra v0.0.2 doesn't require any custom clang installation anymore.

from lyra.

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.