You are not logged in.

#1 2023-01-03 11:19:31

yusuf
Member
Registered: 2022-01-15
Posts: 110

cc1 not found What package is it in?

I git cloned the Meaty Skeleton from the OS Dev Wiki (https://wiki.osdev.org/Meaty_Skeleton). If I run build.sh, it says

i686-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory,

After a bit of googling, I found that I have to update the system, so I did, still the same problem what package is it in?

Offline

#2 2023-01-03 12:24:09

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: cc1 not found What package is it in?

Building a Cross-Compiler

    Main article: GCC Cross-Compiler, Why do I need a Cross Compiler?

You must use a GCC Cross-Compiler in this tutorial as in the Bare Bones tutorial. You should use the i686-elf target in your cross-compiler, though any ix86-elf target (but no less than i386) will do fine for our purposes here.

You must configure your cross-binutils with the --with-sysroot option, otherwise linking will mysteriously fail with the this linker was not configured to use sysroots error message. If you forgot to configure your cross-binutils with that option, you'll have to rebuild it, but you can keep your cross-gcc.

(https://wiki.osdev.org/Meaty_Skeleton#B … s-Compiler)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2023-01-03 13:10:07

yusuf
Member
Registered: 2022-01-15
Posts: 110

Re: cc1 not found What package is it in?

d.ALT wrote:

Building a Cross-Compiler

    Main article: GCC Cross-Compiler, Why do I need a Cross Compiler?

You must use a GCC Cross-Compiler in this tutorial as in the Bare Bones tutorial. You should use the i686-elf target in your cross-compiler, though any ix86-elf target (but no less than i386) will do fine for our purposes here.

You must configure your cross-binutils with the --with-sysroot option, otherwise linking will mysteriously fail with the this linker was not configured to use sysroots error message. If you forgot to configure your cross-binutils with that option, you'll have to rebuild it, but you can keep your cross-gcc.

(https://wiki.osdev.org/Meaty_Skeleton#B … s-Compiler)

Forgot to mention, I also did the bare bones tutorial, ignored the compilation errors and moved on, they were the same. I used this pre-compiled toolchain (https://github.com/alessandromrc/i686-e … s/releases). I just copied everything into the root folder with file-roller on sudo. Then I found that there are bin/ and lib/ inside the i686-elf subdir so I copied them using MC, as nautilus on root is buggy. I don't want to use the AUR packages, as they take too long to compile.

Offline

Board footer

Powered by FluxBB