一、介绍
OpenDwarf 是由伯克利大学提出的对算法的分类,它既可以对设计的架构进行评估,反过来也可以指导架构的设计。
github
二、编译时遇到的坑
Problem 1、
bash: ./autogen.sh: /bin/sh^M: bad interpreter: No such file or directory
Error:.ibtoolize: AC_CONFIG_MACRO_DIR([./aclocal]) conflicts with ACLOCAL_AMFLAGS=-I ./aclocal
解决方案:
执行libtoolize遇到上面提示的错误,是因autogen.sh和configure.ac和Makefile.am文件是dos格式导致的,使用dos2unix转换一下后再执行,问题可能就解决了。
dos2unix file1 file2
如果是在windows上使用git,建议设置不转换文件格式:
git config --global core.autocrlf false
git config --global core.safecrlf true
git config --global core.eol lf
或者手工直接编辑.gitconfig文件,该文件位于用户主目录下,如果为Windows7,用户名为zhangsan,则为:C:\Users\zhangsan.gitconfig
(转自https://yq.aliyun.com/articles/497392)
Problem 2、
Error:cc1: all warnings being treated as errors
解决方案:
在主目录下的Makefile文件中找到 -Werror用-Wno-error替换掉
–find where -Werror is set and remove that flag. Then warnings will be only warnings.If you can’t find it, you can try overriding it with -Wno-error。–