Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Error when building kernel.
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
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 461
Location: India

PostPosted: Tue Dec 27, 2016 5:13 pm    Post subject: [SOLVED] Error when building kernel. Reply with quote

Hi Experts, while running 'make -j8 && make -j8 modules_install', I am getting the below error :-

Quote:
(chroot) livecd linux # make -j8 && make -j8 modules_install
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (GENTOO_LINUX_UDEV) selects UNIX which has unmet direct dependencies (NET)
warning: (GENTOO_LINUX_PORTAGE && GENTOO_LINUX_INIT_SYSTEMD) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
warning: (GENTOO_LINUX_UDEV) selects UNIX which has unmet direct dependencies (NET)
warning: (GENTOO_LINUX_PORTAGE && GENTOO_LINUX_INIT_SYSTEMD) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
SYSTBL arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/sortextable
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CHK include/generated/timeconst.h
CC kernel/bounds.s
CHK include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/uaccess.h:4:0,
from include/linux/crypto.h:26,
from arch/x86/kernel/asm-offsets.c:8:
include/linux/sched.h:524:2: error: unknown type name 'cputime_t'
cputime_t ac_utime, ac_stime;
^
include/linux/sched.h:529:2: error: unknown type name 'cputime_t'
cputime_t expires;
^
include/linux/sched.h:530:2: error: unknown type name 'cputime_t'
cputime_t incr;
^
include/linux/sched.h:546:2: error: unknown type name 'cputime_t'
cputime_t utime;
^
include/linux/sched.h:547:2: error: unknown type name 'cputime_t'
cputime_t stime;
^
include/linux/sched.h:571:2: error: unknown type name 'cputime_t'
cputime_t utime;
^
include/linux/sched.h:572:2: error: unknown type name 'cputime_t'
cputime_t stime;
^
include/linux/sched.h:737:2: error: unknown type name 'cputime_t'
cputime_t utime, stime, cutime, cstime;
^
include/linux/sched.h:738:2: error: unknown type name 'cputime_t'
cputime_t gtime;
^
include/linux/sched.h:739:2: error: unknown type name 'cputime_t'
cputime_t cgtime;
^
include/linux/sched.h:1521:2: error: unknown type name 'cputime_t'
cputime_t utime, stime, utimescaled, stimescaled;
^
include/linux/sched.h:1522:2: error: unknown type name 'cputime_t'
cputime_t gtime;
^
include/linux/sched.h:2042:5: error: unknown type name 'cputime_t'
cputime_t *utime, cputime_t *stime)
^
include/linux/sched.h:2042:23: error: unknown type name 'cputime_t'
cputime_t *utime, cputime_t *stime)
^
include/linux/sched.h:2051:12: error: unknown type name 'cputime_t'
cputime_t *utimescaled,
^
include/linux/sched.h:2052:12: error: unknown type name 'cputime_t'
cputime_t *stimescaled)
^
include/linux/sched.h:2060:15: error: unknown type name 'cputime_t'
static inline cputime_t task_gtime(struct task_struct *t)
^
include/linux/sched.h:2065:58: error: unknown type name 'cputime_t'
extern void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
^
HOSTLD scripts/mod/modpost
include/linux/sched.h:2065:73: error: unknown type name 'cputime_t'
extern void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
^
include/linux/sched.h:2066:66: error: unknown type name 'cputime_t'
extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
^
include/linux/sched.h:2066:81: error: unknown type name 'cputime_t'
extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
^
Kbuild:80: recipe for target 'arch/x86/kernel/asm-offsets.s' failed
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
Makefile:1004: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2


I am completely out of idea as to which component is causing this. APpreciate all your help in fixing this.

Thanks in advance.


Last edited by manu_leo on Wed Dec 28, 2016 9:28 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7275
Location: almost Mile High in the USA

PostPosted: Tue Dec 27, 2016 5:21 pm    Post subject: Reply with quote

Which version of gentoo-sources do you have installed? And you are running on an x86 machine?

What did you use to config your kernel? Those warnings are a bit unsettling as it could cause (these) problems, or at least problems down the road.

What is your "emerge --info" ?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 461
Location: India

PostPosted: Wed Dec 28, 2016 9:27 am    Post subject: Reply with quote

I was able to get over this by re-formating the drives. Since it was a new setup, I thought re-doing it would be an easy option here and that works.

Thanks for all your help. Marking this as SOLVED.
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