View previous topic :: View next topic |
Author |
Message |
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Tue Apr 01, 2014 7:26 pm Post subject: ar: invalid option -- 's' only in the root console |
|
|
Hello,
when I try to compile my kernel in the root console (), I get this:
Code: | make && make modules_install
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
LD arch/x86/net/built-in.o
ar: invalid option -- 's'
BusyBox v1.21.0 (2013-10-12 14:41:20 CEST) multi-call binary.
Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES
Extract or list FILES from an ar archive
-o Preserve original dates
-p Extract to stdout
-t List
-x Extract
-v Verbose
make[2]: *** [arch/x86/net/built-in.o] Error 1
make[1]: *** [arch/x86/net] Error 2
make: *** [arch/x86] Error 2
|
In a Konsole started as the normal user, then doing sudo su -, it works, the kernel compiles.
That's a problem very similar to my own with lspci: https://forums.gentoo.org/viewtopic-p-7482030.html#7482030.
root Konsole:
Code: | whereis ar
ar: /bin/ar /usr/bin/ar /usr/include/ar.h /usr/share/man/man1p/ar.1p.bz2
ls -la /bin/ar
lrwxrwxrwx 1 root root 12 Jun 16 2013 /bin/ar -> /bin/busybox
ls -la /usr/bin/ar
lrwxrwxrwx 1 root root 22 Dec 25 01:29 /usr/bin/ar -> x86_64-pc-linux-gnu-ar
|
normal user Konsole:
Code: | whereis ar
ar: /bin/ar /usr/bin/ar /usr/include/ar.h /usr/share/man/man1p/ar.1p.bz2
ls -la /bin/ar
lrwxrwxrwx 1 root root 12 Jun 16 2013 /bin/ar -> /bin/busybox
ls -la /usr/bin/ar
lrwxrwxrwx 1 root root 22 Dec 25 01:29 /usr/bin/ar -> x86_64-pc-linux-gnu-ar
|
b0nafide had the same error message here: https://forums.gentoo.org/viewtopic-t-914546-start-0.html . But my link is ok:
root Konsole:
Code: | ls -la /bin/sh
lrwxrwxrwx 1 root root 4 30. Mai 2013 /bin/sh -> bash
|
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Wed Apr 02, 2014 1:33 am Post subject: |
|
|
Busybox AR does not understand the options used by the kernel build. You should not be building the kernel as root anyway, so you can avoid the problem by building the kernel as a normal user. In the long term, you should probably change the Busybox configuration not to install an ar link. |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Sat Apr 05, 2014 4:24 pm Post subject: |
|
|
Shouldn't the busybox version used in gentoo and the kernel tools be made compatible by the gentoo devs?
Why should I make the kernel (and makeconfig, and make modules_prepare and modules_install?) as a normal user? If a normal user (or a malware started in his environment) can change part of the kernel objects in /usr/src/linux, he can get control over the whole system as soon as the new kernel is active.
What is the right way in gentoo to change the busybox config? I found one in /etc/portage/savedconfig/sys-apps and it begins with: Code: | #
# Automatically generated make config: don't edit |
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Apr 05, 2014 5:23 pm Post subject: |
|
|
kaTiezei wrote: | Shouldn't the busybox version used in gentoo and the kernel tools be made compatible by the gentoo devs? | Why would they spend effort to do that when the far more featureful binutils ar works fine as-is?
kaTiezei wrote: | Why should I make the kernel (and makeconfig, and make modules_prepare and modules_install?) as a normal user? If a normal user (or a malware started in his environment) can change part of the kernel objects in /usr/src/linux, he can get control over the whole system as soon as the new kernel is active. | You should make the kernel as an unprivileged user for the same reason you should run any complex piece of software without privilege: grant only the privileges required for the task at hand, so that any attempt to perform an unauthorized task will be blocked by the lack of privilege.
Malware running as your user can already cause significant problems if you do not enable ptrace restrictions.
Why would you let an unprivileged user modify anything in /usr/src/linux? |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Sun Apr 06, 2014 8:20 am Post subject: |
|
|
Can one configure to use the binutils instead of busybox when root?
Quote: | unauthorized task will be blocked | I understand that and with executing normal software, I agree.
But compiling the kernel or modifiying the objects in /usr/src/linux - isn't that a task a usual user should be unauthorized to do? The kernel that the normal user creates will have power over anything when executed later. https://wiki.gentoo.org/wiki/Kernel/Configuration#Build recommends doing it as root as well.
I am asking because I get this permission conflict:
Code: | /usr/src/linux $ make
make[1]: Nothing to be done for `all'.
/bin/sh: scripts/basic/modules.order: Permission denied
make[1]: *** [scripts/basic/modules.order] Error 1
make: *** [scripts_basic] Error 2
|
Do I need the hardened sources to restrict ptrace? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sun Apr 06, 2014 4:01 pm Post subject: |
|
|
kaTiezei wrote: | Can one configure to use the binutils instead of busybox when root? | Maybe. Most people just avoid installing busybox ar at all, in which case binutils ar is the only one available.
kaTiezei wrote: | Quote: | unauthorized task will be blocked | I understand that and with executing normal software, I agree.
But compiling the kernel or modifiying the objects in /usr/src/linux - isn't that a task a usual user should be unauthorized to do? The kernel that the normal user creates will have power over anything when executed later. https://wiki.gentoo.org/wiki/Kernel/Configuration#Build recommends doing it as root as well. | Assuming no malicious action, the kernel compiled by the user will be no more or less dangerous than the kernel compiled by root. If you run the compilation as an unprivileged user who does not run bad things, the resulting kernel is fine. If you run the compilation from a root shell running under an xterm that runs as a user who runs bad things, the bad things can manipulate the xterm to affect the root shell. Running bad things is always a bad idea, whether because they can manipulate your xterm or because they can directly manipulate the generated file. If you are concerned about malware affecting the build, you must run the privileged processes only in contexts where no unprivileged process can affect them. Among other things, this means never run a root shell or sudo shell from an xterm run by a potentially infected user. Instead, vt-switch to the text console, log in there as a known clean user (root or isolated unprivileged user) and do your system maintenance there.
Normal users should not have modify permission over /usr/src/linux.
Wiki pages are written by users, some of whom may not be all that well informed about the options offered by the kernel. I still see people who do not know the kernel can create a built-in initramfs, too.
kaTiezei wrote: | I am asking because I get this permission conflict:
Code: | /usr/src/linux $ make
make[1]: Nothing to be done for `all'.
/bin/sh: scripts/basic/modules.order: Permission denied
make[1]: *** [scripts/basic/modules.order] Error 1
make: *** [scripts_basic] Error 2
|
| This is correct. You must write the generated objects elsewhere by setting $KBUILD_OUTPUT. See Documentation/kbuild/kbuild.txt for other variables you can set to affect the build.
kaTiezei wrote: | Do I need the hardened sources to restrict ptrace? | No. The patch was originally written by Kees Cook and proposed for mainline, but ended up in YAMA instead of core code. |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Sat Apr 12, 2014 12:29 am Post subject: |
|
|
Hi Hu,
thank you for your new thoughts about the xterm environment. Now, trying to compile as an unprivileged user in the same directory as always, .config is not found any more. I have changed its ownership to the user.
Code: | /usr/src/linux $ make
GEN /opt/kernel/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `relocs'.
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** [sub-make] Error 2
|
Code: |
/usr/src/linux $ ls -la .config
-rw-r--r-- 1 user user 94269 Apr 12 01:15 .config
| "user" changed.
After I then save a .config from make menuconfig, I get:
Code: | make
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `relocs'.
Using /usr/src/linux-3.10.25-gentoo as source for kernel
/usr/src/linux-3.10.25-gentoo is not clean, please run 'make mrproper'
in the '/usr/src/linux-3.10.25-gentoo' directory.
make[1]: *** [prepare3] Error 1
make: *** [sub-make] Error 2
|
Code: | /usr/src/linux $ make mrproper
CLEAN arch/x86/tools
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated arch/x86/include/generated
CLEAN .config
|
Code: | /usr/src/linux $ make
HOSTCC scripts/basic/fixdep
GEN /opt/kernel/Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[2]: Nothing to be done for `all'.
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** [sub-make] Error 2
|
...and so on
Can you help me again? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Apr 12, 2014 4:12 am Post subject: |
|
|
As a generated output, the .config file must be in $KBUILD_OUTPUT. Since generated files will be written there, $KBUILD_OUTPUT must be writable to the user. Have you done these things? |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Sat Apr 12, 2014 6:44 pm Post subject: |
|
|
Yes, at least now.
after make mrproper:
Code: | export KBUILD_OUTPUT="/opt/kernel"
/opt/kernel $ echo $KBUILD_OUTPUT
/opt/kernel
/opt/kernel $ make
GEN /opt/kernel/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
...
|
after copying it:
Code: | /opt/kernel $ ls -la .config
-rw-r--r-- 1 user user 94269 Apr 12 20:33 .config
|
Code: | /opt/kernel $ make
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `relocs'.
Using /usr/src/linux-3.10.25-gentoo as source for kernel
/usr/src/linux-3.10.25-gentoo is not clean, please run 'make mrproper'
in the '/usr/src/linux-3.10.25-gentoo' directory.
make[2]: *** [prepare3] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
|
And perl-cleaner has problems with busybox as well:
Code: | ~ $ sudo perl-cleaner --all
* Beginning a clean up of .ph files
* Excluding files for 5.16.3 and 5.16.3/x86_64-linux from cleaning
* Locating ph files for removal
* Updating ph files.
* Ignore all "No such file..." messages!
Can't open machine/ansi.h: No such file or directory
Can't open sys/_types.h: No such file or directory
Can't open gnu/stubs-x32.h: No such file or directory
Can't open gnu/stubs-x32.h: No such file or directory
Can't open gnu/stubs-x32.h: No such file or directory
Can't open gnu/stubs-x32.h: No such file or directory
* Locating packages for an update
* Locating ebuilds linked against libperl
find: unrecognized: -L
BusyBox v1.21.0 (2013-10-12 14:41:20 CEST) multi-call binary.
Usage: find [PATH]... [OPTIONS] [ACTIONS]
Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'
-follow Follow symlinks
-xdev Don't descend directories on other filesystems
-maxdepth N Descend at most N levels. -maxdepth 0 applies
actions to command line arguments only
-mindepth N Don't act on first N levels
-depth Act on directory *after* traversing it
Actions:
( ACTIONS ) Group actions for -o / -a
! ACT Invert ACT's success/failure
ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2
ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2
Note: -a has higher priority than -o
-name PATTERN Match file name (w/o directory name) to PATTERN
-iname PATTERN Case insensitive -name
-path PATTERN Match path to PATTERN
-ipath PATTERN Case insensitive -path
-regex PATTERN Match path to regex PATTERN
-type X File type is X (one of: f,d,l,b,c,...)
-perm MASK At least one mask bit (+MASK), all bits (-MASK),
or exactly MASK bits are set in file's mode
-mtime DAYS mtime is greater than (+N), less than (-N),
or exactly N days in the past
-mmin MINS mtime is greater than (+N), less than (-N),
or exactly N minutes in the past
-newer FILE mtime is more recent than FILE's
-inum N File has inode number N
-user NAME/ID File is owned by given user
-group NAME/ID File is owned by given group
-size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
+/-N: file size is bigger/smaller than N
-links N Number of links is greater than (+N), less than (-N),
or exactly N
-prune If current file is directory, don't descend into it
If none of the following actions is specified, -print is assumed
-print Print file name
-print0 Print file name, NUL terminated
-exec CMD ARG ; Run CMD with all instances of {} replaced by
file name. Fails if CMD exits with nonzero
-delete Delete current file/directory. Turns on -depth option
* No package needs to be reinstalled.
* Finding left over modules and header
...
|
I think it is the job of make and perl-cleaner to check for the right tools or use the right version directly by using the whole path. |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Sun Apr 20, 2014 9:54 am Post subject: |
|
|
To solve the problem with perl-cleaner, I unmerged busybox. Then I deleted the dead links in /bin and /sbin with Code: | find /sbin -maxdepth 1 -follow -type l -delete | .
After running 'make mrproper' as root in /usr/src/linux, the compilation as a normal user starts. It stops at Code: | CC kernel/itimer.o
make[3]: *** No rule to make target `/opt/kernel/include/config/hz.h', needed by `kernel/hz.bc'. Stop.
make[2]: *** [kernel] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
|
This file doesn't exist in /usr/srx/linux/config, either. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sun Apr 20, 2014 4:28 pm Post subject: |
|
|
Strange. Out of tree builds have worked for me for years. I see both those files in my $KBUILD_OUTPUT directory. I do not see the rule that generates kernel/hz.bc. Please post the full set of commands you ran, starting with a clean /usr/src/linux tree and no output directory. This will include you creating the directory, exporting appropriate environment variables, and whichever make commands you ran. |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Mon Apr 21, 2014 10:06 am Post subject: |
|
|
'clean' means 'make clean' (as root) or reemerge? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Tue Apr 22, 2014 1:46 am Post subject: |
|
|
Unmerge it. Remove any files left behind by the package manager. Emerge it. Before removing unmanaged files, make copies of anything you want to save. You might have a customized .config file there. |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Tue Apr 22, 2014 7:38 pm Post subject: |
|
|
I'll write down the root commands from the tty1.
Code: | emerge -C gentoo-sources-3.10.25
/usr/src/linux $ ls -la
total 8
drwxr-xr-x 2 root root 4096 Apr 22 20:33 .
drwxr-xr-x 10 root root 4096 Apr 5 20:00 ..
emerge -av =gentoo-sources-3.10.25
|
as root:
Code: | cd /opt
mkdir kernel
chown user kernel |
as user:
Code: | cd /opt/kernel
/opt/kernel $ export KBUILD_OUTPUT="/opt/kernel"
/opt/kernel $ echo $KBUILD_OUTPUT
/opt/kernel
/opt/kernel $ cd /usr/src/linux
/usr/src/linux $ make
HOSTCC scripts/basic/fixdep
GEN /opt/kernel/Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** [sub-make] Error 2
/usr/src/linux $ make menuconfig
GEN /opt/kernel/Makefile
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
#
# using defaults found in arch/x86/configs/x86_64_defconfig
#
configuration written to .config
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
make
...
Kernel: arch/x86/boot/bzImage is ready (#1)
|
That works!
But copying my config as root to .config in /usr/src/linux, chown and chgrp to user and then running make as user gives:
Code: | make
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `relocs'.
Using /usr/src/linux-3.10.25-gentoo as source for kernel
/usr/src/linux-3.10.25-gentoo is not clean, please run 'make mrproper'
in the '/usr/src/linux-3.10.25-gentoo' directory.
make[1]: *** [prepare3] Error 1
make: *** [sub-make] Error 2
|
How can I use my own configuration as the user? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Wed Apr 23, 2014 1:51 am Post subject: |
|
|
kaTiezei wrote: | How can I use my own configuration as the user? | As I said above:
Hu wrote: | As a generated output, the .config file must be in $KBUILD_OUTPUT. | Therefore, given your use of /opt/kernel for your build directory, you should put it in /opt/kernel/ with the name .config. |
|
Back to top |
|
|
kaTiezei n00b
Joined: 10 Mar 2013 Posts: 39
|
Posted: Wed Apr 30, 2014 7:43 pm Post subject: |
|
|
Then I get "make mrproper", again:
Code: | /opt/kernel $ echo $KBUILD_OUTPUT
/opt/kernel
user@machine /opt/kernel $ make menuconfig
GEN /opt/kernel/Makefile
scripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
user@machine /opt/kernel $ ls -la .config
-rw-r--r-- 1 user user 89721 Apr 30 21:37 .config
user@machine /opt/kernel $ make
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `relocs'.
Using /usr/src/linux-3.10.25-gentoo as source for kernel
/usr/src/linux-3.10.25-gentoo is not clean, please run 'make mrproper'
in the '/usr/src/linux-3.10.25-gentoo' directory.
make[2]: *** [prepare3] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
user@machine /opt/kernel $ cd /usr/src/linux-3.10.25-gentoo/
user@machine /usr/src/linux-3.10.25-gentoo $ make mrproper
CLEAN arch/x86/tools
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated arch/x86/include/generated
CLEAN .config
user@machine /usr/src/linux-3.10.25-gentoo $ cd /opt/kernel/
user@machine /opt/kernel $ ls -la .config
ls: cannot access .config: No such file or directory
user@machine /opt/kernel $ make
HOSTCC scripts/basic/fixdep
GEN /opt/kernel/Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[4]: *** [silentoldconfig] Error 1
make[3]: *** [silentoldconfig] Error 2
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
make[2]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
user@machine /opt/kernel $ make menuconfig
GEN /opt/kernel/Makefile
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
configuration written to .config
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
user@machine /opt/kernel $ make
GEN /opt/kernel/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_64.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
Using /usr/src/linux-3.10.25-gentoo as source for kernel
/usr/src/linux-3.10.25-gentoo is not clean, please run 'make mrproper'
in the '/usr/src/linux-3.10.25-gentoo' directory.
make[2]: *** [prepare3] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
|
|
|
Back to top |
|
|
|