Giter VIP home page Giter VIP logo

Comments (12)

LuisHsu avatar LuisHsu commented on September 2, 2024 2

BTW, I'm refining CMake building system with onnc main repository.
Boost and zlib will be checked and configured then, you may be interested to try it in the future.

from onnc-umbrella.

lubatang avatar lubatang commented on September 2, 2024 2

I have pushed this patch. Please help me to check if the problem has been resolved or not.
ONNC/onnc@c593b07

from onnc-umbrella.

Peter-Chang avatar Peter-Chang commented on September 2, 2024 1

You need install libgoogle-glog-dev and libboost-dev to avoid following issues.
But after installing above-mentioned pkgs, you may see following error message.

/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o): In function `boost::system::error_category::std_category::equivalent(std::error_code const&, int) const':
/usr/include/boost/system/error_code.hpp:686: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:689: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:701: undefined reference to `boost::system::generic_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o): In function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const':
/usr/include/boost/system/error_code.hpp:656: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:659: undefined reference to `boost::system::generic_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o):/usr/include/boost/system/error_code.hpp:206: more undefined references to `boost::system::generic_category()' follow
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o): In function `_GLOBAL__sub_I__ZN4onnc17BM188xCodeEmitterC2EPNS_13BM1880BackendERSt6vectorISt10unique_ptrINS_16ComputeOperator2ESt14default_deleteIS5_EESaIS8_EE':
/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(Weight.o): In function `_GLOBAL__sub_I__ZN4onnc6BM188X6Weight10append8bitERSt6vectorIaSaIaEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
/usr/include/boost/system/error_code.hpp:206: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(io.o): In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:206: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
Makefile:457: recipe for target 'onnc' failed
make[2]: *** [onnc] Error 1
make[2]: Leaving directory '/home/skymizer/onnc-umbrella/build-normal/tools/onnc'
Makefile:408: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/skymizer/onnc-umbrella/build-normal/tools'
Makefile:532: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
[/home/skymizer/onnc-umbrella/build-normal] Make onnc failed.
Failed to execute command: 'make DESTDIR=/home/skymizer/onnc-umbrella/install-normal install'

I am still finding what the required package is to solve this issue.

from onnc-umbrella.

LuisHsu avatar LuisHsu commented on September 2, 2024

You can try install flex and bison. JsonScanner.cpp is generated with them.
This information will be updated to README soon.

from onnc-umbrella.

Peter-Chang avatar Peter-Chang commented on September 2, 2024

This issue is due to lack of flex. You can install flex in your platform to solve this issue.

from onnc-umbrella.

evenpengqnap avatar evenpengqnap commented on September 2, 2024

Great, it works!
But I got the other one as following:

/workspace/onnc-umbrella/src/lib/Target/Sophon/io.cpp:15:10: fatal error: glog/logging.h: No such file or directory
 #include <glog/logging.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
Makefile:2277: recipe for target 'Target/Sophon/io.o' failed
make[1]: *** [Target/Sophon/io.o] Error 1
make[1]: Leaving directory '/workspace/onnc-umbrella/build-normal/lib'
Makefile:532: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
[/workspace/onnc-umbrella/build-normal] Make onnc failed.
Failed to execute command: 'make DESTDIR=/workspace/onnc-umbrella/install-normal install'

Because I'm compiling it in a container (ubuntu:latest), I need to install a lot of packages.
Here's the packages I installed:

apt install -y \
git curl cmake automake \
pkg-config bison byacc flex\
libtool protobuf-compiler libprotoc-dev \
python2.7 python2.7-dev python-pip 

Please check what's missing, thanks!

from onnc-umbrella.

evenpengqnap avatar evenpengqnap commented on September 2, 2024

It seems that we need to link it by -lboost_system or -lboost_system-mt?
But I have no idea where to configure it because it is generated automatically.

from onnc-umbrella.

evenpengqnap avatar evenpengqnap commented on September 2, 2024

I found a temporary solution by adding LIBS="-lz -lboost_system" to line 181 and 183 of build.sh.

from onnc-umbrella.

Peter-Chang avatar Peter-Chang commented on September 2, 2024

I think that is a right way to solve this issue. You may create a pull request to commit your code into ONNC umbrella repository.

from onnc-umbrella.

evenpengqnap avatar evenpengqnap commented on September 2, 2024

Really?
Is there a way to make auto-generated Makefile use this enviroment variables, LIBS="-lz -lboost_system"?

from onnc-umbrella.

lubatang avatar lubatang commented on September 2, 2024

I'll remove the boost including. It looks like boost and z library are never used.

from onnc-umbrella.

evenpengqnap avatar evenpengqnap commented on September 2, 2024

After removing boost including, libboost-filesystem-dev is not necessary, and the problem is resolve.

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.