CodeAsm / teeny-linux

An tiny linux kernel with initramfs for Qemu based on Mitch Galgs linux tutorials.
6 stars 1 forks source link

TCC compiles but file not found #5

Open CodeAsm opened 3 years ago

CodeAsm commented 3 years ago
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
hello.c:1: error: include file 'stdio.h' not found

or

~ # tcc -o hello2 hello.c -I /include/
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
tcc: error: library 'c' not found
tcc: error: file '/usr/lib/tcc/libtcc1.a' not found
tcc: error: file 'crtn.o' not found
tcc: error: undefined symbol 'printf'

Need more research and fix. maybe default paths need changes. Active development happends here: https://github.com/CodeAsm/teeny-linux/tree/tcc-issue