Comments (9)
Try running ./config_gen.py -v $PRJROOT
in the terminal, and paste the output from that here.
The -v
flag will display all output from the build process, which should contain whatever error is causing it to fail.
from ycm-generator.
I got "System not configured - see README" when I used -v
flag. I used grep -r "System not configure"
or other key word to find where this log was printed, but it outputed nothing.
Here is the log with -v
option:
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $ ./config_gen.py -v ~/src/uboot/
Preparing build directory...
$ make clean
Running make...
$ make -i -j2
System not configured - see README
make: [all] Error 1 (ignored)
Build completed in 0.09 sec
ERROR: No commands were logged to the build log (/tmp/tmpjFSs7K).
Your build system may not be compatible.
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $
And also, there may be another issue: the default clang command is clang-3.6
, but YCM-Generator cannot recognize it automatically, and I have to make a soft link myself to make YCM-Generator get the clang command.
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $ ./config_gen.py -v ~/src/uboot/
ERROR: Could not find clang. Please make sure it is installed and is either in your path, or specified with --compiler.
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $ sudo ln -s /usr/bin/clang-3.6 /usr/bin/clang
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $ ls -al /usr/bin/clang
lrwxrwxrwx 1 root root 18 5月 10 12:41 /usr/bin/clang -> /usr/bin/clang-3.6
from ycm-generator.
OK, that explains it. "System not configured" is an error from uboot. If I understand your first post correctly, uboot expects those variables to be defined and fails if they aren't. The solution is to use the -e
flag, which preserves existing environment variables.
As an alternative to manually creating a symlink for clang, you can also use -c clang-3.6
.
from ycm-generator.
There is no -e
flag supported.
sunyongfeng@syf ~/.vim/bundle/YCM-Generator $ ./config_gen.py -v -e ~/src/uboot/
usage: config_gen.py [-h] [-v] [-m MAKE] [-c COMPILER] [-C CONFIGURE_OPTS]
[-M MAKE_FLAGS] [-o OUTPUT] [--out-of-tree]
PROJECT_DIR
config_gen.py: error: unrecognized arguments: -e
from ycm-generator.
Oops, I forgot that was still on the development branch. Just merged it into stable - run git pull and try again.
from ycm-generator.
It can generate YCM configuration file now, but when I use vim, autocomplete members of a structure failed. I will try to find out what's wrong.
Another question: ./config_gen.py -v -e ~/src/uboot/
seems to compile all the files, it's a real compile process but not the fake one as you mentioned, and that takes really too much time.
from ycm-generator.
Interesting. Can you give me a link to the git repo? Uboot is big enough that it's possible they're using their own infrastructure for determining the compiler...
from ycm-generator.
Sorry, the code I used is not the original uboot, and I cannot distribute it by my own. I will try the kernel source to check if there is something wrong with my operations.
from ycm-generator.
OK, that's fair enough. Let me know if you can reproduce the problem with the original, otherwise I'm not going to be able to be of much help.
from ycm-generator.
Related Issues (20)
- unwanted flag "c++" in the flags HOT 1
- Possible to support alternative compiler for cross compiler such as ARM, POWERPC ? HOT 1
- Stucked on Linux kernel of version 4.9-rc8
- 'CC=gcc-7' inside Makefile does not work , while 'CC=gcc' does. (ERROR: no commands ... ) HOT 1
- meson/ninja generator creates incorrect include paths HOT 1
- How to set external library dir
- ERROR: No commands were logged to the build logs HOT 1
- test for generating configuration file for linux kernel is slow HOT 1
- ERROR: Unknown build system HOT 4
- Compatible with Conan HOT 2
- E464: Ambiguous use of user-defined command: Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'} HOT 1
- Package not found via config_gen HOT 4
- ld in fake-toolchain must work properly HOT 2
- ESP32 IDF and YCM-Generator not working well together HOT 5
- Does YCM-Generator support transform compile_commands.json to .color_coded
- Does this plugin support python 3?
- The template file for .ycm_extra_conf.py should be changed for clangd changed
- .vimrc imap <C-n> <Down>, when type "return 0;", then "<C-n> cant use anymore HOT 1
- Missing verb in README.md
- Doesn't seem to work with Kbuild (Linux Kernel build system)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ycm-generator.