General GCC Buildtool Script
Posted: Sun Apr 04, 2010 8:22 pm
Over this weekend, angered by my inability to reproduce a working set of buildtools for XOmB, I produced a simple script to automate the process. I generalized it for any OS target, but it should only work for intended x86-64 elf targets.
Simply give it the name of your OS and fill out the newlib stubs with your system call interfaces and employ the script. It will pull the sources for binutils, gcc, and newlib; patch them; and build them. It will produce a working C and C++ to build and port applications to your OS. You can edit the version numbers of the sources in the script, however it is set to the latest releases and is known to work with these.
As for drawbacks... I would REALLY like a Fortran target for benchmarking, and cannot get the bugger to build. Any help on this would be appreciated if anybody would like to extend the capability of the script or tell me how. (Add fortran as a language in the script, and watch it fail )
The source is here with a simple README:
http://github.com/xomboverlord/buildtools
It is, of course, licensed under the WTFPL, so fork away! (Also, on behalf of the XOmB team, happy zombie Jesus day)
Simply give it the name of your OS and fill out the newlib stubs with your system call interfaces and employ the script. It will pull the sources for binutils, gcc, and newlib; patch them; and build them. It will produce a working C and C++ to build and port applications to your OS. You can edit the version numbers of the sources in the script, however it is set to the latest releases and is known to work with these.
As for drawbacks... I would REALLY like a Fortran target for benchmarking, and cannot get the bugger to build. Any help on this would be appreciated if anybody would like to extend the capability of the script or tell me how. (Add fortran as a language in the script, and watch it fail )
The source is here with a simple README:
http://github.com/xomboverlord/buildtools
It is, of course, licensed under the WTFPL, so fork away! (Also, on behalf of the XOmB team, happy zombie Jesus day)