Sergei Evdokimov escreveu:
> Hi!
> 
> I'm currently trying to build cegcc on my MacBook running Mac OS 10.4  
> and I'm getting following error when it comes to building gcc:
> 
> gcc   -g -O2  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings - 
> Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno- 
> variadic-macros -Wold-style-definition -Wmissing-format-attribute - 
> fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/gengtype \
> build/gengtype.o build/gengtype-lex.o build/gengtype-yacc.o \
> build/errors.o ../build-i386-apple-darwin8.8.1/libiberty/libiberty.a
> build/gengtype
> /Users/evdokim/Source/cegcc/cegcc/src/gcc/gcc/input.h:52: parse  
> error, expecting `GTY_TOKEN'
> make[2]: *** [s-gtype] Error 1
> make[1]: *** [all-gcc] Error 2
> make: *** [all] Error 2
> 

Have no idea what this means.  Looking at that line, maybe on i386, or
on linux/cygwin, USE_MAPPED_LOCATION is defined, and we never hit that.

Could you try building a native compiler from our gcc sources?  I don't
know the prerequisites for building gcc on MacOS, but, could you try
building a native gcc from cegcc/src/gcc ?

cd src
mkdir buildirgcc
cd builddirgcc
../gcc/configure
make

If that fails, could you try building a pristine gcc 4.1.0 (the version we
are based on) from gcc.gnu.org, or from apple?  I'm trying to rule out if
it is our local edits, or a general MacOS x gcc 4.1.0 problem.


> I'm using gcc 4.0.1 and with gcc-3.3 it didn't pass the configure check:
> 
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler  
> cannot create executables.
> 

Did you try a simple hello world app with gcc-3.3?  The error implies that
even that wouldn't work, much less building gcc.  Try looking at the
config.log.  It should give a hint on what is missing.

> Which gcc version should be used for compiling? And is it possible to  
> build cegcc on Mac OS?
> 

To my knowledge you would be the first, but most of our components
should work.  binutils, gcc, and gdb should be buildable/usable on MacOS.
What is the arch you are using?

Cheers,
Pedro Alves


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to