XiaoMi / nnlib

Fork of https://source.codeaurora.org/quic/hexagon_nn/nnlib
BSD 3-Clause Clear License
54 stars 11 forks source link

make error: hexagon-clang: error: clang frontend command failed with exit code 70 (use -v to see invocation) #3

Closed chenjiaoAngel closed 5 years ago

chenjiaoAngel commented 5 years ago

image ubuntu: Linux version 4.15.0-43-generic (buildd@lcy01-amd64-007) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) SDK: Qualcomm-Hexagon_SDK-3.3.3

first: source setup_sdk_env.source then: python install_dependencies.py then: git clone nnlib then: make tree VERBOSE=1 V=hexagon_Release_dynamic_toolv81_v60 build error: fatal error: error in backend: Cannot select: t29: v32i32 = select_cc t4, Constant:i32<0>, t9, t11, setne:ch t4: i32 = AssertSext t2, ValueType:ch:i8 t2: i32,ch = CopyFromReg t0, Register:i32 %vreg6 t1: i32 = Register %vreg6 t5: i32 = Constant<0> t9: v32i32,ch = CopyFromReg t0, Register:v32i32 %vreg64 t8: v32i32 = Register %vreg64 t11: v32i32,ch = CopyFromReg t0, Register:v32i32 %vreg63 t10: v32i32 = Register %vreg63 In function: core_add_d32_mixed_hvx can you help me to solve this problem

lee-bin commented 5 years ago

This reposity is deprecated for latest MACE. If you only want to use nnlib with MACE, you can just use pre-built library below. https://github.com/XiaoMi/mace/tree/master/third_party/nnlib/v60

chenjiaoAngel commented 5 years ago

If I want to contribute some Code in nnlib. So, how can I make this code

lee-bin commented 5 years ago

Can you build the original code from https://source.codeaurora.org/quic/hexagon_nn/nnlib?

chenjiaoAngel commented 5 years ago

No, the building code is from https://source.codeaurora.org/quic/hexagon_nn/nnlib?

w-adamski commented 5 years ago

@lee-bin could you include (preferably with MACE sources) exact build instructions that will produce a nnlib library that is compatible with MACE? That would include:

lee-bin commented 5 years ago

I will try to build MACE with the latest https://source.codeaurora.org/quic/hexagon_nn/nnlib and update this repo and README with more instructions later, so you can build it.

lee-bin commented 5 years ago

@chenjiaoAngel @w-adamski Hi all, This repo has been updated to the 02_06_00 version as in https://source.codeaurora.org/quic/hexagon_nn/nnlib/ You can follow the instructions in README.HOW_TO_BUILD to use the library for MACE.