Code: Select all
i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
Code: Select all
cc1: error: unrecognized command-line option ‘-quiet’
cc1: error: unrecognized command-line option ‘-quiet’
Code: Select all
i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
Code: Select all
cc1: error: unrecognized command-line option ‘-quiet’
cc1: error: unrecognized command-line option ‘-quiet’
That's not the correct fix for the problem.JoeBox9 wrote:it said that cc1 does not exist. After a bit of searching, I found that, I should make a link to cc
Through this Github Repo (https://github.com/alessandromrc/i686-e ... s/releases). I copied everything to root. Then found out that /i686-elf has bin/ and lib/, so I opened Midnight Commander with root and moved them, still the same problem.Octocontrabass wrote:That's not the correct fix for the problem.JoeBox9 wrote:it said that cc1 does not exist. After a bit of searching, I found that, I should make a link to cc
How exactly did you install your cross-compiler?
Yes it does and Nautilus says it is executable.Octocontrabass wrote:I extracted it to its own directory, ran it from there, and had no problems. Did you check to make sure libexec/gcc/i686-elf/11.1.0/cc1 did exist and was marked executable?
Copying it to the root directory sounds like a good way to break your system.
Code: Select all
export PATH=/your/compiler/bin:$PATH
Before you replied, I tried copying everything to the /bin folder, as it would have the same effect as $PATH, I then get this:Octocontrabass wrote:I'm not sure if you need to set the path, but you can temporarily set the path like this:
Code: Select all
export PATH=/your/compiler/bin:$PATH
Code: Select all
i686-elf-gcc: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not found
That's not going to work; you should only add the "bin" directory to PATH.JoeBox9 wrote:After you replied I tried setting the path to /libexec/gcc/i686-elf//11.1.0/,
What do you see when you run "which i686-elf-gcc"?JoeBox9 wrote:What do I do now?
I see this:Octocontrabass wrote:That's not going to work; you should only add the "bin" directory to PATH.JoeBox9 wrote:After you replied I tried setting the path to /libexec/gcc/i686-elf//11.1.0/,
What do you see when you run "which i686-elf-gcc"?JoeBox9 wrote:What do I do now?
Code: Select all
i686-elf-gcc: fatal error: no input files
compilation terminated.
Here is the correct one:Octocontrabass wrote:You didn't run the command I asked you to run.
Code: Select all
/usr/bin/i686-elf-gcc
Yeah, I was installing from the AUR but it was taking too long to compile, so I cancelled it in the middle and got the GitHub one. So, after pressing TAB in yay -r i686, it gave i686-elf-binutils, it said there was 16mb of stuff, it removed it, still the same compilation errors.Octocontrabass wrote:Did you extract the zip file into /usr? If not, the reason why you're having problems is because you have another i686-elf-gcc already installed.
If you had let it finish, you wouldn't be having these problems.JoeBox9 wrote:Yeah, I was installing from the AUR but it was taking too long to compile, so I cancelled it in the middle