Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to compile linux-2.4.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Wed Jan 20, 2010 10:09 am    Post subject: unable to compile linux-2.4.1 Reply with quote

hi,

i have to compile the linux kernel in version 2.4.1 for a special test.
unfortunately i am unable to do that.
i tried with compiler versions: 3.2.3, 3.4.6. gcc-3.1.1-r2 does not compile either.
make bzImage of the kernel fails with
Code:
timer.c:35 conflicting types for `xtime'
/usr/src/linux/include/linux/sched.h:537: previous declaration of `xtime'

could anybody please try the same, so that i know whether it is the fault of my machine or not..?
thanks in advance.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Jan 20, 2010 11:16 am    Post subject: Reply with quote

what build of glibc?

dont have a system i can try this on at the moment, but that's the first thing that jumped to mind
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Wed Jan 20, 2010 11:42 am    Post subject: Reply with quote

2.9.
do you think that's too new ?
i'll try and emerge 2.5.
EDIT: that does not work.
i'll have to think about what i should do.
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7694
Location: Pelotas, BR

PostPosted: Wed Jan 20, 2010 1:20 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Wed Jan 20, 2010 1:42 pm    Post subject: Reply with quote

Make sure you're using a glibc from that period as well, some functions may be moved from one to the other over time. A modern one may conflict.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Wed Jan 20, 2010 10:50 pm    Post subject: Reply with quote

Maybe if you boot this ancient livecd in a vm, you can compile kernel 2.4.1:
http://distrowatch.com/table.php?distribution=superrescue

It's still downloadable, and includes kernel 2.4.18pre7 and gcc 2.96.
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Thu Jan 21, 2010 9:53 am    Post subject: Reply with quote

StringCheesian,

thanks for the hint, i'll try that.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Thu Jan 21, 2010 12:44 pm    Post subject: Reply with quote

since when does kernel rely on glibc to build correcly? isn't that the other way around?

i'd say it's an incorrect compiler version. or maybe system kernel headers might have some negative influence

i'd risk trying some old distro with old toolchain, though. or trying to make a separate toolchain, cross-linux-from-scratch style to make sure.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Thu Jan 21, 2010 9:35 pm    Post subject: Reply with quote

Make sure you're using the latest 2.4 (2.4.37.7) - they generally include compile fixes for gcc4 or other modern toolkit components - if not post your errors here and possibly file a bug report on kernel.org bugzilla, i'm sure you could rectify it with a modern toolkit.

There's a possibility people on here, or myself, could patch it up too :P

If you absolutely NEED 2.4.1 i could look at that too, but i'd fix it for a gcc 4 compiler since i don't have gcc3 installed. - give me your .config if you want me to take a look.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
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