Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Updating kernel.
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Tue Aug 11, 2009 7:01 pm    Post subject: [SOLVED]Updating kernel. Reply with quote

Okay, I messed up. I tried to upgrade my Gentoo 2.6.17-r7 which was built a while ago. I had done these processes so far:

emerge --sync
emerge portage
emerge --update world

this produced an error on man-page and stopped the process
after finding out why, I continued with

emerge --unmerge man-pages
emerge man-pages-posix
emerge --update world

It got passed the man-pages add errored out again, this time it was an error on Apache2

Long story short: Apache2's format had changed and re-installed some of Apache2's newest setup, wiping out my web pages but could not finish.

I have a working e-mail server on the machine and have not been able to get the e-mail server to work on the other server and I would really not want to screw this one up until I have the new e-mail server working (but that's another topic).

At this point, would rebuilding the kernel on the server be the right thing to do?

Would this hurt the existing setup (e-mail and others) if there are no complications (nothing is ever 100%)?

Once the new kernel is built, what should I do? emerge world again?


Last edited by CurtE on Tue Aug 18, 2009 5:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Aug 11, 2009 7:44 pm    Post subject: Reply with quote

Did you have a backup?

It may be better to address things one at a time. Did your apache fail to emerge? If so please post the topmost build error. Once that's fixed then we can go on to the next thing...:P
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Tue Aug 11, 2009 8:01 pm    Post subject: Reply with quote

I have all the web site stuff backed up and I've lost nothing as of yet. Just can't access web pages until reset.

Apache2 currently uses the modules for setup, my old version had the one file does all (.htaccess).

The new Apache2 format apparently does not work with my old kernel and the kernel was built Sept/2006, I think it's time to upgrade it.

I guess I am trying to find out if this is the proper procedure and how to do this will work.

In a MS world, is this upgrading from SP1 to SP4 or XP Home to XP Pro or XP Home to Vista? Still learning :)
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Aug 11, 2009 8:33 pm    Post subject: Reply with quote

The answers you seek are most likely here. As long as you have the web pages safe, you should be able to update without too much drama.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Tue Aug 11, 2009 9:25 pm    Post subject: Reply with quote

Pappy, I just check my list and in the fundamental answer is Apache is NOT on my server. I did not lose the web info (my own backups off site) but after re-examining the system, there is no Apache.

I tried to emerge it again and this is the results:

>>> Messages generated by process 20686 on 2009-08-11 16:00:42 CDT for package www-servers/apache-2.2.11-r2:

LOG: setup

Selected default MPM: prefork

Please note that you need SysV IPC support in your kernel.
Make sure CONFIG_SYSVIPC=y is set.

ERROR: compile

ERROR: www-servers/apache-2.2.11-r2 failed.
Call stack:
ebuild.sh, line 49: Called src_compile
environment, line 3630: Called apache-2_src_compile
environment, line 454: Called die
The specific snippet of code:
emake || die "emake failed"
The die message:
emake failed

If you need support, post the topmost build error, and the call stack if relevant.
A complete build log is located at '/var/tmp/portage/www-servers/apache-2.2.11-r2/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/www-servers/apache-2.2.11-r2/temp/environment'.

Unless I'm mistaken CONFIG_SYSVIPC=y and MPM: prefork are in the kernel setup.

I should have had this in here before but I had already moved on to the next step.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Aug 11, 2009 10:26 pm    Post subject: Reply with quote

CurtE wrote:
Unless I'm mistaken CONFIG_SYSVIPC=y ... <is> in the kernel setup.

I should have had this in here before but I had already moved on to the next step.


cd /usr/src/linux -> make menuconfig -> General Setup -> System V IPC

You should rebuild and install your kernel with that before continuing - check the Gentoo handbook Chapter 7

:P
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 12:24 am    Post subject: Reply with quote

I'm confused. I ran menuconfig and changed settings, at the end it wanted me to save it as an alternate config and I did.

Then I did:

make && make modules_install

My old version was 2.6.17-r7 and the new one is 2.6.30-r4.

How do I know what I'm building here?

Was there something I need to point to beforehand or am I not that far yet?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 12:38 am    Post subject: Reply with quote

That's weird.

Do
Code:
ls -al /usr/src/linux/ | grep config
and post the output please.
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 1:06 am    Post subject: Reply with quote

-rw-r--r-- 1 root root 36173 Aug 11 18:56 .config
-rw-r--r-- 1 root root 36173 Aug 11 18:55 .config.old
-rw-r--r-- 1 root root 36173 Aug 11 18:55 .configgentooaltcee
-rw-r--r-- 1 root root 6686 Aug 11 18:56 .kconfig.d

configgentooaltcee was my naming

All 3 config files are exactly the same, barring the timestamp

eselect kernel list is:

Available kernel symlink targets:
[1] linux-2.6.17-gentoo-r5 *
[2] linux-2.6.30-gentoo-r4

Should I have changed this to #2?


Last edited by CurtE on Wed Aug 12, 2009 1:26 am; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 1:25 am    Post subject: Reply with quote

Ok, make builds the kernel from the .config file, so however you configured it what make && make modules_install have built.

Now when you copy your new kernel to /boot, best keep the old one there for a while (just in case) and add the new one to your grub.conf without deleting the lines that point to your old kernel - again (just in case).

It's what I always do. :)


Last edited by Mike Hunt on Wed Aug 12, 2009 1:34 am; edited 2 times in total
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 1:27 am    Post subject: Reply with quote

I had edited the last message while you were responding.

eselect kernel list is:

Available kernel symlink targets:
[1] linux-2.6.17-gentoo-r5 *
[2] linux-2.6.30-gentoo-r4

Should I have changed this to #2?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 1:33 am    Post subject: Reply with quote

I think that the eselect really symlinks the /usr/src/linux symlink

so yes if you want to build 2.6.30-gentoo-r4 then /usr/src/linux must be a symlink to /usr/src/linux-2.6.30-gentoo-r4

I've always done it manually but eselect is fine.

If you actually were working in the 2.6.17-gentoo-r5 before, then you will have to start over again in the new one. And you cannot use the old .config file anymore in this case because it's too many versions away.

That's my fault because I should have pointed you here instead of to the Gentoo Handbook Chapter 7. Sorry.
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 1:43 am    Post subject: Reply with quote

I was already there. LOL.

How do you do it manually?

Duh, read on. Okay, I found it.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 1:47 am    Post subject: Reply with quote

CurtE wrote:
How do you do it manually?


Code:
cd /usr/src
ls -l
rm linux
ln -s linux-2.6.30-gentoo-r4 linux
ls -l

I guess eselect kernel set <number> is easier. :)
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 3:55 am    Post subject: Reply with quote

After a new menuconfig, I did:

make && make modules_install

Shortly after that it quit with:

include/linux/compiler-gcc4.h:4:8: error: #error Your version of gcc miscompiles the __weak directive
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

I have installed:
gcc-4.1.1

Could this be an older version?

I checked for newer version and found it gcc-4.3.2 and emerged it.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 4:14 am    Post subject: Reply with quote

CurtE wrote:
Could this be an older version?


Yes. You need to update that. 4.1.1 isn't even in portage!

I would rebuild the toolchain and system like so
Code:
emerge --sync && emerge -eav system


I would follow that with
Code:
emerge -1 libtool && emerge -eav world
etc-update
perl cleaner all
python-updater


Then symlink build and install new kernel.

*** first please post your emerge --info
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Wed Aug 12, 2009 4:42 am    Post subject: Reply with quote

Update gcc to at least 4.1.2. 4.1.1 is buggy, and causes some problems with kernel compilation. Read the Gentoo Gcc Upgrade Guide for details on how to do this.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 5:12 am    Post subject: Reply with quote

gcc failed :(

emerge --info below:

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.17-gentoo-r7-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-glibc2.0
Timestamp of tree: Tue, 11 Aug 2009 20:00:02 +0000
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.3-r1, 2.5.4-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 bluetooth branding bzip2 cairo cdr cli cracklib crypt dbus dri dvd dvdr eds emboss encode esd evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv imap ipv6 isdnlog jpeg kde ldap libnotify mad maildir mhash mikmod mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf pdflib perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg svnserve sysfs tcpd tiff truetype unicode usb vhosts vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 5:17 am    Post subject: Reply with quote

gcc error was:

>>> Messages generated by process 21099 on 2009-08-11 23:55:28 CDT for package sys-devel/gcc-4.3.2-r3:

ERROR: install

ERROR: sys-devel/gcc-4.3.2-r3 failed.
Call stack:
ebuild.sh, line 49: Called src_install
environment, line 4820: Called toolchain_src_install
environment, line 5346: Called gcc-compiler_src_install
environment, line 2450: Called die
The specific snippet of code:
S=${WORKDIR}/build emake -j1 DESTDIR="${D}" install || die;
The die message:
(no error message)
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 5:23 am    Post subject: Reply with quote

That may be a blessing in disguise. Look here for important information. Could be that 4.1.1 can't build a 4.3.2 - not sure.

In the meantime I'm looking at your emerge --info.

BTW were you emerging gcc only or emerge -e system :?:

:)
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Wed Aug 12, 2009 5:39 am    Post subject: Reply with quote

We're going to need more than that. All that message does is let you know that something went wrong. What went wrong is contained after the first appearance of the word "error". That will be the error we need to see.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 5:43 am    Post subject: Reply with quote

gcc only



I take it that this is what I'm suppose to be doing! :)

# emerge -uav gcc

(Please substitute "i686-pc-linux-gnu-3.4.5" with the GCC
version and CHOST settings you've upgraded to:)

# gcc-config i686-pc-linux-gnu-4.3.2
# source /etc/profile

# /usr/share/gcc-data/$i686-pc-linux-gnu/gcc-4.3.2/fix_libtool_files.sh 4.3.2

# emerge --oneshot -av libtool
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 5:45 am    Post subject: Reply with quote

Well, I would do (emerge --sync if you have not done so today)
Code:
emerge -e system


Lets see how that goes.

Please post emerge --info
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Aug 12, 2009 5:54 am    Post subject: Reply with quote

What is dev-util/subversion-1.4.6 used for? It causing a problem because it's masked. It may not be needed anymore.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 5:59 am    Post subject: Reply with quote

Code:
# eix subversion
[I] dev-util/subversion
     Available versions:  [M]~*1.5.6!t [M]1.6.3 [M](~)1.6.3-r10 1.6.4 (~)1.6.4-r10 {apache2 bash-completion berkdb ctypes-python debug doc dso elibc_FreeBSD emacs extras gnome-keyring java kde nls perl python ruby sasl test vim-syntax webdav-neon webdav-serf}
     Installed versions:  1.6.4-r10(08:02:43 08/10/09)(bash-completion berkdb dso java kde nls perl python webdav-neon -apache2 -ctypes-python -debug -doc -elibc_FreeBSD -emacs -extras -gnome-keyring -ruby -sasl -test -vim-syntax -webdav-serf)
     Homepage:            http://subversion.tigris.org/
     Description:         Advanced version control system
You may not need it unless you know that you need it. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum