LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2016, 08:23 PM   #1
marvs
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Question make , fakeroot make , versus sudo make


testing compile resources with on a simple hello.c script,
Compiles initiated with:
$ make
$ fakeroot make
succeeded, but there was a failure when initiated with:
$ sudo make
With data below, Would someone explain the reason for the difference?

MarvS
---------------------

$ fakeroot make
make -C /lib/modules/4.4.0-31-generic/build M=/home/marv/bTest modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-31-generic'
CC [M] /home/marv/bTest/hello.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/marv/bTest/hello.mod.o
LD [M] /home/marv/bTest/hello.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-31-generic'
marv@MarvOldMac:~/bTest$

marv@MarvOldMac:~/bTest$ sudo make
[sudo] password for marv:
make -C /lib/modules/4.4.0-31-generic/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-31-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop.
arch/x86/Makefile:199: recipe for target 'archheaders' failed
make[1]: *** [archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-31-generic'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
 
Old 08-02-2016, 11:17 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
for starters
NEVER run make as root !!! Do not use su or sudo to run make !!!!

unless it is the install
Code:
./configure --prefix=/usr 
make -j4
su 
------ root password ----
make install
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure web server,name resolution,make it accessible over LAN and make secured Jocose Linux - Newbie 2 10-30-2015 04:37 PM
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM
fakeroot make-jpkg ERROR tuxhats MEPIS 4 01-23-2007 03:10 PM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration