View previous topic :: View next topic |
Author |
Message |
mgs n00b
Joined: 25 Oct 2014 Posts: 21 Location: dc
|
Posted: Thu Nov 13, 2014 9:58 pm Post subject: make install errors - System.map.old... |
|
|
Hi all
I am trying to recompile the kernel in my not-yet-booting install, and I am getting an error I can't sort out. After running make && make modules_install (last of which is the first four lines in the code below), I get the error indicated.
Code: |
INSTALL net/netfilter/xt_LOG.ko
INSTALL net/netfilter/xt_mark.ko
INSTALL net/netfilter/xt_nat.ko
DEPMOD 3.16.5-gentoo
livecd linux # make install
sh ./arch/x86/boot/install.sh 3.16.5-gentoo arch/x86/boot/bzImage \
System.map "/boot"
mv: ‘/boot/System.map’ and ‘/boot/System.map.old’ are the same file
arch/x86/boot/Makefile:182: recipe for target 'install' failed
make[1]: *** [install] Error 1
arch/x86/Makefile:241: recipe for target 'install' failed
make: *** [install] Error 2
livecd linux #
|
I got this before and went through and tried to clean up previous kernel attempts, recompiled, but this "System.map.old" error keeps popping up when I run make install. I cannot find System.map.old anywhere. Can someone steer me straight?
Thanks in advance |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri Nov 14, 2014 3:08 am Post subject: Re: make install errors - System.map.old... |
|
|
mgs wrote: | I got this before and went through and tried to clean up previous kernel attempts, recompiled, but this "System.map.old" error keeps popping up when I run make install. I cannot find System.map.old anywhere. Can someone steer me straight? |
It looks like an error in the shell script to me, if as you say there's no /boot/System.map.old.
If you just want to get the kernel installed, you can do it manually (which is what I always do):
Code: | cp arch/x86/boot/bzImage /boot/gentoo-3.16.5
cp System.map /boot/System.map-3.16.5-gentoo-gnu |
and then point grub at kernel gentoo-3.16.5.
(Don't worry about x86 vs x86_64; arch/x86_64/boot/bzImage is a symlink to the arch/x86 one.)
Just make sure /boot is mounted before you do the above.
edit: doh if you're doing this from live disk, and not in chroot, you need to use /mnt/gentoo/boot above, where you see /boot. (Though modules_install should have gone wrong in that case, too.) |
|
Back to top |
|
|
mgs n00b
Joined: 25 Oct 2014 Posts: 21 Location: dc
|
Posted: Fri Nov 14, 2014 8:18 am Post subject: |
|
|
OK, thanks. Yes I ran ls -a on boot and it was not there. Just for fun here it is again after this latest attempt:
Code: |
livecd boot # ls -l
total 8474
-rwxr-xr-x 1 root root 3017872 Nov 13 16:34 system.map
-rwxr-xr-x 1 root root 5659088 Nov 13 16:34 vmlinuz-.16
livecd boot # ls -a
. .. system.map vmlinuz-.16
livecd boot #
|
"system.map" is new, as is the strangely-named "vmlinuz-.16."
And yes I am chroot-ed. This actual install non-chroot prompt is gentoo livecd rather than the one shown.
Thanks again, I'll just do it by hand. I wanted to make sure something else important was not amiss. I am trying to do an efi boot without grub (first attempt failed which is why I am recompiling the kernel in the first place). |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri Nov 14, 2014 1:51 pm Post subject: |
|
|
mgs wrote: | "system.map" is new, as is the strangely-named "vmlinuz-.16." |
Hmm that does look borked. What is in the shell file it's trying to run? arch/x86/boot/install.sh
Also I doubt this has any relevance, but just to check, what does ls -l /bin/sh output?
Quote: | And yes I am chroot-ed. This actual install non-chroot prompt is gentoo livecd rather than the one shown.
Thanks again, I'll just do it by hand. I wanted to make sure something else important was not amiss. I am trying to do an efi boot without grub (first attempt failed which is why I am recompiling the kernel in the first place). |
Cool; there's been quite a few EFI threads on these forums, so I'd take a look round and check a few of those as well.
Feel free to keep posting here if you want, though for specific EFI questions you might want to start another thread. Shouldn't really matter, as there's lots of excellent helpers on here, who'll answer either way. (I don't know EFI at all, and am still hoping some Chinese or Taiwanese manufacturer is going to realise there's a massive not-so-niche-market for a modern large-disk system with a traditional BIOS.) |
|
Back to top |
|
|
mgs n00b
Joined: 25 Oct 2014 Posts: 21 Location: dc
|
Posted: Fri Nov 14, 2014 8:50 pm Post subject: |
|
|
Here's /usr/src/linux/arch/x86/boot/install.sh
Code: |
#!/bin/sh
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1995 by Linus Torvalds
#
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
#
# "make install" script for i386 architecture
#
# Arguments:
# $1 - kernel version
# $2 - kernel image file
# $3 - kernel map file
# $4 - default install path (blank if root directory)
#
verify () {
if [ ! -f "$1" ]; then
echo "" 1>&2
echo " *** Missing file: $1" 1>&2
echo ' *** You need to run "make" before "make install".' 1>&2
echo "" 1>&2
exit 1
fi
}
# Make sure the files actually exist
verify "$2"
verify "$3"
# User may have a custom install script
if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
# Default install - same as make zlilo
if [ -f $4/vmlinuz ]; then
mv $4/vmlinuz $4/vmlinuz.old
fi
if [ -f $4/System.map ]; then
mv $4/System.map $4/System.old
fi
cat $2 > $4/vmlinuz
cp $3 $4/System.map
if [ -x /sbin/lilo ]; then
/sbin/lilo
elif [ -x /etc/lilo/install ]; then
/etc/lilo/install
else
sync
echo "Cannot find LILO."
fi
|
and ls -l /bin/sh
Code: |
livecd linux # ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Nov 5 22:20 /bin/sh -> bash
livecd linux #
|
The script doesn't mean much to me. not having done much shell scripting. I'd be curious to know if it's off somehow.
I'll carry on without it for now.
And yes, I have been reading a number of the EFI threads (some of them many times over)--particularly the ones concerning macs (I'm working on a mini). Hopefully I can soon report a success! (I'm just not sure when that will be ) |
|
Back to top |
|
|
|