OpenWrt Forum Archive

Topic: Trunk building broken

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi Community,

I did clone the openwrt build root like described here ( http://wiki.openwrt.org/doc/howto/buildroot.exigence ) yesterday evening an this morning. Everything works out, but as soon as I get to the ./scripts/feeds install -a step, it fails:

"Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'svn'... ok.
Checking 'git'... failed.
Checking 'file'... ok.
Checking 'openssl'... ok.
Checking 'ldconfig-stub'... ok.

-e Build dependency: Please install Git (git-core) >= 1.6.5

/home/pi/openwrttrunk/openwrt/include/prereq.mk:12: recipe for target 'prereq' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/pi/openwrttrunk/openwrt/include/toplevel.mk:140: recipe for target 'tmp/.prereq-build' failed
make[1]: *** [tmp/.prereq-build] Error 1
/home/pi/openwrttrunk/openwrt/include/toplevel.mk:69: recipe for target 'prepare-tmpinfo' failed
make: *** [prepare-tmpinfo] Error 2
Cannot open './tmp/.packageinfo': No such file or directory"

However - for non-trunk openwrt releases, this works out fine.
And I got an even more recent git version installed:

git --version
git version 2.1.0

Subsequent steps, like trying to make menuconfig and enter the menu - fail with the same hint to an outdated git version, which is wrong.

So I probably think the preq script is somehow broken.
I am using Ubuntu x64, tried on 14.01 lts and 14.04.
Latest upgrades and versions.

Cheers smile

Whats the output of "git clone --help | grep recursive" ?

Perfect!
You just nailed the problem ^^'!

"git clone --help | grep recursive
warning: failed to exec 'man': No such file or directory
fatal: no man viewer handled the request"

After an sudo apt-get install man, everything worked fine!
As I used an jeos Ubuntu installation as build machine, man seemed not be installed.

However, it is a bit misleading to see an error "thrown at git" if somehow man is missing hmm.

Thanks a lot for your help!

Well man is not strictly needed, we just use the grep for "recursive" as indicator whether git is new enough. I see if I find a variant that works without "man".

Yes.  I ran into this problem too.  On a minimal build host, man is not installed.

Possible solutions:
1. git has settings to report help without man, or setting a custom man program (which could be set to cat maybe?)  See man git-help
2. Actually checking git --version.  See http://stackoverflow.com/questions/1698 … on-numbers

Good luck

It should be already fixed.

jow wrote:

It should be already fixed.

Yes you are right and that solution works too.  I confirm that it works on my build container now.

(Last edited by glimmer on 9 Feb 2015, 12:47)

The discussion might have continued from here.