[gmx-users] Error: C compiler cannot create executables

Erik Lindahl lindahl at csb.stanford.edu
Mon May 10 14:03:47 CEST 2004


Hi,

This is the important part:

> configure:2450: cc    conftest.c  >&5
> /usr/bin/ld: cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit status
> configure:2453: $? = 1
> configure: failed program was:
> | #line 2426 "configure"
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME "GROMACS"
> | #define PACKAGE_TARNAME "gromacs"
> | #define PACKAGE_VERSION "3.2.1"
> | #define PACKAGE_STRING "GROMACS 3.2.1"
> | #define PACKAGE_BUGREPORT "gmx-users at gromacs.org"
> | #define PACKAGE "gromacs"
> | #define VERSION "3.2.1"
> | #define SOFTWARE_INVSQRT
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2492: error: C compiler cannot create executables
> See `config.log' for more details.
>

The configure script tries to compile a really trivial program, without 
any options whatsoever (just cc filename.c), and your compiler says:

> /usr/bin/ld: cannot open crt1.o: No such file or directory

Both gcc 2.95 and GNU libc version 1 are pretty old, but they should 
work with gromacs, so something must be misconfigured on your systems. 
Check the documentation/support for your OS and make sure you can 
compile a C program such as:

int
main()
{
;
return 0;
}



Cheers,

Erik




More information about the gromacs.org_gmx-users mailing list