Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"emerge linux26-headers" failure
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Nairou
n00b
n00b


Joined: 05 Jun 2004
Posts: 25

PostPosted: Tue Jan 11, 2005 8:51 am    Post subject: "emerge linux26-headers" failure Reply with quote

Alright, I'm in the process of following the Stage1 on Stage3 tutorial for a fresh Gentoo 2004.3 install. I get up to section 7 where I'm about to build the toolchain, and I get to here:

Code:
env-update
source /etc/profile
emerge -C linux-headers
emerge linux26-headers


The last command downloads the linux26-headers-2.6.8.1-r2 package and extracts it, and then patches it, spitting out many lines of the following message:

Code:
* PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass


But as soon as it goes to build it, it quits with this error:

Code:
 HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


Surely this is something simple, but a forum search didn't turn up anything. I've followed the tutorial up until this point, what could I possibly be missing?
Back to top
View user's profile Send private message
dacha_san
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2004
Posts: 82

PostPosted: Tue Jan 11, 2005 9:00 am    Post subject: Re: "emerge linux26-headers" failure Reply with quote

Nairou wrote:
Alright, I'm in the process of following the Stage1 on Stage3 tutorial for a fresh Gentoo 2004.3 install. I get up to section 7 where I'm about to build the toolchain, and I get to here:

Code:
env-update
source /etc/profile
emerge -C linux-headers
emerge linux26-headers


The last command downloads the linux26-headers-2.6.8.1-r2 package and extracts it, and then patches it, spitting out many lines of the following message:

Code:
* PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass


But as soon as it goes to build it, it quits with this error:

Code:
 HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


Surely this is something simple, but a forum search didn't turn up anything. I've followed the tutorial up until this point, what could I possibly be missing?


Before this point you should find in the handbook line starting with "source /ets....". I think this is what you might missed so far. Greetings
Back to top
View user's profile Send private message
Nairou
n00b
n00b


Joined: 05 Jun 2004
Posts: 25

PostPosted: Tue Jan 11, 2005 9:12 am    Post subject: Re: "emerge linux26-headers" failure Reply with quote

dacha_san wrote:
Before this point you should find in the handbook line starting with "source /ets....". I think this is what you might missed so far. Greetings


Other than the one I posted in that initial block of commands? I looked back over the tutorial and the only other occurance of the "source /etc/profile" line is directly after I "chroot" to the new drive, which I did. I even tried doing "env-update && source /etc/profile" again but it had no effect. Are you referring to something else?
Back to top
View user's profile Send private message
Mayhem
n00b
n00b


Joined: 24 May 2003
Posts: 70
Location: Spijkenisse, the Netherlands

PostPosted: Tue Jan 11, 2005 9:14 am    Post subject: Reply with quote

I have the same problem. Only for me, this didn't occur during initial setup but during an upgrade from 2.4 to 2.6 headers.
_________________
I laugh in the face of danger... Then i hide until it goes away.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 11, 2005 9:19 am    Post subject: Re: "emerge linux26-headers" failure Reply with quote

Nairou wrote:
Alright, I'm in the process of following the Stage1 on Stage3 tutorial for a fresh Gentoo 2004.3 install. I get up to section 7 where I'm about to build the toolchain, and I get to here:...

i've never seen this problem before. could i have a peek at your "emerge info"?
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Tue Jan 11, 2005 9:50 am    Post subject: Reply with quote

Now that's interesting! I was following that same guide a few hours ago, completed the whole toolchain build without problems, and later arn into different ones. I decided to start from scratch, and suddenly - the same problem happened to me. I think somebody out there must have changed something concerning the ebuild of linux-headers literally minutes ago...
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 11, 2005 9:52 am    Post subject: Reply with quote

well, its possible that something has changed in the ebuild, but before going down that path i'd like to see the contents of your emerge info. if you cannot cut and paste the screen output, you might want to try piping it to a text file on your floppy drive.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Mayhem
n00b
n00b


Joined: 24 May 2003
Posts: 70
Location: Spijkenisse, the Netherlands

PostPosted: Tue Jan 11, 2005 10:19 am    Post subject: Reply with quote

Behold my emerge info :p

Code:

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r10 i686)
=================================================================
System uname: 2.6.9-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 1.90GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers: 
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://gentoo.tiscali.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl acpi alsa apm arts audiofile avi berkdb bitmap-fonts bonobo cdr crypt cups directfb dvd dvdr encode esd fam flac foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg kde libwww mad mikmod mmx motif mozilla moznoxft mpeg ncurses nls nocardbus offensive oggvorbis opengl oss pam pda pdflib perl pic png python qt quicktime readline samba scanner sdl slang spell ssc sse ssl svga tcltk tcpd tiff truetype xml2 xmms xv zlib"



This reminds me i REALLY need to clean up those USE flags...
_________________
I laugh in the face of danger... Then i hide until it goes away.
Back to top
View user's profile Send private message
olsberg
n00b
n00b


Joined: 24 Sep 2003
Posts: 19
Location: Sweden

PostPosted: Tue Jan 11, 2005 10:21 am    Post subject: Reply with quote

No succeed here. I'm updating linux26-headers-2.6.8.1-r1 to linux26-headers-2.6.8.1-r2 and the compile quits with the same error message as above.

I also tried emerge sync to reflect any possible changes, but that didn't solve the problem.

Anyone knows what is going on?
Back to top
View user's profile Send private message
olsberg
n00b
n00b


Joined: 24 Sep 2003
Posts: 19
Location: Sweden

PostPosted: Tue Jan 11, 2005 10:28 am    Post subject: Reply with quote

FWIW:
Quote:
Gentoo Base System version 1.4.16
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 Intel(R) Pentium(R) M processor 1600MHz
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers: sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 X acl acpi alsa apache2 arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode esd fam fbcon flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jack jpeg libwww mad mikmod motif mozilla mpeg msql mysql nas ncurses nls nptl oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl svg svga tcpd tiff truetype unicode xml2 xmms xv xvid zlib"
Back to top
View user's profile Send private message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Tue Jan 11, 2005 11:21 am    Post subject: Tip: Styles can be applied quickly to selected text. Reply with quote

I have no clue what is wrong with r2, but you can revert to the previous version by using

emerge =linux26-headers-2.6.8.1

It worked for me. I actually noticed there's r3, but it's only for AMD64.

EDIT: I'm a moron. :)


Last edited by Guinpen on Tue Jan 11, 2005 4:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
DntKnwHw
n00b
n00b


Joined: 14 Aug 2003
Posts: 74
Location: Philippines

PostPosted: Tue Jan 11, 2005 11:26 am    Post subject: Reply with quote

i have the same problem, regarding the r2 ebuild, tried the r3 but wont let me, so i tried the first ebuild which is 2.6.8.1 ebuild and works, viewing the changelog now seeing the difference between r2 and r1. hope somebody can get the r3 stable soon,
Back to top
View user's profile Send private message
gdi2k
Tux's lil' helper
Tux's lil' helper


Joined: 15 Oct 2004
Posts: 88
Location: Dubai

PostPosted: Tue Jan 11, 2005 12:32 pm    Post subject: Same problem Reply with quote

I'm having exactly the same problem as described above, trying to emerge -u world. It wanted to upgrade linux26-headers from 2.6.8.1-r1 to r2.

However, yesterday I updated another machine, and the upgrade to r2 went fine (the failed machine is an Athlon, the machine on which it succeeded is K8).

If you need any more info, let me know.

GDI
_________________________________________
[url=http://www.roesch-swiss.ch/en/detergent/L-neu!LinuxVollwaschmittel.htm]"Switch your washing machine system to Linux!"[/url]
Back to top
View user's profile Send private message
Mayhem
n00b
n00b


Joined: 24 May 2003
Posts: 70
Location: Spijkenisse, the Netherlands

PostPosted: Tue Jan 11, 2005 2:03 pm    Post subject: Reply with quote

Got stuff working using 2.6.8.1 headers. That's fine for me for now, but someone should probably file a bug report.
_________________
I laugh in the face of danger... Then i hide until it goes away.
Back to top
View user's profile Send private message
lynxnyl
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 253
Location: Ljubljana, Slovenija

PostPosted: Tue Jan 11, 2005 2:19 pm    Post subject: Reply with quote

Same here. Same revert.
Back to top
View user's profile Send private message
chip
n00b
n00b


Joined: 03 Aug 2002
Posts: 31
Location: Winston-Salem NC

PostPosted: Tue Jan 11, 2005 4:18 pm    Post subject: me too... Reply with quote

I get a different error.

HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -d arch/x86/Kconfig
can't find file arch/x86/Kconfig
make[1]: *** [defconfig] Error 1
make: *** [defconfig] Error 2

!!! ERROR: sys-kernel/linux26-headers-2.6.8.1-r2 failed.


arch/x86 ???? is this right????

i have an arch/x86_64 dir, but I'm i386.
Back to top
View user's profile Send private message
dang
Developer
Developer


Joined: 27 Oct 2002
Posts: 29

PostPosted: Tue Jan 11, 2005 4:27 pm    Post subject: Reply with quote

Same error here. I've upgraded several systems with various processors to -r2 over the past few days, and today is the first error on this.

I've copied the old -r2 from another machine over the one from today, and it emerges fine. What's the deal with stable ebuilds changing? Is that supposed to happen without a version bump?
Back to top
View user's profile Send private message
Nairou
n00b
n00b


Joined: 05 Jun 2004
Posts: 25

PostPosted: Tue Jan 11, 2005 4:35 pm    Post subject: Reply with quote

And my emerge info as well, essentially the same as previous posts (the info reports my CPU as a AthlonXP, when it is really only an Athlon Tbird):

Code:
Gentoo Base System version 1.4.16
Portage 2.0.51-r2 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) XP 1500+
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.binarycompass.org ftp://chod.cwru.edu/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl acpi apm arts avi berkdb bitmap-fonts crypt cups encode foomaticdb fortran gdbm gif gpm gtk2 hal ide ipv6 ithreads jpeg ldap libwww mad mikmod motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png pthreads python quicktime readline samba sdl spell ssl svga tcpd truetype voodoo3 xml2 xv zlib"


I guess I'll go ahead with r1 like everyone else here, and hope they fix it in the future.

As a side note, I'm curious Bob P how you came up with this list of USE flags? There are several, such as hal and ide, that aren't listed in /usr/portage/profiles/use.desc.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 11, 2005 6:02 pm    Post subject: Reply with quote

Mayhem wrote:
Got stuff working using 2.6.8.1 headers. That's fine for me for now, but someone should probably file a bug report.


sieze the initiative!

if a new ebuild is borking on installs, and all of you have had problems with it, you all need to go file reports on bugzilla. when you file your report, provide a detailed description of what borked the install, and what reversion steps fixed it. optimally, the first person to report the install should post a link to it in this thread, and everyone else should post their reports to the same bug.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 11, 2005 6:11 pm    Post subject: Reply with quote

Gents -- i think that you're all falling into a trap that many new Gentoo users fall into -- it is NOT necessary to continually update toolkit components when you have a stable, functional toolkit! Once you've installed your linux headers, there's really no reason to abandon them just because another version has come out. If you are not having problems related to the revision, then do not upgrade!

You've all gained first-hand experience now: when a toolkit is stable, stick with the stable version. If you chase every incremental revision that comes along you will accomplish three things:

1. you will spend a lot of time in the upgrade cycle
2. you will risk borking your system whenever a bad ebuild comes out
3. the stability of your system may only have a lifespan that lasts as long as the period before you upgrade.

Experienced gentoo users don't upgrade as fervidly as n00bs do. IME your system will be much more reliable if you resist the temptation to have bragging rights about having the latest and greatest Gentoo setup on your block.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Nairou
n00b
n00b


Joined: 05 Jun 2004
Posts: 25

PostPosted: Tue Jan 11, 2005 6:23 pm    Post subject: Reply with quote

After another crash, I've restarted the installation from scratch today and again tried just letting it emerge linux26-headers on its own. Surprisingly, r2 is now working, it compiled fine, so I guess they fixed whatever the problem was.
Back to top
View user's profile Send private message
chip
n00b
n00b


Joined: 03 Aug 2002
Posts: 31
Location: Winston-Salem NC

PostPosted: Tue Jan 11, 2005 6:39 pm    Post subject: Reply with quote

????
This thread was started by someone installing a new system....

when I do an emerge -p world I get:

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild U ] sys-kernel/linux26-headers-2.6.8.1-r2 [2.6.8.1-r1]
[ebuild U ] sys-apps/procps-3.2.4 [3.2.3-r1]
[ebuild U ] net-analyzer/snort-2.3.0_rc2 [2.2.0]
[ebuild U ] sys-apps/ed-0.2-r6 [0.2-r4]

the linux26-headers-2.6.8.1-r2 borks for me also, see above.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 11, 2005 6:44 pm    Post subject: Reply with quote

Nairou wrote:
After another crash, I've restarted the installation from scratch today and again tried just letting it emerge linux26-headers on its own. Surprisingly, r2 is now working, it compiled fine, so I guess they fixed whatever the problem was.

its hard to imagine that there's some little gnome hiding in the portage tree tampering with the ebuilds. if i had to put money on it, i'd bet that something changed on your system, and we haven't identified it yet. what's the status on your bug report? did you decide to file it or not?
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Nairou
n00b
n00b


Joined: 05 Jun 2004
Posts: 25

PostPosted: Tue Jan 11, 2005 6:48 pm    Post subject: Reply with quote

Bob P wrote:
its hard to imagine that there's some little gnome hiding in the portage tree tampering with the ebuilds. if i had to put money on it, i'd bet that something changed on your system, and we haven't identified it yet.


I agree, though as many times as I've had to restart this install, you'd think I would have it down by now. :lol: Either way, I'm happy now, the toolchain compile is continuing (just gotta cross my fingers that it finishes this time).
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 11, 2005 7:00 pm    Post subject: Reply with quote

chip wrote:
????
This thread was started by someone installing a new system....

when I do an emerge -p world I get:

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild U ] sys-kernel/linux26-headers-2.6.8.1-r2 [2.6.8.1-r1]
[ebuild U ] sys-apps/procps-3.2.4 [3.2.3-r1]
[ebuild U ] net-analyzer/snort-2.3.0_rc2 [2.2.0]
[ebuild U ] sys-apps/ed-0.2-r6 [0.2-r4]

the linux26-headers-2.6.8.1-r2 borks for me also, see above.

chip, its hard to tell what's going on based on the limited information you've provided. if you have a portage related problem, its definitely a help if you post the output from "emerge info" so that someone trying to help you understands the context of your problem.

my personal recommendation is to avoid using emerge commands that blindly upgrade your world when it involves upgrading isolated components of your toolkit. you really need to upgrade all of your toolkit components in a well-planned fashion to avoid problems. for example, after emerging linux headers, you absolutely must recompile glibc or your system will bork on you.

or you could take the robmoss approach -- whenever you change a major toolkit component, you must follow the emerge of that component with
Code:
emerge -e system && emerge -e system && emerge -e world && emerge -e world

_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
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  Next
Page 1 of 2

 
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