-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full bootstrap? #1
Comments
You just need a few modifications to tcc's source to get this to work: see 3384d69 The build command
works after those modifications. And adding
Though I think even with this building gcc or glibc in a fully self-contained way will be very difficult... Anyways I'm glad you like this project! I had a lot of fun making it :) |
Thank you! My goal was to compile lua with that tcc + musl combination and I got it working so I'm happy with that. Building gcc or glibc would require a functional c++ compiler among other things so trying to bootstrap a gnu environment is very hard. |
I really like this project, really amazing job.
In the 05/README.md it says to you can compile tcc with the tcc0 binary which works but when I run that command with the -MD flag the resulting file says that it uses a lot of system level headers / libraries. I think the musl build is more self contained so I built that and attempted to build tcc using tcc0 with the -nostdinc and -nostdlib flags without much luck.
The contents of tcc1.d after adding -MD (./tcc0 -MD tcc.c -o tcc1)
Here is what I did. I really just commented out one thing the config.h and added a few flags here. The rest of the changes are to make it slightly easier to compile. It fails with this error
The error.
And the offending file.if you revert those two lines then it works again but it links against the system libc files. I'm not very good with this stuff so I just wanted to ask if you tried something like this already or if I'm missing something obvious.
The text was updated successfully, but these errors were encountered: