WinXP / cygwin build problem
Steven Grunza
grunza at ulticom.com
Wed Sep 22 19:08:46 UTC 2010
What is the correct procedure for installing the build tools for the
latest from CVS (rtems-4.11) on a cygwin WinXP host?
I downloaded various tools from
ftp://ftp.rtems.org:/pub/rtems/cygwin/4.11 and installed them using:
cd /
tar -jxvf {path}/{tool name.tar.bz2}
I have the tools in my path:
Steven@% echo $PATH
/opt/rtems-4.11/bin:/.:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/
lib/lapack
Steven@% ls -l /opt/rtems-4.11/bin
total 24828K
-rwxr-xr-x 2 Steven None 31214 Sep 7 10:42 aclocal*
-rwxr-xr-x 2 Steven None 31214 Sep 7 10:42 aclocal-1.11*
-rwxr-xr-x 1 Steven None 14473 Aug 5 04:35 autoconf*
-rwxr-xr-x 1 Steven None 8632 Aug 5 04:35 autoheader*
-rwxr-xr-x 1 Steven None 32002 Aug 5 04:35 autom4te*
-rwxr-xr-x 2 Steven None 257073 Sep 7 10:42 automake*
-rwxr-xr-x 2 Steven None 257073 Sep 7 10:42 automake-1.11*
-rwxr-xr-x 1 Steven None 21163 Aug 5 04:35 autoreconf*
-rwxr-xr-x 1 Steven None 17220 Aug 5 04:35 autoscan*
-rwxr-xr-x 1 Steven None 33968 Aug 5 04:35 autoupdate*
-rwxr-xr-x 1 Steven None 809517 Aug 26 01:52
i386-rtems4.11-addr2line.exe*
-rwxr-xr-x 2 Steven None 835945 Aug 26 01:52 i386-rtems4.11-ar.exe*
-rwxr-xr-x 2 Steven None 1354468 Aug 26 01:52 i386-rtems4.11-as.exe*
-rwxr-xr-x 2 Steven None 611637 Aug 26 03:15 i386-rtems4.11-c++.exe*
-rwxr-xr-x 1 Steven None 809086 Aug 26 01:52
i386-rtems4.11-c++filt.exe*
-rwxr-xr-x 1 Steven None 609605 Aug 26 03:15 i386-rtems4.11-cpp.exe*
-rwxr-xr-x 2 Steven None 611637 Aug 26 03:15 i386-rtems4.11-g++.exe*
-rwxr-xr-x 2 Steven None 604927 Aug 26 03:15
i386-rtems4.11-gcc-4.5.1.exe*
-rwxr-xr-x 2 Steven None 604927 Aug 26 03:15 i386-rtems4.11-gcc.exe*
-rwxr-xr-x 1 Steven None 16437 Aug 26 03:15 i386-rtems4.11-gccbug*
-rwxr-xr-x 1 Steven None 193411 Aug 26 03:15 i386-rtems4.11-gcov.exe*
-rwxr-xr-x 1 Steven None 4248614 Sep 3 04:34 i386-rtems4.11-gdb.exe*
-rwxr-xr-x 1 Steven None 4248614 Sep 3 04:34 i386-rtems4.11-gdbtui.exe*
-rwxr-xr-x 1 Steven None 894518 Aug 26 01:52 i386-rtems4.11-gprof.exe*
-rwxr-xr-x 2 Steven None 1140117 Aug 26 01:52 i386-rtems4.11-ld.exe*
-rwxr-xr-x 2 Steven None 823860 Aug 26 01:52 i386-rtems4.11-nm.exe*
-rwxr-xr-x 2 Steven None 1014959 Aug 26 01:52
i386-rtems4.11-objcopy.exe*
-rwxr-xr-x 2 Steven None 1348479 Aug 26 01:52
i386-rtems4.11-objdump.exe*
-rwxr-xr-x 2 Steven None 836457 Aug 26 01:52 i386-rtems4.11-ranlib.exe*
-rwxr-xr-x 1 Steven None 379632 Aug 26 01:52
i386-rtems4.11-readelf.exe*
-rwxr-xr-x 1 Steven None 813081 Aug 26 01:52 i386-rtems4.11-size.exe*
-rwxr-xr-x 1 Steven None 811405 Aug 26 01:52
i386-rtems4.11-strings.exe*
-rwxr-xr-x 2 Steven None 1014959 Aug 26 01:52 i386-rtems4.11-strip.exe*
-rwxr-xr-x 1 Steven None 4184 Aug 5 04:35 ifnames*
and the tools are executable:
Steven@% i386-rtems4.11-gcc --version
i386-rtems4.11-gcc (GCC) 4.5.1 20100731 (RTEMS
gcc-4.5.1-6.cyg/newlib-1.18.0-21.cyg)
Copyright (C) 2010 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.
When I tried to configure RTEMS I got a error:
configure:3786: checking whether the C compiler works
configure:3808: i386-rtems4.11-gcc conftest.c >&5
configure:3812: $? = 1
configure:3850: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "rtems-cpukit"
| #define PACKAGE_TARNAME "rtems-cpukit"
| #define PACKAGE_VERSION "4.10.99.0"
| #define PACKAGE_STRING "rtems-cpukit 4.10.99.0"
| #define PACKAGE_BUGREPORT "http://www.rtems.org/bugzilla"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3855: error: in
`/home/Steven/rtems/b-i386-rtems/i386-rtems4.11/cpukit':
configure:3857: error: C compiler cannot create executables
See `config.log' for more details
I then tried to use the compiler manually:
Steven@% pwd
/home/Steven/temp
Steven@% ls -l
total 1K
-rw-r--r-- 1 Steven None 86 Sep 22 13:26 test.c
Steven@% cat test.c
#include <stdio.h>
int main(void )
{
printf(" \n\nW T F \n\n");
return( 0 );
}
Steven@% i386-rtems4.11-gcc -S -v test.c
Using built-in specs.
COLLECT_GCC=i386-rtems4.11-gcc
COLLECT_LTO_WRAPPER=/opt/rtems-4.11/libexec/gcc/i386-rtems4.11/4.5.1/lto
-wrapper.exe
Target: i386-rtems4.11
Configured with: ../gcc-4.5.1/configure --prefix=/opt/rtems-4.11
--bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11
--includedir=/opt/rtems-4.11/include --libdir=/opt/rtems-4.11/lib
--libexecdir=/opt/rtems-4.11/libexec --mandir=/opt/rtems-4.11/share/man
--infodir=/opt/rtems-4.11/share/info --datadir=/opt/rtems-4.11/share
--build=i386-pc-linux-gnu --host=i686-pc-cygwin --target=i386-rtems4.11
--disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose
--with-newlib --with-system-zlib --disable-nls
--without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --enable-threads --disable-lto
--disable-plugin --enable-newlib-io-c99-formats --enable-languages=c,c++
Thread model: rtems
gcc version 4.5.1 20100731 (RTEMS gcc-4.5.1-6.cyg/newlib-1.18.0-21.cyg)
(GCC)
COLLECT_GCC_OPTIONS='-S' '-v' '-mtune=i386' '-march=i386'
/opt/rtems-4.11/libexec/gcc/i386-rtems4.11/4.5.1/cc1.exe -quiet -v
test.c -quiet -dumpbase test.c -mtune=i386 -march=i386 -auxbase test
-version -o test.s
Steven@% ls -l
total 1K
-rw-r--r-- 1 Steven None 86 Sep 22 13:26 test.c
Steven@%
Wow. No file created, no error reported. Does this look familiar to
anyone? I usually just build my own tools but thought this once I would
try pre-built.
------------------------------------------------------------
"Unix is user friendly, it's just Steven Grunza
particular about with whom it voice: (856) 787 - 2759
makes friends." fax: (856) 866 - 2033
- Unknown mailto:grunza at ulticom.com
flames:/dev/null
------------------------------------------------------------
More information about the users
mailing list