Giter VIP home page Giter VIP logo

Comments (10)

HKLee2040 avatar HKLee2040 commented on July 28, 2024 1

I got the "success" with some errors.
Does it matter?

[/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg] leave
[/media/walker/DATA/work/onnc/onnc-umbrella] building onnc-umbrella tools...
[/media/walker/DATA/work/onnc/onnc-umbrella] create build directory at '/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools'
[/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools] building tools: 'onnx-as'
make: Entering directory '/media/walker/DATA/work/onnc/onnc-umbrella/tools/onnx-as'
g++ -std=c++14 -DONNX_NAMESPACE=onnx -o /media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools/onnx-as/onnx-as -I/media/walker/DATA/work/onnc/onnc-umbrella/install-dbg/opt/onnc/include -I/media/walker/DATA/work/onnc/onnc-umbrella/onncroot/include -L/media/walker/DATA/work/onnc/onnc-umbrella/install-dbg/opt/onnc/lib -L/media/walker/DATA/work/onnc/onnc-umbrella/onncroot/lib -lonnc -lonnx -lonnx_proto -lprotobuf main.cpp
main.cpp:8:37: fatal error: onnc/Option/CommandLine.h: No such file or directory
compilation terminated.
Makefile:13: recipe for target '/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools/onnx-as/onnx-as' failed
make: *** [/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools/onnx-as/onnx-as] Error 1
make: Leaving directory '/media/walker/DATA/work/onnc/onnc-umbrella/tools/onnx-as'
[/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools] building tools: 'onnx-dis'
make: Entering directory '/media/walker/DATA/work/onnc/onnc-umbrella/tools/onnx-dis'
g++ -std=c++14 -DONNX_NAMESPACE=onnx -o /media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools/onnx-dis/onnx-dis -I/media/walker/DATA/work/onnc/onnc-umbrella/install-dbg/opt/onnc/include -I/media/walker/DATA/work/onnc/onnc-umbrella/onncroot/include -L/media/walker/DATA/work/onnc/onnc-umbrella/install-dbg/opt/onnc/lib -L/media/walker/DATA/work/onnc/onnc-umbrella/onncroot/lib -lonnc -lonnx -lonnx_proto -lprotobuf main.cpp
main.cpp:10:37: fatal error: onnc/Option/CommandLine.h: No such file or directory
compilation terminated.
Makefile:13: recipe for target '/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools/onnx-dis/onnx-dis' failed
make: *** [/media/walker/DATA/work/onnc/onnc-umbrella/build-dbg/umbrella/tools/onnx-dis/onnx-dis] Error 1
make: Leaving directory '/media/walker/DATA/work/onnc/onnc-umbrella/tools/onnx-dis'
[/media/walker/DATA/work/onnc/onnc-umbrella/install-dbg/opt] packaging tarball '/media/walker/DATA/work/onnc/onnc-umbrella/onnc-master.tar.gz'
[/media/walker/DATA/work/onnc/onnc-umbrella] build /media/walker/DATA/work/onnc/onnc-umbrella/onnc-master.tar.gz for installation on /opt/onnc: success

from onnc-umbrella.

HKLee2040 avatar HKLee2040 commented on July 28, 2024 1

Yes, it works!
Thanks

from onnc-umbrella.

LuisHsu avatar LuisHsu commented on July 28, 2024

Sophon target no longer supports automake building system, but the building commands haven't been cleaned in master branch.

I made ONNC/onnc#59 and requested for review.

During the pending time, you may like to use ./build.cmake.sh.

The usage is as same as ./build.sh but driven with CMake instead.

from onnc-umbrella.

HKLee2040 avatar HKLee2040 commented on July 28, 2024

I use "./build.cmake.sh", but meet another trouble:
Do I miss any dependency library?

-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Found FLEX: /usr/bin/flex (found version "2.6.0")
CMake Error at tools/onnx2tg/CMakeLists.txt:9 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:

LLVMConfig.cmake
llvm-config.cmake

Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ONNX_LIBRARIE_onnx
linked by target "libonnc" in directory /home/walker/onnc/onnc-master/src/lib
ONNX_LIBRARIE_onnx_proto
linked by target "libonnc" in directory /home/walker/onnc/onnc-master/src/lib
SKYPAT_LIBRARIES
linked by target "libskypat_main" in directory /home/walker/onnc/onnc-master/src/tools/unittests

-- Configuring incomplete, errors occurred!
See also "/home/walker/onnc/onnc-master/build-dbg/CMakeFiles/CMakeOutput.log".
See also "/home/walker/onnc/onnc-master/build-dbg/CMakeFiles/CMakeError.log".

from onnc-umbrella.

LuisHsu avatar LuisHsu commented on July 28, 2024

Let me fix it......

from onnc-umbrella.

LuisHsu avatar LuisHsu commented on July 28, 2024

ONNC/onnc#59 has been checked in, and I successfully built with ./build.sh script.

I'll still fixing ./build.cmake.sh, but you can give ./build.sh a try.

Sorry for the inconvenience and thanks you for unearth the bugs.

from onnc-umbrella.

LuisHsu avatar LuisHsu commented on July 28, 2024

It seems like you lost include/onnc/Option/CommandLine.h in onnc source directory.

You can remove build-dbg and src.

Let the ./build.sh script download and compile the source again.

from onnc-umbrella.

HKLee2040 avatar HKLee2040 commented on July 28, 2024

It still doesn't work.
Actually, I find CommandLine.h in the folder already, i.e., include/onnc/Option/

from onnc-umbrella.

LuisHsu avatar LuisHsu commented on July 28, 2024

I made 2 PRs, both of them will fix it.

ONNC/onnc#65
#13

Let's waiting for review, or you can give these patches a try.

from onnc-umbrella.

avirala6 avatar avirala6 commented on July 28, 2024

how to solve this error??

  • make -j8 install
    : not foundumbrella/src/cmake/config.guess: 6: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 8: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 28: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 29: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 40: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 42: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 54: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 65: /onnc/onnc-umbrella/src/cmake/config.guess:
    : not foundumbrella/src/cmake/config.guess: 68: /onnc/onnc-umbrella/src/cmake/config.guess:
    /onnc/onnc-umbrella/src/cmake/config.guess: 71: /onnc/onnc-umbrella/src/cmake/config.guess: Syntax error: word unexpected (expecting "in")
    CMake Error at cmake/check.cmake:35 (message):
    Failed to execute /onnc/onnc-umbrella/src/cmake/config.guess
    Call Stack (most recent call first):
    CMakeLists.txt:114 (include)

-- Configuring incomplete, errors occurred!
See also "/onnc/onnc-umbrella/build-normal/CMakeFiles/CMakeOutput.log".
See also "/onnc/onnc-umbrella/build-normal/CMakeFiles/CMakeError.log".
Makefile:1202: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

from onnc-umbrella.

Related Issues (19)

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.