Re: [Tinycc-devel] Compiling tcc for use in a static environment

2014-04-09 Thread Thomas Preud'homme
Hi there, Le mardi 8 avril 2014, 16:17:09 Steve Kemp a écrit : I'm in the middle of building a rescue-system, and I would like to be able to include a simple compiler within that environment. Ideally I'd like to see tcc compiled against uclibc, or musl, however despite coming across

[Tinycc-devel] Building a single cross-compiler: please test new configure

2014-04-09 Thread Thomas Preud'homme
I have a patch to build a single cross-compiler by using --targetcpu but given the potential of breakage of the build script I prefer to post it here for now and ask you to try building tcc with it, either natively or all the cross compilers to see if anything break. You can also try building

Re: [Tinycc-devel] Compiling tcc for use in a static environment

2014-04-09 Thread u-tcc-uepj
Hi Steve, On Tue, Apr 08, 2014 at 04:17:09PM +0100, Steve Kemp wrote: For example this link: http://pts-mini-gpl.googlecode.com/svn/trunk/pts-tcc/ At this point I'm taking a step back and asking if there are any existing recipes for building a static compiler that can be used in a

Re: [Tinycc-devel] Compiling tcc for use in a static environment

2014-04-09 Thread u-tcc-uepj
Yes I did adjust pts-tcc to the then current uclibc in September 2011. Unfortunately my recipe is very specific for my compile environment and also the corresponding patches are for a quite old uclibc This should read tcc and uclibc instead of uclibc. Rune

Re: [Tinycc-devel] Compiling tcc for use in a static environment

2014-04-09 Thread Steve Kemp
I didn't look much at the patch but noticed it hardcodes i686 as the target. Is your system a 32 bit intel system? If no, that might explain what is the problem you encounter. No, sadly I'm on a 64-bit host. Also you can try playing with the number of / (adding or removing one) in line

Re: [Tinycc-devel] Compiling tcc for use in a static environment

2014-04-09 Thread Steve Kemp
Yes I did adjust pts-tcc to the then current uclibc in September 2011. Unfortunately my recipe is very specific for my compile environment and also the corresponding patches are for a quite old uclibc version. I do not have time to clean up the data, nor is it suitable for publishing

Re: [Tinycc-devel] Compiling tcc for use in a static environment

2014-04-09 Thread u-tcc-uepj
On Wed, Apr 09, 2014 at 04:19:47PM +0100, Steve Kemp wrote: been wanting to build a very very minimal rescue-system. Currently that consists of an initrd image, a kernel, and nothing else. Having a compiler present isn't a deal-breaker, but given the root filesystem is writable it would