klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

Build not working in Docker #240

Closed geajack closed 2 years ago

geajack commented 2 years ago

When I run docker pull toaruos/build-tools:1.99.x followed by the command suggested in the README:

docker run -v `pwd`:/root/misaka -w /root/misaka -e LANG=C.UTF-8 -t toaruos/build-tools:1.99.x util/build-in-docker.sh

I get:

ln: failed to create symbolic link 'util/local/gcc_local': File exists
x86_64-pc-toaru-as -o base/lib/crt0.o libc/arch/x86_64/crt0.S
make: x86_64-pc-toaru-as: Command not found
x86_64-pc-toaru-gcc -O2 -std=gnu11 -ffreestanding -Wall -Wextra -Wno-unused-parameter -fPIC -c -o libc/main.o libc/main.c
make: x86_64-pc-toaru-gcc: Command not found
make: *** [Makefile:133: libc/main.o] Error 127
klange commented 2 years ago

ln: failed to create symbolic link 'util/local/gcc_local': File exists

Did you try to build the toolchain locally before running the Docker container? Can you try with a fresh clone of the repository?

geajack commented 2 years ago

Yes, I did. Thanks! It works now.