Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel - ERROR: Failed to compile.... (resolved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
etrek
n00b
n00b


Joined: 23 Jun 2002
Posts: 58

PostPosted: Mon Aug 16, 2004 1:12 pm    Post subject: Genkernel - ERROR: Failed to compile.... (resolved) Reply with quote

I tried searching the forums before posting but not much luck (to be fair, my searching skills may not be all that good). I'm trying to compile the 2.6.8 kernel and I keep getting errors. I emerged udev thinking that might be the issue but still no go. Should I set a USE flag or something? I am very much a n00b in these matters so AIA.

From the genkernel log here's what I get:


Code:


.
.
.
.
../klibc/include/stdio.h:67: warning: return type defaults to `int'
../klibc/include/stdio.h: In function `ftell':
../klibc/include/stdio.h:68: error: syntax error before "lseek"
make[2]: *** [snprintf.o] Error 1
make[2]: Leaving directory `/var/tmp/genkernel/udev-030/klibc/klibc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/genkernel/udev-030/klibc'

make: *** [/var/tmp/genkernel/udev-030/klibc/klibc/crt0.o] Error 2
* Gentoo Linux Genkernel; Version 3.0.2e

* ERROR: Failed to compile the "USE_KLIBC=true USE_LOG=false DEBUG=false udevdir=/dev all etc/udev/udev.conf" target...
.
.
.




Last edited by etrek on Mon Aug 16, 2004 11:15 pm; edited 3 times in total
Back to top
View user's profile Send private message
babab00m
n00b
n00b


Joined: 10 May 2004
Posts: 12

PostPosted: Mon Aug 16, 2004 3:02 pm    Post subject: Reply with quote

same problem here
Back to top
View user's profile Send private message
etrek
n00b
n00b


Joined: 23 Jun 2002
Posts: 58

PostPosted: Mon Aug 16, 2004 11:14 pm    Post subject: Got the answer! Reply with quote

I finally got the answer in the bugtraq system. Of course as a n00b I searched everywhere but there - I did mention earlier my searching ability was suspect! I've documented this in case others share my deficiency!

Here's the bugtraq entry:
Quote:
https://bugs.gentoo.org/show_bug.cgi?id=58686


Here's the relevent patch info (that worked for me anyway):
Quote:
https://bugs.gentoo.org/attachment.cgi?id=36416&action=view


All I did was edit the "/usr/share/genkernel/gen_compile.sh" file, skipped down to the lines indicated in the patch (see link above) and simply commented out (using a "#") the line indicated by the "-" and added the line indicated by the "+" (excluding the "+" of course). I then did a

Code:
genkernel --install all


and all was well. YMMV of course. I am still inexperienced with this.

Note: It is interesting that the "patch" file in this case was just a documentation of the fix. At first I was a confused expecting it to be something I executed or compiled in... It appears I still have a long long way to go..


Cheers,


E.
Back to top
View user's profile Send private message
OneOfMany
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 108
Location: Portland, OR USA

PostPosted: Tue Aug 17, 2004 2:58 am    Post subject: Reply with quote

Only differences I see between the lines are the double versus single quotes (doubt that matters) and the addition of...
Code:
KERNEL_DIR=$KERNEL_DIR

Inside the quotes. I'm gonna test if just changing that fixes it in a second.

<edit>
Looks like you need to use double quotes if you're using one of the environment variables (the things preceeded by a dollar sign). So that probably is needed too.
</edit>
Back to top
View user's profile Send private message
etrek
n00b
n00b


Joined: 23 Jun 2002
Posts: 58

PostPosted: Tue Aug 17, 2004 2:11 pm    Post subject: Line diffs Reply with quote

I'm not so sure - I think single and double quotes mean subtly different things.

Anyhow for me the change listed in the patch worked as advertised.

I'd still recommend commenting out the existing line no matter how trivial. In my experience simple mods like that can trip you up later on especially if you need to restore.

As a side note (and quite possibly a major overstatement of the obvious) I just realized the +/- nomenclature of the patch file is a CSV/Subversion style DIFF report. Go figure..

Cheers.

E.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri Sep 10, 2004 3:59 pm    Post subject: Reply with quote

I have the same problem now with genkernel Version 3.0.2f and gentoo-dev-sources 2.6.8-r3. I am not using udev. I never emerged it but genkernel is failing while compiling udev. I see that genkernel 3.0.2f is already patched so that will not fix my problem. Any ideas. The problem is on a Dell centrino laptop as my Athlon desktops worked fine...
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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