Coder Social home page Coder Social logo

Comments (9)

rdnetto avatar rdnetto commented on July 29, 2024

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.

jeromesun14 avatar jeromesun14 commented on July 29, 2024

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.

rdnetto avatar rdnetto commented on July 29, 2024

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.

jeromesun14 avatar jeromesun14 commented on July 29, 2024

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.

rdnetto avatar rdnetto commented on July 29, 2024

Oops, I forgot that was still on the development branch. Just merged it into stable - run git pull and try again.

from ycm-generator.

jeromesun14 avatar jeromesun14 commented on July 29, 2024

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.

rdnetto avatar rdnetto commented on July 29, 2024

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.

jeromesun14 avatar jeromesun14 commented on July 29, 2024

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.

rdnetto avatar rdnetto commented on July 29, 2024

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)

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.