Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.