Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SubmodulesClean] error 1 #8333

Closed
5t0ic opened this issue Nov 22, 2017 · 10 comments
Closed

[SubmodulesClean] error 1 #8333

5t0ic opened this issue Nov 22, 2017 · 10 comments

Comments

@5t0ic
Copy link

5t0ic commented Nov 22, 2017

The initial setup is not working whenever I try to "make distclean" Its consistently indicating error 1 when executed in the px4 console. When the command is issued from the custom eclipse ide it gives me a c/c++ error and sates "make *** [submodulesclean] Error 1".

The "make clean" function works but it doesn't help with the issue.

@dagar dagar added the bug label Nov 22, 2017
@dagar
Copy link
Member

dagar commented Nov 22, 2017

Which platform?

Does this work? git submodule update --init --recursive

@dagar
Copy link
Member

dagar commented Nov 26, 2017

Can you provide any update? Have you gone through the full toolchain installation? https://dev.px4.io/en/setup/dev_env.html

@dagar dagar closed this as completed Dec 6, 2017
@Dream123456
Copy link

I also got into the same trouble. How to do?

@dagar
Copy link
Member

dagar commented Jan 9, 2018

Which platform? Can you try make distclean?

@Dream123456
Copy link

win10, I will try use it in win10, but I using Ubuntu 16 today, I will update later. Thx.

@aogrcs
Copy link

aogrcs commented Jan 29, 2018

I used win10, when tried make distclean, it said as following:
make distclean
Removing uavcan/init.pyc
Removing uavcan/dsdl/init.pyc
Removing uavcan/dsdl/common.pyc
Removing uavcan/dsdl/parser.pyc
Removing uavcan/dsdl/signature.pyc
Removing uavcan/dsdl/type_limits.pyc
Removing uavcan/transport.pyc
Usage: git submodule [--quiet] add [-b branch] [-f|--force] [--reference ] [--] []
or: git submodule [--quiet] status [--cached] [--recursive] [--] [...]
or: git submodule [--quiet] init [--] [...]
or: git submodule [--quiet] update [--init] [-N|--no-fetch] [-f|--force] [--rebase] [--reference ] [--merge] [--recursive] [--] [...]
or: git submodule [--quiet] summary [--cached|--files] [--summary-limit ] [commit] [--] [...]
or: git submodule [--quiet] foreach [--recursive]
or: git submodule [--quiet] sync [--] [...]
make: *** [submodulesclean] Error 1

@nanthony21
Copy link
Contributor

I'm getting this same issue on Windows 7. I've update the submodules as recommended and git shows that everything is up to date. The error doesn't occur if I try it on recent commits to master . But if I try to run it on the commit that is tagged "1.7.3" or anything earlier I get the error.

Note: Even though distclean succeeds on recent commits, the build still fails with "Error 2: you must run this command from the toplevel of the working tree."

@dagar
Copy link
Member

dagar commented Jan 31, 2018

If you can post full output and likely add some debugging as needed we can probably work through it. Some of this sounds like old versions of git not liking certain arguments, other issues could be with windows paths.

@dagar
Copy link
Member

dagar commented Jan 31, 2018

Please open a fresh issue and tag me if you'd like to continue debugging.

@gadavidd
Copy link

Hey, please help me! I have same problems on Windows 8, Could you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants