OpenWrt Forum Archive

Topic: Make error

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

I am trying to create the image as per http://wiki.openwrt.org/doc/howto/build#updating.
When i try to do `make` i get the following error

->make -j 3
rm: cannot remove '/home/trunk/tmp/info/.files-packageinfo-14861': Permission denied
make[3]: *** No rule to make target `/home/trunk/tmp/info/.files-packageinfo-16196'.  Stop.
cat: /home/trunk/tmp/info/.files-packageinfo-16196: No such file or directory
rm: cannot remove '/home/trunk/tmp/info/.files-packageinfo.stamp.ff7082a4f5a633e49f80aa411299758d': Permission denied
touch: cannot touch '/home/trunk/tmp/info/.files-packageinfo.stamp.d41d8cd98f00b204e9800998ecf8427e': Permission denied
touch: cannot touch '/home/trunk/tmp/info/.files-packageinfo.stamp': Permission denied
make[2]: *** [/home/trunk/tmp/info/.files-packageinfo.stamp] Error 1
make[1]: *** [prepare-tmpinfo] Error 2

so i i tried sudo make for which i get the error as

-> sudo make -j 3
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'perl'... ok.
Checking '/usr/bin/python2.7'... ok.
Checking 'wget'... ok.
Checking 'git'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'openssl'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'file'... ok.
Checking 'non-root'... failed.

Build dependency: Please do not compile as root.

Prerequisite check failed. Use FORCE=1 to override.
make[1]: *** [tmp/.prereq-build] Error 1
make: *** [world] Error 2

so i tried to do FORCE=1 also -> `sudo make -j 3 FORCE=1`

I still get the same error .

How to solve the problem ??

nelbhat wrote:

Build dependency: Please do not compile as root.
...
Prerequisite check failed. Use FORCE=1 to override.
...
How to solve the problem ??

Your user account (in host) should not be a root account.

(possibly FORCE=1 can override in somehow.)

The discussion might have continued from here.