Article 6JNVF Moving Linux From Scratch

Moving Linux From Scratch

by
EmDeeTee
from LinuxQuestions.org on (#6JNVF)
Hi, I was using my Linux from scratch inside a virtual machine, but recently I wanted to copy it to a laptop.

So I packed the whole thing, installed it and it seems to work fine. It boots up, Xorg works, and programs open as they should but... I wanted to compile some new software (Wireless Tools 29). So I downloaded the source code and executed `make` gcc errored out saying that `if` is an illegal instruction.

So I created a tiny test file, compiled it and executed it.
Code:#include <stdio.h>

int main(void) {
if (1==1) {
printf("Hello\n");
}
}It compiled compiled and gave me the expected output.

I wanted to test further. I downloaded the source code of nano-7.2 and tried to run `./configure`.

It gave no output and seemed to be running in an infinite loop.

My LFS system was compiled for a generic x86_64 system and my laptop meets this requirement

Does anybody have a clue on what's going on?

EDIT: I just discovered, that compiling using clang is fine. The program compiles and runs. But `GCC` and `./configure` are still not working
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments