LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 12-17-2005, 06:23 PM   #1
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 32
RTAI kernel problem


I am trying to install a LFS system with RTAI, I have built the Linux environment but am having trouble compiling the kernel. After patching the vanilla kernel and configuring it it refuses to build the kernel and throw up an assembely error message in procces.c about invalid opperand for instruction mov. I can however compile a normal vanilla kernel. What do i need to do to compile the RTAI kernel?
 
Old 12-23-2005, 07:43 PM   #2
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
What part of the book are you at?

Quote:
assembely error message in procces.c about invalid opperand for instruction mov
It sounds like it has something to do with your linux-libc-headers.
Did you install them?
 
Old 12-24-2005, 05:17 AM   #3
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 32
I am at the chapter 8 of the LFS manual and i did install the linux-libc headers
 
Old 12-25-2005, 12:30 AM   #4
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
The problem may lie in Linux-libc-headers or GCC the site said it was tested with GCC 3.2.x.
(I doubt it's Binutils, Glibc, or the patch it self but I guess it's possible)

What cpu do you have?
(that might have something to do with it)

It would help If you copied the *exact error message and posted it.
 
Old 12-26-2005, 02:59 PM   #5
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 32
Unfortunately the computer is a work computer which i won't be sble to access till after the new year. I can tell you the cpu is a coppermine p3. Also it is able to compile the vanilla linux kernel without any problems. It was only after the adeos hal patch was applied that I had trouble compiling the kernel.
 
Old 12-26-2005, 07:31 PM   #6
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Another Question:
What version of the LFS-Book are you using?

Did you deviate from it at all? *Include anything that you did for RTAI.
 
Old 12-27-2005, 01:47 PM   #7
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 32
I am using the latest version of the Linux from Scratch Book: 6.0 and followed the instructions from the website exactly as it said so. The only alterations I made was at the end where I installed Comedi, Xorg and efltk and applied the Adeos hal patch to the vanilla kernel.
 
Old 01-04-2006, 06:14 AM   #8
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 32
Okay the error message im getting from the compilation is

CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
CHK usr/initramfs_list
CC arch/i386/kernel/process.o
{standard input}: Assembler messages:
{standard input}:880: Error: suffix or operands invalid for `mov'
{standard input}:881: Error: suffix or operands invalid for `mov'
{standard input}:1087: Error: suffix or operands invalid for `mov'
{standard input}:1088: Error: suffix or operands invalid for `mov'
{standard input}:1155: Error: suffix or operands invalid for `mov'
{standard input}:1156: Error: suffix or operands invalid for `mov'
{standard input}:1235: Error: suffix or operands invalid for `mov'
{standard input}:1236: Error: suffix or operands invalid for `mov'
{standard input}:1312: Error: suffix or operands invalid for `mov'
{standard input}:1324: Error: suffix or operands invalid for `mov'
make[1]: *** [arch/i386/kernel/process.o] Error 1
make: *** [arch/i386/kernel] Error 2

Im not sure if that is of any help
 
Old 01-04-2006, 08:42 PM   #9
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
The linux-2.6-seg-5.patch seemed to help this person: Compilation errors 2.6.9 in process.c

Let me know if it helps.
 
Old 01-06-2006, 05:44 AM   #10
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 32
Okay that fixed that problem, but alas it still won't compile. It now spits out:

CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
CHK usr/initramfs_list
CC adeos/x86.o
{standard input}: Assembler messages:
{standard input}:401: Error: suffix or operands invalid for `mov'
{standard input}:490: Error: suffix or operands invalid for `mov'
{standard input}:534: Error: suffix or operands invalid for `mov'
{standard input}:578: Error: suffix or operands invalid for `mov'
{standard input}:622: Error: suffix or operands invalid for `mov'
{standard input}:666: Error: suffix or operands invalid for `mov'
{standard input}:800: Error: suffix or operands invalid for `mov'
{standard input}:934: Error: suffix or operands invalid for `mov'
{standard input}:978: Error: suffix or operands invalid for `mov'
{standard input}:1022: Error: suffix or operands invalid for `mov'
{standard input}:1066: Error: suffix or operands invalid for `mov'
{standard input}:1110: Error: suffix or operands invalid for `mov'
{standard input}:1154: Error: suffix or operands invalid for `mov'
{standard input}:1198: Error: suffix or operands invalid for `mov'
{standard input}:1242: Error: suffix or operands invalid for `mov'
{standard input}:1286: Error: suffix or operands invalid for `mov'
{standard input}:1330: Error: suffix or operands invalid for `mov'
{standard input}:1374: Error: suffix or operands invalid for `mov'
{standard input}:1418: Error: suffix or operands invalid for `mov'
make[1]: *** [adeos/x86.o] Error 1
make: *** [adeos] Error 2
 
Old 01-06-2006, 11:24 AM   #11
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 32
Okay, thanks for that. I reinstalled binutils and that seems to have fixed the problem now
 
Old 08-02-2007, 02:09 PM   #12
gelsonrei
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
I have the same bug

Quote:
Originally Posted by pgpython
Okay, thanks for that. I reinstalled binutils and that seems to have fixed the problem now

Hi,

I have the same bug with adeos/x86 compilation, but I try to reinstall binutil devel and source codes and don't fix it. Can you explain step by step how do you fix? I'm novice in kernel and rtai compilation.

Thanks.
Gelson

My configs

Kubuntu 7.04
GCC 3.4
kernel-source 2.6.10 (patched: rtai, linux-2.6-seg-5)
rtai 3.2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slack 10.2 Ker 2.6.8.1 RTAI 3.1 Blank screen Pier Slackware 4 11-06-2005 02:29 PM
RTAI Proramming mrgoodtrips Programming 0 04-14-2005 01:59 PM
How to uninstall a RTAI patch satish427 Linux - Newbie 1 09-28-2004 11:01 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
RTAI Installation problems saintt Linux - Software 0 10-31-2001 05:19 AM


All times are GMT -5. The time now is 09:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration