Giter VIP home page Giter VIP logo

bazel_compilers's People

Contributors

curtismuntz avatar iceboy233 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bazel_compilers's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/main.yml
  • actions/checkout v2
  • bazelbuild/setup-bazelisk v1
  • actions/cache v2
  • ubuntu 20.04

  • Check this box to trigger a request for Renovate to run again on this repository

Undefined reference to `main'

First, thank you very much for making your project, it was very useful in my case!

I was trying to build Tensorflow Lite C library for ARM but I got this error message:

/home/user/Documents/Bazel/tensorflow/lite/c/BUILD:22:1: Linking of rule '//tensorflow/lite/c:libtensorflowlite_c.so' failed (Exit 1)
external/org_linaro_components_toolchain_gcc_armv7/arm-linux-gnueabihf/libc/usr/lib/Scrt1.o: In function _start': /home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/glibc.git~release~2.25~master/csu/../sysdeps/arm/start.S:128: undefined reference to main'
collect2: error: ld returned 1 exit status
Target //tensorflow/lite/c:tensorflowlite_c failed to build
Use --verbose_failures to see the command lines of failed build steps.

I solved it manually cloning your repository, copying it into my local copy of tensorflow project, referencing it using the local_repository command instead of http_archive (in WORKSPACE file):

local_repository(
name = "murtis_bazel_compilers",
path = "//home/user/Documents/Bazel/murtis_bazel_compilers/"
)

load("@murtis_bazel_compilers//compilers:dependencies.bzl", "cross_compiler_dependencies")

cross_compiler_dependencies()

so I could finally change the file cc_toolchain_config.bzl. I commented the line 648 (the -pie flag):

#"-pie",

and then it worked.

I am sure there must be a better way to fix this so it would work for both executables and dynamic libraries like Tensorflow Lite C library. Thank you very much for a fix in advance - for all others who might also get this error in similar cases.

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.