wichtounet / thor-os

Simple operating system in C++, written from scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

x86_64-elf-g++: Command not found

tomasantunes opened this issue · comments

Can't build. When I run make qemu I get the following output:

true
cd bootloader; make stage1.bin
make[1]: Entering directory '/home/user1/thor-os/bootloader'
make[1]: 'stage1.bin' is up to date.
make[1]: Leaving directory '/home/user1/thor-os/bootloader'
cd bootloader; make stage2.bin
make[1]: Entering directory '/home/user1/thor-os/bootloader'
make[1]: 'stage2.bin' is up to date.
make[1]: Leaving directory '/home/user1/thor-os/bootloader'
cd init; make
make[1]: Entering directory '/home/user1/thor-os/init'
x86_64-elf-g++ -masm=intel -I../../tstl/include/ -I../printf/include/ -I../tstl/include/ -I../tlib/include/ -Iinclude/ -nostdlib -g -Os -fno-stack-protector -fno-exceptions -funsigned-char -ffreestanding -fomit-frame-pointer -mno-red-zone -mno-3dnow -mno-mmx -fno-asynchronous-unwind-tables -isystem acpica/source/include -std=c++11 -fno-rtti -march=i386 -m32 -fno-strict-aliasing -fno-pic -fno-toplevel-reorder -mno-sse -mno-sse2 -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-avx -mno-avx2 -mregparm=3 -mpreferred-stack-boundary=2 -I../kernel/include -Wall -Wextra -pedantic -Wold-style-cast -c src/boot_16.cpp -o debug/boot_16.o
make[1]: x86_64-elf-g++: Command not found
Makefile:10: recipe for target 'debug/boot_16.o' failed
make[1]: *** [debug/boot_16.o] Error 127
make[1]: Leaving directory '/home/user1/thor-os/init'
Makefile:9: recipe for target 'init/debug/init.bin' failed
make: *** [init/debug/init.bin] Error 2

Hello,

You need to build a cross-compiler to build the OS. The steps are listed on the wiki: https://github.com/wichtounet/thor-os/wiki/Cross-Compiler

Baptiste

Closing issue for lack of response, please reopen if the problem is still there.