This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why won't this *** build work ??


Hi Brett

I'm getting desperate and can not see why I can not cross build after
following all instructions, as far as I am aware, (more or less) exactly.

Before I throw in the towel, could you (or anyone who has managed to cross
compile under cygwin) possibly check out the following details. I have just
spend three days sat in front of the computer studying FAQs, documents with
tips, make file manuals etc. etc. but just seem to be going around in
circles.

So here's what I have just done, to try to avoid the fact that there was
something basically wrong with my configuration (basic instructions
document "fromcygwin-to-linux-cross-howto.txt" ):

1. Reformated hard disk and re-installed Windows (to be sure nothing left
over from some bad configuration)

2. Downloaded cygwin (again) with the following options (gcc make,
binutils, gcc, perl) Is this list complete for what is absolutely necessary
? (I was advised to install EVERYTHING, even the games - advice which I
have not completely followed - should I ? What is your cygwin installation
like ?)

3. Installed cygwin on computer

4. Copied binutils-2.12.tar.gz and gcc-3.0.4.tar.gz to computer in to
cygwin/tmp (I didn't download them again since the error can hardly be here
- I copied them from another PC)

5. Set up the following environment variables:
  cygwin$ host=i586-pc-cygwin                       (The computer is not
the newest and the native build always gave me this host information)
  cygwin$ build=i586-pc-cygwin
  cygwin$ target=mcore-elf                             (Target is MCORE)
  cygwin$ prefix=/usr/local/mcore
  cygwin$ src_root=/usr/local/src/gnu

6. Extracted binutils and gcc new sources as follows
  cygwin$ cd $src_root
  cygwin$ tar zxf /tmp/gcc-2.95.2.tar.gz
  cygwin$ tar zxf /tmp/binutils-2.10.1.tar.gz

7. Build and install binutils for the mcore
  cygwin$ mkdir -p $src_root/BUILD/binutils
  cygwin$ cd $src_root/BUILD/binutils
  cygwin$ $src_root/binutils-2.10.1/configure \
    --with-included-gettext \
    --target=$target --host=$host --build=$build \
    --prefix=$prefix -v
  cygwin$ make > make.log 2>&1
  cygwin$ make install > install.log 2>&1

This works fine

8. I set the path to the new binutils tools for Mcore
  cygwin$ export PATH=$PATH:$prefix/bin

This I check with   cygwin$ $target-ld --version, which returns GNU ld
version 2.12...(etc)

9. Build GCC for mcore with

  cygwin$ mkdir -p $src_root/BUILD/gcc
  cygwin$ cd $src_root/BUILD/gcc
  cygwin$ $src_root/gcc-2.95.2/configure \
    --enable-languages=c,c++ \
    --with-included-gettext --enable-shared --enable-threads \
    --target=$target --host=$host --build=$build \
    --prefix=$prefix -v

  cygwin$ make > make.log 2>&1


This is where there are still problems. libiberty is built fine and then
some other things, but then there is an abort.
Below is the content of make.log when I repeat make, where the first parts
are not repeated as they are already in place.


Once I have the energy again I may have a last attempt at analysing the
configs and makes to see whether I can understand exactly what is
happening, but up to now I have not been able to understand enough of the
syntax for this to be of great use (I think that I must take a few more
days studying the documentation first).

Maybe you (or some one else) can see what is going wrong. I have added a
couple of comments at the right of the output where there may be something
fundamental:

Thanks if you find the time to help out, I would be grateful for any tips -
I'm gradually loosing hope....

Cheers

Mark

=============================================================


make[1]: Entering directory `/usr/local/src/gnu/BUILD/gcc/libiberty'
make[2]: Entering directory
`/usr/local/src/gnu/BUILD/gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/usr/local/src/gnu/BUILD/gcc/libiberty/testsuite'
make[1]: Leaving directory `/usr/local/src/gnu/BUILD/gcc/libiberty'
make[1]: Entering directory `/usr/local/src/gnu/BUILD/gcc/gcc'
(cd intl && make all)
make[2]: Entering directory `/usr/local/src/gnu/BUILD/gcc/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/gnu/BUILD/gcc/gcc/intl'
(cd po && make all)
make[2]: Entering directory `/usr/local/src/gnu/BUILD/gcc/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/gnu/BUILD/gcc/gcc/po'
make GCC_FOR_TARGET="/usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -B/usr/local/mcore/mcore-elf/bin/
-B/usr/local/mcore/mcore-elf/lib/ -isystem
/usr/local/mcore/mcore-elf/include" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  AR_FOR_TARGET="mcore-elf-ar" \
  AR_CREATE_FOR_TARGET="mcore-elf-ar  rc" \
  AR_FLAGS_FOR_TARGET="" \
  OLDCC="cc" CCLIBFLAGS="-O" \
  CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
  RANLIB_FOR_TARGET="mcore-elf-ranlib" \
  RANLIB_TEST_FOR_TARGET="[ -f mcore-elf-ranlib ] || ( [ "i586-pc-cygwin" =
"mcore-unknown-elf" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
  NM_FOR_TARGET="/usr/local/mcore/mcore-elf/bin/nm.exe" AWK="gawk" \
  LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC   -DDONT_HAVE_STDIO
-DDONT_HAVE_SETJMP  -Dinhibit_libc  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -O3
-DNO_FLOATLIB_FIXUNSDFSI  -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc" \
  INCLUDES="-I. -I. -I/usr/local/src/gnu/gcc-3.0.4/gcc
-I/usr/local/src/gnu/gcc-3.0.4/gcc/.
-I/usr/local/src/gnu/gcc-3.0.4/gcc/config
-I/usr/local/src/gnu/gcc-3.0.4/gcc/../include" MAYBE_USE_COLLECT2="" \
  CONFIG_H="config.h auto-host.h gansidecl.h
/usr/local/src/gnu/gcc-3.0.4/gcc/config/i386/xm-i386.h
/usr/local/src/gnu/gcc-3.0.4/gcc/config/i386/xm-cygwin.h defaults.h hwint.h
tm.h gansidecl.h /usr/local/src/gnu/gcc-3.0.4/gcc/config/mcore/mcore-elf.h
defaults.h insn-codes.h insn-flags.h" MACHMODE_H="machmode.h machmode.def"
\
  LIB1ASMSRC='mcore/lib1.asm' \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/usr/local/src/gnu/BUILD/gcc/gcc'
for d in libgcc big libgcc/big m210 libgcc/m210 big/m210 libgcc/big/m210;
do \
  if [ -d $d ]; then true; else mkdir $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
make[2]: Leaving directory `/usr/local/src/gnu/BUILD/gcc/gcc'
echo timestamp > stmp-multilib
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-B/usr/local/mcore/mcore-elf/bin/ -B/usr/local/mcore/mcore-elf/lib/
-isystem /usr/local/mcore/mcore-elf/include -DCROSS_COMPILE -DIN_GCC  
-DDONT_HAVE_STDIO -DDONT_HAVE_SETJMP  -Dinhibit_libc  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
    -c /usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:8: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:9: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:18: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:85: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:94: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:104: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:105: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:106: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:116: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:117: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:118: warning: function
declaration isn't a prototype
/usr/local/src/gnu/gcc-3.0.4/gcc/libgcc1-test.c:119: warning: function
declaration isn't a prototype
Testing libgcc1.  Ignore linker warning messages.
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-B/usr/local/mcore/mcore-elf/bin/ -B/usr/local/mcore/mcore-elf/lib/
-isystem /usr/local/mcore/mcore-elf/include -DCROSS_COMPILE -DIN_GCC  
-DDONT_HAVE_STDIO -DDONT_HAVE_SETJMP  -Dinhibit_libc  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
 libgcc1-test.o -o libgcc1-test \
  -nostartfiles -nostdlib `/usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -B/usr/local/mcore/mcore-elf/bin/
-B/usr/local/mcore/mcore-elf/lib/ -isystem
/usr/local/mcore/mcore-elf/include --print-libgcc-file-name`
make[1]: Leaving directory `/usr/local/src/gnu/BUILD/gcc/gcc'
Configuring in mcore-elf/libstdc++-v3
loading cache ../config.cache
checking host system type... mcore-unknown-elf
checking target system type... mcore-unknown-elf
checking build system type... i586-pc-cygwin
checking whether ln -s works... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for working aclocal... missing                                  
[ARE THESE IMPORTANT - where do they come from ??]
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found                                  
[THIS WAS MISSING BY PREVIOUS ATTEMPTS, BUT SEEMS TO BE FOUND
                                                                           
                AFTER INSTALLING THE CYGWIN PERL OPTION]

checking for gcc... (cached) /usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -B/usr/local/mcore/mcore-elf/bin/
-B/usr/local/mcore/mcore-elf/lib/ -isystem
/usr/local/mcore/mcore-elf/include
checking whether we are using GNU C... (cached) yes
checking whether /usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -B/usr/local/mcore/mcore-elf/bin/
-B/usr/local/mcore/mcore-elf/lib/ -isystem
/usr/local/mcore/mcore-elf/include accepts -g... (cached) yes
checking for c++... (cached) /usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs
-B/usr/local/mcore/mcore-elf/bin/ -B/usr/local/mcore/mcore-elf/lib/
-isystem /usr/local/mcore/mcore-elf/include
checking whether we are using GNU C++... (cached) yes
checking whether /usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs
-B/usr/local/mcore/mcore-elf/bin/ -B/usr/local/mcore/mcore-elf/lib/
-isystem /usr/local/mcore/mcore-elf/include accepts -g... (cached) yes
checking for mcore-elf-as... (cached) /usr/local/mcore/mcore-elf/bin/as.exe
checking for mcore-elf-ar... (cached) mcore-elf-ar
checking for mcore-elf-ranlib... (cached) mcore-elf-ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
CPU config directory is config/cpu/generic
OS config directory is config/os/generic
checking for ld used by GCC... (cached)
/usr/local/mcore/mcore-elf/bin/ld.exe
checking if the linker (/usr/local/mcore/mcore-elf/bin/ld.exe) is GNU ld...
(cached) yes
checking for /usr/local/mcore/mcore-elf/bin/ld.exe option to reload object
files... (cached) -r
checking for BSD-compatible nm... (cached)
/usr/local/mcore/mcore-elf/bin/nm.exe
checking how to recognise dependant libraries... (cached) unknown
checking for object suffix... (cached) o
checking for mcore-elf-ranlib... (cached) mcore-elf-ranlib
checking for mcore-elf-strip... (cached) mcore-elf-strip
checking how to run the C++ preprocessor... (cached) /lib/cpp
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) yes
checking for objdir... .libs
checking for /usr/local/src/gnu/BUILD/gcc/gcc/xgcc option to produce PIC...
 -fPIC -DPIC
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc PIC flag  -fPIC -DPIC
works... (cached) yes
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc static flag  works...
(cached) no
finding the maximum length of command line arguments... (cached) 393217
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc supports -c -o file.o...
(cached) yes
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc supports -fno-rtti
-fno-exceptions ... yes
checking whether the linker (/usr/local/mcore/mcore-elf/bin/ld.exe)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... no
checking command to parse /usr/local/mcore/mcore-elf/bin/nm.exe output...
failed   [IS THIS]
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
updating cache ../config.cache
loading cache ../config.cache
loading cache ../config.cache within ltconfig
checking host system type... mcore-unknown-elf
checking build system type... i586-pc-cygwin
checking for objdir... .libs
checking for /usr/local/src/gnu/BUILD/gcc/gcc/xgcc option to produce PIC...
-fPIC -DPIC
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc PIC flag -fPIC -DPIC
works... yes
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc static flag -static
works... no
finding the maximum length of command line arguments... (cached) 393217
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc supports -c -o file.o...
(cached) yes
checking if /usr/local/src/gnu/BUILD/gcc/gcc/xgcc supports -fno-rtti
-fno-exceptions ... yes
checking whether the linker (/usr/local/mcore/mcore-elf/bin/ld.exe)
supports shared libraries... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... no
checking command to parse /usr/local/mcore/mcore-elf/bin/nm.exe output...
failed
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool
checking for GNU make... make
checking how to run the C preprocessor... /lib/cpp
checking for cstdio to use... stdio
checking for clocale to use... generic
checking for ISO C99 support in <math.h>... no
checking for ISO C99 support in <stdio.h>... no
checking for lldiv_t declaration... no
checking for ISO C99 support in <stdlib.h>... no
checking for additional ISO C99 support in <wchar.h>... no
checking for enabled ISO C99 support... no
checking for enabled long long I/O support... no
checking for c header strategy to use... c_std
checking for thread model used by GCC... single
checking for exception model to use... configure: error: unable to detect
exception model   [WHAT DOES THIS MEAN ? IS THERE A CONNECTION
                                                                           
                                                       WITH nm.exe failed ?
I DO HAVE nm.exe AT THE
                                                                           
                                                       LOCATION
/usr/local/mcore/mcore-elf/bin]

make: *** [configure-target-libstdc++-v3] Error 1                          
                                   [    THANKS - JUST WHAT I NEED....     
]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]