[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] TCC on OS X
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] TCC on OS X |
Date: |
Wed, 15 Sep 2010 00:10:55 +0200 |
User-agent: |
KMail/1.13.5 (Linux/2.6.32-5-686; KDE/4.4.5; i686; ; ) |
Le mardi 14 septembre 2010 23:51:47, Aaron Gough a écrit :
> Hey Thomas!
> Thanks for the quick response!
>
> > Can you copy the result of uname -m please?
>
> $ uname -m
> i386
>
> I tried config/make again with your suggestion, it still gave the same
> error. Here is the terminal session, perhaps I am doing something silly:
>
> $ ./configure i386
> Binary directory /usr/local/bin
> TinyCC directory /usr/local/lib/tcc
> Library directory /usr/local/lib
> Include directory /usr/local/include
> Manual directory /usr/local/man
> Doc directory /usr/local/share/doc/tcc
> Target root prefix
> Source path /Users/aaron/Downloads/tcc-0.9.25
> C compiler gcc
> CPU x86
> Big Endian no
> gprof enabled no
> cross compilers no
> use libgcc no
> Creating config.mak and config.h
Sorry, I wasn't meaning i386 should be passed to configure as a parameter but
that it should be added to the list of supported processors in the configure
script at the correct line depending on the result.
>
> $ make
> gcc -o tcc tcc.c -DTCC_TARGET_I386 -O2 -g -Wall -fno-strict-aliasing
> -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0
> -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 -lm -ldl
> 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] Error 1
It looks like you're compiling on a 64 bit system but that is strange since
uname -m gives i386. For some reason gcc thinks the system is 64 bits. Do you
have any idea of why?
>
> Sorry I can't be more helpful, compiled languages have never been my strong
> suit :-p
No problem, I'm sure someone will find out what's the problem.
>
> Thanks for your help!
> - Aaron
Best regards,
Thomas Preud'homme
>
> ---
> Aaron Gough
> Web Developer
>
> +1-647-746-7083
> www.thingsaaronmade.com
signature.asc
Description: This is a digitally signed message part.
- [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/14
- Re: [Tinycc-devel] TCC on OS X, Thomas Preud'homme, 2010/09/14
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/14
- Re: [Tinycc-devel] TCC on OS X,
Thomas Preud'homme <=
- Re: [Tinycc-devel] TCC on OS X, Thomas Preud'homme, 2010/09/14
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/14
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/14
- Re: [Tinycc-devel] TCC on OS X, Thomas Preud'homme, 2010/09/15
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/15
- Re: [Tinycc-devel] TCC on OS X, Thomas Preud'homme, 2010/09/15
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/15
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/15
- Re: [Tinycc-devel] TCC on OS X, Thomas Preud'homme, 2010/09/15
- Re: [Tinycc-devel] TCC on OS X, Aaron Gough, 2010/09/16