[Nix-dev] C compiler cannot create executables

Armijn Hemel armijn at uulug.nl
Fri Jan 7 17:18:16 CET 2005


On Fri, Jan 07, 2005 at 05:07:04PM +0100, Eelco Visser wrote:

> I'm not sure whether this is a Nix or a Stratego/XT problem:

I believe it's a Nix problem.

> When building the Stratego/XT tree from svn (and other packages
> as well), I get:
> 
> checking for C compiler default output file name... configure: error: C compiler cannot create executables
> 
> I'm using gcc from nix install:
> 
> > which gcc
> /home/visser/.nix-profile/bin/gcc
> 
> > gcc --version
> gcc (GCC) 3.4.3
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> /config-install-scripts/StrategoXT> ../strategoxt-config.sh
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for the SVN revision of the source tree... 8524
> checking for gcc... gcc
> checking for C compiler default output file name... configure: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> Any ideas what might cause this?

I've seen this before...

It could be because it cannot find the right headerfiles. config.log should
give you some hints on what exactly goes wrong...

Could you copy and paste some of that?

armijn

-- 
 ---------------------------------------------------------------------------
  armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
 ---------------------------------------------------------------------------



More information about the nix-dev mailing list