LinuxQuestions.org
Visit Jeremy's Blog.
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 02-09-2014, 02:29 PM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Compiling UM fails for 32 bit kernel, but works for 64 bit kernel


I'm trying to compile the UM kernel on my Ubuntu system. I'm running on 64 bit Ubuntu 13.10, and I've unselected 64 bit kernel and in the menuconfig of the kernel.

My system.

Code:
 
Linux cc 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
model name	: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz

In the kernel configuration, since the default didn't work, I had chosen Core 2/newer Xeon.


Compilation fails:

Code:
  CC      arch/x86/um/user-offsets.s
arch/x86/um/user-offsets.c:1:0: error: CPU you selected does not support x86-64 instruction set
 #include <stdio.h>
 ^
make[1]: *** [arch/x86/um/user-offsets.s] Error 1
make: *** [arch/x86/um/user-offsets.s] Error 2
Compiling 64 bit kernel works fine.

Last edited by gregorian; 02-10-2014 at 06:09 PM.
 
Old 02-10-2014, 01:14 AM   #2
ianbb01
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Rep: Reputation: 3
Quote:
Originally Posted by gregorian View Post
I'm trying to compile the UM kernel on my Ubuntu system. I'm running on 64 bit Ubuntu 13.10, and I've unselected 64 bit kernel and enabled ext2 file system in the menuconfig of the kernel.

My system.

Code:
uname -a 
Linux cc 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Compilation fails:

Code:
  CC      arch/x86/um/user-offsets.s
arch/x86/um/user-offsets.c:1:0: error: CPU you selected does not support x86-64 instruction set
 #include <stdio.h>
 ^
make[1]: *** [arch/x86/um/user-offsets.s] Error 1
make: *** [arch/x86/um/user-offsets.s] Error 2
Compiling 64 bit kernel works fine.
According to the error you still have x64 configs. You need to make sure that your configuration is valid for x86 build.
 
Old 02-10-2014, 10:32 AM   #3
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by ianbb01 View Post
According to the error you still have x64 configs. You need to make sure that your configuration is valid for x86 build.
I have been successfully able to compile this with the same configuration on other computers. It's just my computer that is failing, and I want to know why.
 
  


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
compiling 32 bit kernel on 64 bit machine ashraf.qadir Linux - Newbie 2 09-22-2009 06:16 AM
Compiling a 64-bit kernel, or ? polarbear20000 Sabayon 5 08-05-2009 08:45 PM
compiling 64 bit kernel in 32 bit linux MadnessASAP Linux - Hardware 6 05-04-2009 11:47 AM
compiling 64 bit kernel in 32 bit environment tytus Linux - Kernel 8 12-11-2008 10:24 AM
Compiling an AMD64 kernel from a 32-bit environment justinmc Linux - General 3 01-16-2005 06:47 PM

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

All times are GMT -5. The time now is 04:26 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