Coder Social home page Coder Social logo

Comments (9)

mchinen avatar mchinen commented on July 17, 2024 1

Thanks for the detailed report. I'm not sure, but if I had to guess it might be related to your bazel version if it is old enough that android_*_repository is not supported. Not sure what version is pinned for that Debian release.
bazel --version gives me bazel 4.0.0.

from lyra.

paulmenzel avatar paulmenzel commented on July 17, 2024 1

Seem to be version 3.5.1 in Debian 11 (bullseye) (bazel-bootstrap (3.5.1+ds-3)).

from lyra.

Siddhant-K-code avatar Siddhant-K-code commented on July 17, 2024

Have you run ./configure and set up Android SDK integration through the script instead?

OR

can you please try adding the attribute 'path = "/path/to/sdk/"' in the project's WORKSPACE file's android_sdk_repository() rule

from lyra.

a-rose avatar a-rose commented on July 17, 2024

Thanks for your help, but I don't intend to build for Android or install the SDK. I'm building for Linux only, and I don't think the Android SDK is needed to build a linux program ;)

from lyra.

xnorpx avatar xnorpx commented on July 17, 2024

I followed the instructions, built Linux on Ubuntu 20 fine.

from lyra.

a-rose avatar a-rose commented on July 17, 2024

@xnorpx right, I'm using Debian (I edited my post to give details) but I don't think the issue is related. Do you have the Android SDK installed?

from lyra.

xnorpx avatar xnorpx commented on July 17, 2024

@a-rose no, clean Ubuntu 20 WSL2 environment. Installed Bazel and then followed the Linux instructions and did not install anything Android related.

( Comment was mostly to confirm that Linux does build outside of g. )

from lyra.

a-rose avatar a-rose commented on July 17, 2024

Ok then, the issue is only with Debian (after all, the docs said only Ubuntu was tested).

I would still like to find a way to make it work with other distros to help the project :)

from lyra.

a-rose avatar a-rose commented on July 17, 2024

Confirmed to work with bazel v4.0.0 from https://github.com/bazelbuild/bazel/releases. Thanks everyone !

Updated Dockerfile:

FROM debian:bullseye-slim

WORKDIR /usr/local/src

ARG BAZEL_VERSION=4.0.0
ADD https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb bazel_${BAZEL_VERSION}-linux-x86_64.deb

RUN apt-get update \
    && apt-get install -y \
        ninja-build git cmake clang python g++ unzip zip zlib1g-dev \
    && dpkg -i bazel_${BAZEL_VERSION}-linux-x86_64.deb

RUN git clone https://github.com/llvm/llvm-project.git \
    && cd llvm-project \
    && git checkout 96ef4f307df2 \
    && mkdir build_clang \
    && cd build_clang \
    && cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=release ../llvm \
    && ninja \
    && $(which ninja) install \
    && cd .. \
    && mkdir build_libcxx \
    && cd build_libcxx \
    && cmake -G Ninja -DCMAKE_C_COMPILER=/usr/local/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi" -DCMAKE_BUILD_TYPE=release ../llvm \
    && ninja \
    && $(which ninja) install \
    && ldconfig

RUN git clone --depth 1 --branch v0.0.1 https://github.com/google/lyra
RUN cd lyra \
    && bazel build -c opt :encoder_main \
    && bazel build -c opt :decoder_main

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.