Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel compilation problem
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
McGruff
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2004
Posts: 148

PostPosted: Tue Aug 04, 2009 9:16 pm    Post subject: kernel compilation problem Reply with quote

Hi

I've got a problem trying to build a new rt-sources kernel (2.6.29.2-rt11) but don't really have a clue what to do next.

Code:

$ make && make modules_install
  ...
  ...
  ...
  ...
  LD      arch/x86/vdso/built-in.o
  CC      kernel/sched.o
  CC      kernel/fork.o
cc1: warnings being treated as errors
kernel/fork.c:1826: error: 'takeover_delayed_drop' defined but not used
make[1]: *** [kernel/fork.o] Error 1
make: *** [kernel] Error 2
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Tue Aug 04, 2009 11:48 pm    Post subject: Reply with quote

Quote:
cc1: warnings being treated as errors


that seems like a strange choice.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
McGruff
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2004
Posts: 148

PostPosted: Wed Aug 05, 2009 1:29 am    Post subject: Reply with quote

Something I need to change or something chosen by the ebuild?
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 Aug 05, 2009 1:44 am    Post subject: Reply with quote

erik258 wrote:
Quote:
cc1: warnings being treated as errors


that seems like a strange choice.


To me, the kernel itself seems a strange choice

It doesn't exactly inspire heaps of confidence when I look at an ebuild and see things commented out rather than removed

When code is commented out, I assume the developer isn't completely sure of the change they're making, and are afraid of removing the code completely because they don't know what doing so might break, and they don't want to forget in case it turns out they needed it.

Especially with kernel sources, ESPECIALLY with something like an ebuild, where if you know the proper syntax, there is no reason to have items commented out instead of removed:

http://gpo.zugaina.org/AJAX/Ebuild/92711/View
Code:

# ==========================================================================
# This ebuild come from pro-audio repository. Zugaina.org only host a copy.
# For more info go to http://gentoo.zugaina.org/
# ************************ General Portage Overlay ************************
# ==========================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

K_PREPATCHED="yes"
UNIPATCH_STRICTORDER="yes"

ETYPE="sources"
inherit kernel-2 eutils fetch-tools reiser4-patch patcher
detect_version
#get_realtime_patch_url
K_NOSETEXTRAVERSION="don't_set_it"

#FBSPLASH="fbcondecor-0.9.4_for_2.6.26-rt.patch"
RT_PATCH="patch-${KV}.bz2"

RESTRICT="nomirror"
DESCRIPTION="Realtimne Preemption patched low latency Linux kernel"
SRC_URI="${KERNEL_URI}
http://www.kernel.org/pub/linux/kernel/projects/rt/older/${RT_PATCH}"
#fbcondecor? ( http://proaudio.tuxfamily.org/patches/${FBSPLASH} )"
#http://download.tuxfamily.org/proaudio/realtime-patches/${RT_PATCH}

KEYWORDS="~amd64 ~x86"
IUSE=""
#"fbcondecor"

#pkg_setup(){
#   einfo "Additional patches for $PN can be enabled with following USE-flags:"
#   echo
#   einfo "fbcondecor - Add support for fbcondecor framebuffer splash"
#   echo
#   sleep 3
#}

src_unpack(){
   kernel-2_src_unpack

   epatch "${DISTDIR}/${RT_PATCH}"

   # fix sandbox_problems
   epatch "${FILESDIR}/build-id-sandbox-violation.patch"

   # Spock's stuff
#   use fbcondecor && epatch "${DISTDIR}/${FBSPLASH}"
   
   # hotfix http://article.gmane.org/gmane.linux.audio.users/52475
#   epatch "${FILESDIR}/${PN}-2.6.26_fix_midi.patch"

}

K_EXTRAEINFO="This kernel is not supported by Gentoo If you have any issues, try
a matching vanilla-sources ebuild -- if the problem persists there, please file
a bug at http://bugme.osdl.org. If the problem only occurs with rt-sources then
please contact the -rt mailing list: http://www.mail-archive.com/linux-rt-users@vger.kernel.org/ .
Recommended other packages: sys-process/rtirq and sys-apps/das_watchdog"


They may very well be brilliant coders, so I don't want to judge them completely for this - but again, it doesn't inspire heaps of confidence to see things left over in such a sloppy fashion.

2.6.26 is old enough - in the time between .26 and now, they SHOULD have an idea on whether or not what they have commented out is safe to remove from the ebuild.

my two cents
Back to top
View user's profile Send private message
McGruff
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2004
Posts: 148

PostPosted: Wed Aug 05, 2009 2:14 am    Post subject: Reply with quote

cach0rr0 wrote:
To me, the kernel itself seems a strange choice


The rt-sources are pretty much essential for low-latency audio: jack, ardour, hydrogen, rosegarden et al. Maybe I should stick with 2.6.26 for the time being though.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Aug 05, 2009 3:20 am    Post subject: Reply with quote

why don't you grab a patch here:

http://www.kernel.org/pub/linux/kernel/projects/rt/

and a matching kernel here:

http://www.kernel.org/pub/linux/kernel/v2.6/

and follow the directions here:

http://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO

to build your own vanilla realtime kernel?
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
McGruff
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2004
Posts: 148

PostPosted: Wed Aug 05, 2009 1:09 pm    Post subject: Reply with quote

Yeah thanks erik. I'd like to do it all in portage if possible but it's good to have another option. Looks like I should maybe take this to the pro-audio mailing list instead. Thanks everyone for your help.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Aug 05, 2009 5:56 pm    Post subject: Reply with quote

understood - although, I must point out that in the case of linux sources, portage does very little (kernels don't have library dependencies the same way user end software does, and since its not being built the emerge really just downloads the files and uncompresses them into /usr/src).

Anyway, good luck. I'm glad I took the time to familiarize myself with linux realtime options.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43006
Location: 56N 3W

PostPosted: Wed Aug 05, 2009 7:05 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software.

Its an unsupported kernel
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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