google-coral / libedgetpu

Source code for the userspace level runtime driver for Coral.ai devices.
Apache License 2.0
181 stars 62 forks source link

Anyone running on openSUSE #16

Closed Spanni26 closed 3 years ago

Spanni26 commented 3 years ago

Does anyone get that stuff running on opensuse? We use the m2-board.

When I try to build it with "make libedgetpu" I get:

/usr/bin/gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O3 -DNDEBUG '-D_FORTIFY_SOURCE=2' -ffunction-sections -fdata-sections -msse4.2 '-std=c++11' -MD -MF bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_cpp.d '-frandom-seed=bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_cpp.o' -iquote external/flatbuffers -iquote bazel-out/host/bin/external/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatc_library -Ibazel-out/host/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/cpp_generator -Ibazel-out/host/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/go_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/java_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/python_generator_private -Ibazel-out/host/bin/external/flatbuffers/grpc/src/compiler/_virtual_includes/swift_generator -g0 -g0 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-DDATE="redacted"' '-DTIMESTAMP="redacted"' '-DTIME="redacted"' -c external/flatbuffers/src/idl_gen_cpp.cpp -o bazel-out/host/bin/external/flatbuffers/src/_objs/flatc/idl_gen_cpp.o) ERROR: /root/libedgetpu/driver/BUILD:154:1: undeclared inclusion(s) in rule '//driver:scalar_core_controller_opt': this rule is missing dependency declarations for the following files included by 'driver/scalar_core_controller.cc': '/usr/lib64/gcc/x86_64-suse-linux/7/include/stddef.h' '/usr/lib64/gcc/x86_64-suse-linux/7/include/stdarg.h' '/usr/lib64/gcc/x86_64-suse-linux/7/include/stdint.h' '/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h' '/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/syslimits.h'

A docker build is no option cause I need to made a rpm package. Any Ideas?

Regards

Daniel

manoj7410 commented 3 years ago

Is this a duplicate of https://github.com/google-coral/libedgetpu/issues/20 ? @Spanni26

Spanni26 commented 3 years ago

Nope. Same error message but at an other point of the build.

Bazel is a hell of ......

Spanni26 commented 3 years ago

Ok, Cause seems to be the same as in #20 . But how to fix it?

manoj7410 commented 3 years ago

The only solution is to use the docker image to build, we also use this since it is really challenging to have different system and glibc version building binaries for a target.

Spanni26 commented 3 years ago

Hi,

well, we build this on a build server (open build system) to build packages for different systems at one run. This system does not have an internet connection, so docker can't be used I think.

Why the hack can't they simply use a "normal" build system instead of bazel, which (besides of google) nobody is using....

Am 28.05.2021 um 08:09 schrieb Manoj:

The only solution is to use the docker image to build, we also use this since it is really challenging to have different system and glibc version building binaries for a target.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google-coral/libedgetpu/issues/16#issuecomment-850164587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2I5HDGFYGQEPT2UUXXUG3TP4XTPANCNFSM42YWEKRQ.

Spanni26 commented 3 years ago

Can I influnce the search path for headers includes? I get "src/coral_wrapper.cc:15:10: fatal error: numpy/arrayobject.h: No such file or directory" cause the numpy headers are not under "/usr/include".....

dmitriykovalev commented 3 years ago

I believe https://github.com/google-coral/libedgetpu/commit/0f1def1f0e0e5ee79a517f30733f09dda2441304 fixes the "include" problem, please try the latest source code from master branch.

manoj7410 commented 3 years ago

@Spanni26 Feel free to reopen this thread if the issue still persists.