delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/26/19:23:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <001a01c1bf24$7160ed30$0900a8c0@robot>
From: "David Ryan" <oobles AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Building gcc-2.8.1 cross compiler.
Date: Wed, 27 Feb 2002 11:19:37 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Hi,

I'm attempting to build gcc-2.8.1 cross compiler using the following
configuration..

./configure --target=mipsel-scei-elfl --prefix=/usr/local/ps2dev/iop --with-
gnu-ld --with-gnu-as

I have compiled and installed binutils-2.9.1 into /usr/local/ps2dev/iop
before attempting to make gcc.  I am currently getting the following error.

  echo ${name}; \
  ./xgcc -B./ -O2  -DCROSS_COMPILE -DIN_GCC    -g -I./include  -G
0 -g1 -DIN_LIB
GCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -I. -I. -I./config -c -DL${name}
\
      ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  /usr/local/ps2dev/iop/mipsel-scei-elfl/bin/ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
as: unrecognized option `-G'
make: *** [libgcc2.a] Error 1

I have looked around various news groups and found that xgcc needs the
correct paths for finding as and ld in the
/usr/loca/ps2dev/iop/mipsel-scei-elfl/bin directory and paths can be found
using -print-search-dirs.  I did this and found:

$ ./xgcc -print-search-dirs
install: /usr/local/ps2dev/iop/lib/gcc-lib/mipsel-scei-elfl\2.8.1\
programs:
\usr\local\ps2dev\iop\lib\gcc-lib\mipsel-scei-elfl\2.8.1\:\usr\local\p
s2dev\iop\lib\gcc-lib\mipsel-scei-elfl\:\usr\lib\gcc\mipsel-scei-elfl\2.8.1\
:\us
r\lib\gcc\mipsel-scei-elfl\:\usr\local\ps2dev\iop\mipsel-scei-elfl\bin\mipse
l-sc
ei-elfl\2.8.1\:\usr\local\ps2dev\iop\mipsel-scei-elfl\bin\
libraries:
\usr\local\ps2dev\iop\lib\gcc-lib\mipsel-scei-elfl\2.8.1\:\usr\lib\gc
c\mipsel-scei-elfl\2.8.1\:\usr\local\ps2dev\iop\mipsel-scei-elfl\lib\mipsel-
scei
-elfl\2.8.1\:\usr\local\ps2dev\iop\mipsel-scei-elfl\lib\

Can anyone confirm my suspision that somewhere in the configure script it or
in xgcc it has swapped / for \ and that xgcc won't find the correct as and
ld using these \ ?  Anyone have any ideas about how to fix this?

Thanks,
David.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019