curtismuntz / bazel_compilers Goto Github PK
View Code? Open in Web Editor NEWEasy to include bazel cpp cross compiler defintions
Easy to include bazel cpp cross compiler defintions
Building binaries for foreign architectures is only half the battle. Development cycles are much faster if you can test the cross compiled code locally. Add qemu scripts to run / test the cross compiled binaries.
There was an issue in c230931 . This should be similar to OpenLightingProject/ola#1125 .
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/main.yml
actions/checkout v2
bazelbuild/setup-bazelisk v1
actions/cache v2
ubuntu 20.04
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.