tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Help with tests... (osx build but please read anyway)


From: David Mertens
Subject: Re: [Tinycc-devel] Help with tests... (osx build but please read anyway)
Date: Wed, 15 Feb 2012 06:14:58 -0600

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]