RTEMS - sparc/leon3 BSP configure script error

Gedare Bloom gedare at rtems.org
Mon Jan 19 16:22:12 UTC 2015


Please keep this on the list where others may help.

You should look at config.status for more info about what may have failed.

On Mon, Jan 19, 2015 at 11:11 AM, Francois ARSENAULT
<Francois.Arsenault at mdacorporation.com> wrote:
> Hello,
>
> I have corrected the path to the cross-compiler and now the “configure” script should find the compiler (see the “which” command below).
>
> $ which sparc-rtems4.10-
>    sparc-rtems4.10-addr2line.exe  sparc-rtems4.10-g++.exe        sparc-rtems4.10-gprof.exe      sparc-rtems4.10-readelf.exe
>    sparc-rtems4.10-ar.exe         sparc-rtems4.10-gcc.exe        sparc-rtems4.10-ld.exe         sparc-rtems4.10-size.exe
>    sparc-rtems4.10-as.exe         sparc-rtems4.10-gcc-4.3.3.exe  sparc-rtems4.10-nm.exe         sparc-rtems4.10-strings.exe
>    sparc-rtems4.10-c++.exe        sparc-rtems4.10-gccbug         sparc-rtems4.10-objcopy.exe    sparc-rtems4.10-strip.exe
>    sparc-rtems4.10-c++filt.exe    sparc-rtems4.10-gcov.exe       sparc-rtems4.10-objdump.exe
>    sparc-rtems4.10-cpp.exe        sparc-rtems4.10-gdb.exe        sparc-rtems4.10-ranlib.exe
>
> Note: the cross-compiler came from Gaisler. We’ve used it in another project.
>
> Looking at the ./configure error:
>>    checking whether to enable maintainer-specific portions of Makefiles... no
>    checking for i686-pc-cygwin-gcc... i686-pc-cygwin-gcc
>    checking whether the C compiler works... no
>    configure: error: in `/cygdrive/c/COLKa/src/rtems-4.10.2/rtems_build/tools/build':
>    configure: error: C compiler cannot create executables
>    See `config.log' for more details
>    configure: error: /bin/sh '/cygdrive/c/COLKa/src/rtems-4.10.2/tools/build/configure' failed for tools/build
>
> It seems that there is an error in the …/build/tools/configure script.
> Attached to this email, the “config.log” and the …/build/tools/configure script  files.
> The “config.log” file shows an error in tools/build/configure/configure:4454.
> In tools/build/configure/configure:4454, this line is a blank line!!!
>
> I am not sure what is wrong here…
> Any suggestion?
>
> Thanks,
> Francois
>
> -----Original Message-----
> From: gedare at gwmail.gwu.edu [mailto:gedare at gwmail.gwu.edu] On Behalf Of Gedare Bloom
> Sent: January-16-15 3:33 PM
> To: Francois ARSENAULT
> Cc: users at rtems.org
> Subject: Re: RTEMS - sparc/leon3 BSP configure script error
>
> On Fri, Jan 16, 2015 at 3:29 PM, Francois ARSENAULT <Francois.Arsenault at mdacorporation.com> wrote:
>> Thanks for your quick answer,
>>
>> It works better by doing the ./bootstrap  before the configuration. The following is the steps to re-build RTEMS so far...
>>    rm -fr rtems-4.10.2
>>    tar xjvf rtems-4.10.2.tar.bz2
>>    cd rtems-4.10.2/
>>    ./bootstrap -p
>>    ./bootstrap
>>    mkdir rtems_build
>>    cd rtems_build
>>    /cygdrive/c/COLKa/src/rtems-4.10.2/configure
>> --target=sparc-rtems4.10 --enable-posix --disable-networking
>> --disable-cxx --enable-rtemsbsp=leon3 --prefix=/cygdrive/c/COLKa/src
>>
>> But the configure still given this error (see the note below for the complete command output):
>>    ...
>>    checking whether the C compiler works... no
>>    configure: error: in `/cygdrive/c/COLKa/src/rtems-4.10.2/rtems_build/tools/build':
>>    configure: error: C compiler cannot create executables
>>    See `config.log' for more details
>>    configure: error: /bin/sh
>> '/cygdrive/c/COLKa/src/rtems-4.10.2/tools/build/configure' failed for
>> tools/build
>>
> You need to have a working toolchain for RTEMS, which will include the sparc-rtems4.10-gcc and all the binutils e.g. sparc-rtems4.10-as, sparc-rtems4.10-ld, and so on. I guess you can probably find what you need under ftp://ftp.rtems.org/pub/rtems/cygwin/4.10/i686/
>
> -Gedare
>
>> I have the cc and the gcc defined (gcc version 4.9.2) What can be
>> missing?
>> Thanks,
>> Francois
>>
>> NOTE: this is the configuration command detail output:
>> ----------------------------------------------------------------------
>> ---------------- $ /cygdrive/c/COLKa/src/rtems-4.10.2/configure
>> --target=sparc-rtems4.10 --enable-posix --disable-networking
>> --disable-cxx --en
>> able-rtemsbsp=leon3 --prefix=/cygdrive/c/COLKa/src checking for
>> gmake... no checking for make... make checking for RTEMS Version...
>> 4.10.2 checking build system type... i686-pc-cygwin checking host
>> system type... i686-pc-cygwin checking target system type...
>> sparc-unknown-rtems4.10 checking for a BSD-compatible install...
>> /usr/bin/install -c checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for
>> gawk... gawk checking whether make sets $(MAKE)... yes checking
>> whether make supports nested variables... yes checking whether to
>> enable maintainer-specific portions of Makefiles... no checking that
>> generated files are newer than configure... done
>> configure: creating ./config.status
>> configure: configuring in ./tools/build
>> configure: running /bin/sh
>> '/cygdrive/c/COLKa/src/rtems-4.10.2/tools/build/configure' '--prefix=/cygdrive/c/COLKa/src' '--host= d=i686-pc-cygwin'  '--enable-posix' '--disable-networking' '--disable-cxx' '--enable-rtemsbsp=leon3' '--target=sparc-rtems4.10'
>> ll' '--srcdir=/cygdrive/c/COLKa/src/rtems-4.10.2/tools/build'
>> checking for gmake... no
>> checking for make... make
>> checking for RTEMS Version... 4.10.2
>> checking build system type... i686-pc-cygwin checking host system
>> type... i686-pc-cygwin checking for a BSD-compatible install...
>> /usr/bin/install -c checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for
>> gawk... gawk checking whether make sets $(MAKE)... yes checking
>> whether make supports nested variables... yes checking whether to
>> enable maintainer-specific portions of Makefiles... no checking for
>> i686-pc-cygwin-gcc... i686-pc-cygwin-gcc checking whether the C
>> compiler works... no
>> configure: error: in `/cygdrive/c/COLKa/src/rtems-4.10.2/rtems_build/tools/build':
>> configure: error: C compiler cannot create executables See
>> `config.log' for more details
>> configure: error: /bin/sh
>> '/cygdrive/c/COLKa/src/rtems-4.10.2/tools/build/configure' failed for
>> tools/build
>>
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: gedare at gwmail.gwu.edu [mailto:gedare at gwmail.gwu.edu] On Behalf
>> Of Gedare Bloom
>> Sent: January-16-15 9:41 AM
>> To: Francois ARSENAULT
>> Cc: devel at rtems.org
>> Subject: Re: RTEMS - sparc/leon3 BSP configure script error
>>
>> On Fri, Jan 16, 2015 at 7:57 AM, Francois ARSENAULT <Francois.Arsenault at mdacorporation.com> wrote:
>>> Hello,
>>>
>>> I am new to RTEMS and I want to build a RTEMS application for the
>>> sparc/leon3 BSP.
>>>
>>> For start, I just want to compile/build RTEMS as is without any
>>> modification.
>>>
>>>
>>>
>>> I have the following issue: when executed, the “configure” script
>>> generates this error:
>>>
>>> ../../configure --target=sparc-rtems
>>> --prefix=/cygdrive/c/COLKa/src/rtems-4.10.2
>>>
>>> ../../configure: line 1779: syntax error near unexpected token `.'
>>>
>>> ../../configure: line 1779: `RTEMS_TOP(.)'
>>>
>>>
>>>
>>> Here are the details of the host/target and build commands
>>>
>>> 1) The host is Windows7/Cygwin-32bits
>>>
>>> 2) The RTEMS version is rtems-4.10.2.tar.bz2 (downloaded from
>>> http://git.rtems.org/rtems/)
>>>
>>> 3) Build commands:
>>>
>>> tar xjvf rtems-4.10.2.tar.bz2
>>>
>>> cd rtems-4.10.2
>>>
>>> ln -s /bin/gcc.exe /bin/cc.exe
>>>
>>> export
>>> PATH=/cygdrive/c/opt/sparc-elf-4.4.2-mingw/bin:/cygdrive/c/opt/rtems-
>>> 4
>>> .10-mingw/bin:${PATH}
>>>
>>> aclocal-1.11
>>>
>>> autoscan-2.69
>>>
>>> autoconf-2.69
>>>
>>> automake-1.11 --add-missing
>>>
>>> cd tools/build
>>>
>>> ../../configure -target=sparc-rtems
>>> -prefix=/cygdrive/c/COLKa/src/rtems-4.10.2
>>>
>> Usually you need to specify the version in the target, e.g.
>> target=sparc-rtems4.10
>>
>> I'm not familiar with the cygwin build process though.
>>
>>
>>>
>>>
>>> THIS COMMAND GENERATES THE FOLLOWING ERRORS:
>>>
>>> ../../configure: line 1779: syntax error near unexpected token `.'
>>>
>>> ../../configure: line 1779: `RTEMS_TOP(.)'
>>>
>> Maybe try to re-run bootstrap in the rtems directory.
>>
>>>
>>>
>>> It seems that “RTEMS_TOP” is not defined.
>>>
>>> I have also tried a RTEMS Gaisler distribution
>>> (rtems-4.8-1.1.2-src.tar.bz2) using  a Linux/Ubuntu host and I have the same error.
>>>
>>> I have also try different autoconf and automake versions and I have
>>> the same error.
>>>
>>> How can I fix this issue?
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Francois Arsenault
>>>
>>> Software Engineer
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> devel mailing list
>>> devel at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/devel



More information about the users mailing list