RTEMS 4.6.1 on Cygwin "configure:2838: error: C compiler cannot create executables"

Mark Dean M.Dean at sstl.co.uk
Fri Oct 15 15:03:50 UTC 2004


Hi Joel,

   Originaly I had been trying to build only the 8260 BSP but when it wasn't working I though "what the hell! I'll build 'em all just to see what happens". Needless to say the same thing happened :-)

   regards,
      Mark.

-----Original Message-----
From: Joel Sherrill <joel at OARcorp.com>
[mailto:joel.sherrill at OARcorp.com]
Sent: 15 October 2004 15:59
To: Mark Dean
Cc: Rtems-Users (E-mail)
Subject: Re: RTEMS 4.6.1 on Cygwin "configure:2838: error: C compiler
cannot create executables"





Mark Dean wrote:
> Hi all,
> 
>    I've got RTEMS 4.6.1 installed on Cygwin but when I try to build RTEMS with the supplied BSPs I get the following error...

I don't know in particular why the compiler won't satisfy autofonc but 
you should add the --enable-rtemsbsp=BSP_OF_INTEREST to your configure
line.  You will be building for hours if you build all BSPs.  Or maybe
you are really interested in the dmv177. :)

Try the steps here to check on the compiler

http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.6.1/share/rtems/html/started/started00056.html

That procedure should also ask you to compile and link

main(){}

with the command "CPU-rtems-gcc main.c".

This is more or less what autoconf is attempting.  The output will help you.

--joel


> checking for CFLAGS_DEBUG_V... (cached)
> checking for CFLAGS_PROFILE_V... (cached)
> checking for style of include used by make... GNU
> checking for powerpc-rtems-gcc... powerpc-rtems-gcc
> checking for powerpc-rtems-gcc... (cached) powerpc-rtems-gcc
> checking for C compiler default output... configure: error: C compiler cannot create executables
> See `config.log' for more details.
> make[2]: *** [dmv177] Error 1
> make[2]: Leaving directory `/cygdrive/g/apps/cygwin/home/mdean/sde/src/os/rtems4.6.1/build-rtems/powerpc-rtems/c'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/g/apps/cygwin/home/mdean/sde/src/os/rtems4.6.1/build-rtems/powerpc-rtems/c'
> make: *** [all-recursive] Error 1
> 
> 
> 
> the config.log file contains and error like this...
> 
> 
> 
> configure:2765: $? = 0
> configure:2767: powerpc-rtems-gcc -V </dev/null >&5
> powerpc-rtems-gcc: argument to `-V' is missing
> configure:2770: $? = 1
> configure:2794: checking for C compiler default output
> configure:2797: powerpc-rtems-gcc    conftest.c  >&5
> /cygdrive/g/apps/cygwin/opt/rtems-4.6/bin/../lib/gcc-lib/powerpc-rtems/3.2.3/../../../../powerpc-rtems/lib/libc.a: file not recognized: File
>  truncated
> collect2: ld returned 1 exit status
> configure:2800: $? = 1
> configure: failed program was:
> | #line 2774 "configure"
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME "rtems-c-src"
> | #define PACKAGE_TARNAME "rtems-c-src"
> | #define PACKAGE_VERSION "4.6.1"
> | #define PACKAGE_STRING "rtems-c-src 4.6.1"
> | #define PACKAGE_BUGREPORT "rtems-bugs at rtems.com"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2838: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
> 
> ac_cv_env_LDFLAGS_set=''
> ac_cv_path_install='/usr/bin/install -c'
> 
>    Has anyone come across anything similar before? I don't really know where to start looking to fix the problem! I am happy to email the complete logs to anyone that can help!
> 
>       cheers,
>          Mark.


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list