Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot compile kernel[solved]
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
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sat Jul 19, 2014 10:19 am    Post subject: cannot compile kernel[solved] Reply with quote

I have restore gentoo from a tar backup(it was a hot backup if that makes any difference), the system boots fine but I cannot compile my kernel anymore
localhost linux # make menuconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:106:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

I though I'd try recompiling glibc:
* failed to configure glibc
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 3139: Called eblit-run 'src_compile'
* environment, line 910: Called eblit-glibc-src_compile
* src_compile.eblit, line 259: Called src_compile
* environment, line 3139: Called eblit-run 'src_compile'
* environment, line 910: Called eblit-glibc-src_compile
* src_compile.eblit, line 267: Called toolchain-glibc_src_compile
* src_compile.eblit, line 165: Called glibc_do_configure 'nptl'
* src_compile.eblit, line 113: Called die
* The specific snippet of code:
* "$@" || die "failed to configure glibc"
*


any help?

thanks


Last edited by Adel Ahmed on Sat Jul 19, 2014 2:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3691
Location: Hamburg

PostPosted: Sat Jul 19, 2014 10:27 am    Post subject: Reply with quote

its glibc related :
Code:
$ equery b /usr/include/sys/types.h
 * Searching for /usr/include/sys/types.h ...
sys-libs/glibc-2.17 (/usr/include/sys/types.h)
or:
Code:
$ equery b /usr/lib/bcc/include/sys/types.h
 * Searching for /usr/lib/bcc/include/sys/types.h ...
sys-devel/dev86-0.16.19 (/usr/lib/bcc/include/sys/types.h)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sat Jul 19, 2014 11:25 am    Post subject: Reply with quote

I can't recompile glibc though
should I try downloading the file manually from another system?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jul 19, 2014 2:03 pm    Post subject: Reply with quote

blakdeath,

horrible things will happen if you manage to downgrade glibc accidently.

If you have another box with the same glibc version, copy over the missing file.
If its more that one or two files, you will need a binary glibc for the same arch and the same version of glbc to fix it.
_________________
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
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sat Jul 19, 2014 2:32 pm    Post subject: Reply with quote

well the entire sys directory was missing so I copied it over and everything is working now
it's a flaw in my backup scrip(--exclude=sys/)
I'll work on that and deleted all my old backup images

thanks
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3691
Location: Hamburg

PostPosted: Sat Jul 19, 2014 2:49 pm    Post subject: Reply with quote

???
/sys is (like /proc and /run) a dir which is fullfilled during boot of the kernel
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sat Jul 19, 2014 2:55 pm    Post subject: Reply with quote

I was trying to exclude /sys from the image and /usr/include/sys got included by mistake
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3691
Location: Hamburg

PostPosted: Sat Jul 19, 2014 3:11 pm    Post subject: Reply with quote

Ick - yeah - IIRC, I made a similar mistake, now I Prepend a "/" in my exclude files to avoid such things
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Sat Nov 15, 2014 12:05 am    Post subject: Reply with quote

@tralf / @blakdeath,

Was hacking about and tar'd up a Gentoo install from laptop to fix my desktop install... Getting lots of weird errors. So it turns out all those guides telling me to use --exclude=sys are pretty dumb (if that string is just a path match)!! One actually said something along the lines of you don't need "/sys" just use "sys" blah, blah...

Thanks sorted out my compile errors! 8)

Robert
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
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