I am sorry, I assumed everyone switched to 64 bits... Hehe, of course the whole world has to follow me. ;-)
Any way, I dug through the makefiles, and I think I found the issue. I added the -m32 and -m64 flags where necessary. In addition I had to disable the bcheck, as memory hooks are completely different on a mac. I will have to revisit this at a future date. In short, pull the latest mob branch, and see if this helps. Regards, Miki. On 15 February 2012 07:14, David Mertens <dcmertens.p...@gmail.com> wrote: > Milutin - > > I had some trouble compiling your code on Lion. Here is what I did, > starting from scratch: > > # Clone and get into the source directory: > git clone git://repo.or.cz/tinycc.git > cd tinycc > # Check out the latest mob and create a named local branch: > git checkout origin/mob > git checkout -b mob > # Try to compile: > ./configure > make > > For make I get this output: > gcc -o tcc.o -c tcc.c -DTCC_TARGET_I386 -DWITHOUT_LIBTCC -Wall -g -O2 > -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare > -D_FORTIFY_SOURCE=0 -mpreferred-stack-boundary=2 -march=i386 > -falign-functions=0 > tcc.c:1: error: CPU you selected does not support x86-64 instruction set > tcc.c:1: error: CPU you selected does not support x86-64 instruction set > tcc.c:1: error: -mpreferred-stack-boundary=2 is not between 4 and 12 > make: *** [tcc.o] Error 1 > > The errors make some sense to me, but I have no idea why the flags are set > the way they are set. I just left it up to ./configure to figure out. > > Any suggestions? Would any particular diagnostic output be helpful? > > David > > > -- > "Debugging is twice as hard as writing the code in the first place. > Therefore, if you write the code as cleverly as possible, you are, > by definition, not smart enough to debug it." -- Brian Kernighan > > > _______________________________________________ > Tinycc-devel mailing list > Tinycc-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/tinycc-devel > > -- Miki.
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel