How to define a environment variable to compile?

Claudio Bley bley@cs.uni-magdeburg.de
Tue Oct 14 18:57:00 GMT 2003


On Tue, Oct 14, 2003 at 12:40:00PM -0400, Clarence Klopfstein wrote:
> Thought I would send a follow up email.  Here is what I get on my screen
> trying to compile.
> 
> After reading a few of the past emails, I tried to delete my .cache file,
> but it did not help.
> 
> CKPC@CLARENCEK ~
> $ gcc-3.3.1/configure
> Configuring for a i686-pc-cygwin host.
> *** This configuration is not supported in the following subdirectories:
>      target-libffi target-boehm-gc target-zlib target-libjava
>     (Any other directories should still work fine.)
> Created "Makefile" in /home/CKPC using "mh-frag"
> cc: not found
> *** The command 'cc -o conftest -g   conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.

You need to have a working compiler under cygwin already installed in
order to compile GCC. Just fire up the cygwin setup application and
add the missing compiler and appropriate development files (for sake
of simplicity just intall *all* packages if unsure or desperate ;)
). After installation you should be all set to compile GCC.

If you have GCC installed to an unusual location or changed its name
somehow or you're using another compiler just set the CC variable to
indicate which compiler should be used to compile GCC as instructed by
configure:

export CC="/c/bin/my-own-version-of-gcc"

HTH
-- 
Claudio Bley                                 ASCII ribbon campaign (")
Debian GNU/Linux user                         - against HTML email  X 
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \



More information about the Gcc-help mailing list