Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I was trying to cross-compile a program for ARM. While compiling I was very much irritated as I had to look for a number of dependencies e.g fatal error: abc/xyz.h: No such file or directory compilation terminated.

After ensuring that compiler gets the missing files, when I recompiled, I got same error for about 30 files.

I have no idea if that is normal behaviour.

If it is normal, is there a method which can help the compiler find the dependencies on its own?

If that is not normal, then please explain what I'm doing wrong.

share|improve this question
If your computer has enough processing core you can try to speed up the compilation using -j option. Apart from this advice, I have no idea about the problem your are facing. (Check this for -j options…) –  Web-E Jun 27 '12 at 11:50
thanks 4 ur help @Web-E –  Ubuntu_beginner Jun 28 '12 at 6:27

1 Answer 1

up vote 1 down vote accepted

Are you looking for something like the -M flag in gcc?

share|improve this answer
thats exactly what i am looking for. Thanks @Sam –  Ubuntu_beginner Jun 28 '12 at 6:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.