m68k/mvme162 build problem on solaris-7

Paul Cadaret rtems at usd.com
Mon Dec 29 06:47:25 UTC 2003


Hello,
I'm having trouble building RTEMS for a m68k-rtems target and a mvme162 
bsp;  something I thought would be
pretty stable.
My configure scipt is attached;  The important part is:

      export   CC_FOR_BUILD=/tools/local/bin/gcc
      export  CXX_FOR_BUILD=/tools/local/bin/g++
      export    CC_FOR_HOST=/tools/local/bin/gcc
      export   CXX_FOR_HOST=/tools/local/bin/g++
      export  CC_FOR_TARGET=/tools/local.m68k-elf/bin/m68k-elf-gcc
      export CXX_FOR_TARGET=/tools/local.m68k-elf/bin/m68k-elf-g++
      ${SHELL}  ${SRCDIR}/configure                                 \
            --prefix=$LOCAL                                         \
            --target=m68k-rtems                                     \
            --program-prefix=m68k-elf-                              \
            --disable-rtems-inlines                                 \
            --disable-posix                                         \
            --disable-networking                                    \
            --disable-cxx                                           \
            --enable-rtemsbsp="mvme162"                             \
            #

where:

    rtems> /tools/local/bin/gcc --version
    2.95.2

This is my old reliable gcc for solaris

    rtems> /tools/local.m68k-elf/bin/m68k-elf-gcc --version
    m68k-elf-gcc (GCC) 3.4.0 20031224 (experimental)
    Copyright (C) 2003 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.
    rtems>

The above is a new m68k gcc cross compiler that seems to work (judged by 
looking at the assembly code)

The error I see during the rtems build is:                   

       809  configuring in tools
       810  running /bin/ksh
    ../../../../../../../../../src/c/src/lib/libbsp/m68k/mvme162/tools/configure 
    '--prefix=/tools/local.rtems'
       810   '--program-prefix=m68k-elf-' '--disable-rtems-inlines'
    '--disable-posix' '--disable-networking' '--disable-cxx' '--with-tar
       810  get-subdir=m68k-rtems'
    '--exec-prefix=/tools/local.rtems/m68k-rtems'
    'CC=/tools/local.m68k-elf/bin/m68k-elf-gcc' 'CXX=/tools
       810  /local.m68k-elf/bin/m68k-elf-g++' 'RTEMS_BSP=mvme162'
    'RTEMS_CPU_MODEL=m68040' 'RTEMS_BSP_FAMILY=mvme162' 'CPU_CFLAGS=-m6804
       810  0' 'CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer'
    --cache-file=/dev/null
    --srcdir=../../../../../../../../../src/c/src/lib/lib
       810  bsp/m68k/mvme162/tools
       811  checking for gmake... gmake
       812  checking for RTEMS Version... 4.6.0pre5
       813  checking build system type... sparc-sun-solaris2.7
       814  checking host system type... sparc-sun-solaris2.7
       815  checking target system type... m68k-unknown-rtems
       816  checking rtems target cpu... m68k
       817  checking for a BSD-compatible install...
    /tools/local/bin/install -c
       818  checking whether build environment is sane... yes
       819  checking for gawk... gawk
       820  checking whether gmake sets $(MAKE)... yes
       821  checking whether to enable maintainer-specific portions of
    Makefiles... no
       822  checking for sparc-sun-solaris2.7-gcc...
    /tools/local.m68k-elf/bin/m68k-elf-gcc
       823  checking for C compiler default output... a.out
       824  checking whether the C compiler works... configure: error:
    cannot run C compiled programs.
       825  If you meant to cross compile, use `--host'.
       826  See `config.log' for more details.
       827  config.status: error:
    ../../../../../../../../../src/c/src/lib/libbsp/m68k/mvme162/tools/configure
    failed for tools
       828  configure: error: /bin/ksh
    '../../../../../../../../src/c/src/lib/libbsp/m68k/mvme162/configure'
    failed for mvme162
       829  configure: error: /bin/ksh
    '../../../../../../../src/c/src/lib/libbsp/m68k/configure' failed
    for m68k
       830  configure: error: /bin/ksh
    '../../../../../../src/c/src/lib/libbsp/configure' failed for lib/libbsp
       831  gmake[2]: *** [mvme162] Error 1
       832  gmake[2]: Leaving directory
    `/sd/c0t8d0/opt1/web/sites/ftp.rtems.com/rtems-4.6.0pre5/build.m68k-elf/m68k-rtems/c'
       833  gmake[1]: *** [all-recursive] Error 1
       834  gmake[1]: Leaving directory
    `/sd/c0t8d0/opt1/web/sites/ftp.rtems.com/rtems-4.6.0pre5/build.m68k-elf/m68k-rtems/c'
       835  make: *** [all-recursive] Error 1

Line-810 invokes a 'configure' that seems to be using my m68k-cross 
compiler as if it were the solaris compiler.
I have verified that it compiles a small program (below) with the m68k 
compiler and then  dies when it can't
run the m68k binary on Solaris (so suprize there):

    #line 2225 "configure"
    /* confdefs.h.  */

    #define PACKAGE_NAME "rtems-c-src-lib-libbsp-m68k-mvme162-tools"
    #define PACKAGE_TARNAME "rtems-c-src-lib-libbsp-m68k-mvme162-tools"
    #define PACKAGE_VERSION "4.6.0pre5"
    #define PACKAGE_STRING "rtems-c-src-lib-libbsp-m68k-mvme162-tools
    4.6.0pre5"
    #define PACKAGE_BUGREPORT "rtems-bugs at rtems.com"
    /* end confdefs.h.  */

    int
    main ()
    {

      ;
      return 0;
    }

I could use some advice.
Thanks much.
Paul




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Make.20031228-163314..log
URL: <http://lists.rtems.org/pipermail/users/attachments/20031228/06ec6a78/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CONFIGURE.psc.log
URL: <http://lists.rtems.org/pipermail/users/attachments/20031228/06ec6a78/attachment-0003.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CONFIGURE
Type: application/x-java-applet
Size: 6565 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20031228/06ec6a78/attachment-0001.bin>


More information about the users mailing list