LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-28-2018, 08:01 PM   #1
Rocket18
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Rep: Reputation: Disabled
Linux 3.4.0 : recipe for target 'kernel/fork.o' failed


Hello all!

Trying to compile linux kernel 3.4.0 for an older phone on my Ubuntu 16.04 machine.

Getting the error

In file included from kernel/fork.c:79:0:
include/trace/events/sched.h:249:2: error: #error "Unsupported NR_CPUS for lb tracepoint."
#error "Unsupported NR_CPUS for lb tracepoint."
^

Don't know whats going wrong so any help would be appreciated!
 
Old 07-29-2018, 04:30 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
NR_CPUS is most probably the number of CPUs, and probably you need to set it (configure it), because the current value is unsupported.

Last edited by pan64; 07-29-2018 at 04:47 AM.
 
1 members found this post helpful.
Old 07-29-2018, 02:19 PM   #3
Rocket18
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
NR_CPUS is most probably the number of CPUs, and probably you need to set it (configure it), because the current value is unsupported.
Thanks! That solved my problem, unfortunatly many more are behind it!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] jhalfs recipe for target 'mk_LUSER' failed percy_vere_uk Linux From Scratch 3 07-04-2017 08:28 AM
Installation (Linux) RISCV GNU Toolchain error: C compiler cannot create executables, recipe for target 'configure-target-libgomp' failed riscv Linux - Newbie 2 03-23-2017 08:36 AM
Recipe for target opncls.lo failed aqua123 Linux From Scratch 1 07-22-2014 09:20 PM
[SOLVED] otcl-1.14 make failed [recipe for target `libotcl.a' failed] for ns-allinone-2.35-RC8 pratikjoshi Linux - Newbie 4 08-23-2013 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration