delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/14/16:22:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <00c901befeee$a0fa43a0$656aadcf@qsicorp.com>
Reply-To: "Michael K. Elwood" <mkelwood AT qsicorp DOT com>
From: "Michael K. Elwood" <mkelwood AT qsicorp DOT com>
To: "cygwin cygwin" <cygwin AT sourceware DOT cygnus DOT com>
References: <199909131947 DOT OAA06681 AT mercury DOT xraylith DOT wisc DOT edu>
Subject: Re: Building native Mingw32 tools
Date: Tue, 14 Sep 1999 14:20:46 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

[Headers cleared to avoid clutter]

Mumit Khan wrote:
> Something is fishy. The current sources will never build collect2 for
Mingw
> hosted binaries simply because collect2 will never build.
>
> Please send me the info on the configure lines you've used to build *both*
> the cross-compiler and the canadian cross (ie., native by using cross)
> compiler.
>
> If you look inside <objdir>/gcc/Makefile (for the canadian cross), you
> should see USE_COLLECT2 to be empty (as opposed to `collect2$(exeext)),
> which is overridden by t-mingw32 file.
>
> I have a feeling your configure options may be incorrect when building the
> canadian cross compiler.

I have given some inaccurate information. (Allow me to pause and clear the
egg off of my face). Your answer has helped me figure out what is going on.

The compiler build that has given me trouble is actually for a
mingw32-hosted h8300-targeted cross compiler. Using your information, I just
edited the <objdir>/gcc/Makefile to empty the USE_COLLECT2 variable. Then
the build seemed to work fine.

Now I have a new problem. I packed up the installed compiler and moved it
over to WinNT to test it. I am using bash 2.02.1(2) and make 3.75 that are
distributed with Cygwin B20. When I try a simple build, CPP croaks. Here is
the output:

mike:/archive/dev/ucosbl$ make main.o
h8300-hms-gcc -Wa,-ahld -x
c -O2 -g -c -Wall -mh -malign-300 -funsigned-char -fs
hort-enums -Ic:/tools/h8newlib/include  -o OBJ/main.o SRC/main.c >
LST/main.lst
cpp.exe: Too many arguments
make: *** [OBJ/main.o] Error 1
mike:/archive/dev/ucosbl$

Also, another bit of weirdness that relates to a recent discussion on this
list: After the compiler was built, make install put a cpp.exe in
<installdir>/bin/ as well as in <installdir>/lib/gcc-lib/h8300-hms/2.95/ AND
__they are different executables__!! Here's the version output

mike:/tools/mingw32-x-h8300/lib/gcc-lib/h8300-hms/2.95$ cpp -v
Reading specs from
c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\specs gcc version
2.95 19990728 (release)
c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\cpp.exe -lang-c -
v -iprefix
c:\tools\mingw32-x-h8300\bin\..\lib/gcc-lib/h8300-hms\2.95\ -D__LONG_MAX
__=2147483647L -D__LONG_LONG_MAX__=2147483647L -D__LONG_MAX__=2147483647L -D
__LONG_LONG_MAX__=2147483647L -D__CHAR_UNSIGNED__ -D__H8300__ -D__SIZE_TYPE_
_=unsigned
int -D__PTRDIFF_TYPE__=int -Acpu(h8300) -Amachine(h8300) -D__INT_MAX__=32767
-
GNU CPP version 2.95 19990728 (release) (Hitachi H8/300)
#include "..." search starts here:
#include <...> search starts here:
 c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\include

c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\..\..\..\..\h8300
-hm
s\include
End of search list.
The following default directories have been omitted from the search path:

/tmp/gcc295-mingw32-x-h8300/lib/gcc-lib/h8300-hms/2.95/../../../../include/g
++-
3

/tmp/gcc295-mingw32-x-h8300/lib/gcc-lib/h8300-hms/2.95/../../../../h8300-hms
/sy
s-include
End of omitted list.
cpp.exe: int: No such file or directory

mike:/tools/mingw32-x-h8300/lib/gcc-lib/h8300-hms/2.95$ cd
/tools/mingw32-x-h8300/bin
mike:/tools/mingw32-x-h8300/bin$ cpp -v
Reading specs from
c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\sp
ecs
gcc version 2.95 19990728 (release)

c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\cpp.exe -lang-c -
v -iprefix
c:\tools\mingw32-x-h8300\bin\..\lib/gcc-lib/h8300-hms\2.95\ -D__LONG_MAX
__=2147483647L -D__LONG_LONG_MAX__=2147483647L -D__LONG_MAX__=2147483647L -D
__LONG_LONG_MAX__=2147483647L -D__CHAR_UNSIGNED__ -D__H8300__ -D__SIZE_TYPE_
_=unsigned
int -D__PTRDIFF_TYPE__=int -Acpu(h8300) -Amachine(h8300) -D__INT_MAX__=32767
-
GNU CPP version 2.95 19990728 (release) (Hitachi H8/300)
#include "..." search starts here:
#include <...> search starts here:
 c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\include

c:\tools\mingw32-x-h8300\bin\..\lib\gcc-lib\h8300-hms\2.95\..\..\..\..\h8300
-hms\include
End of search list.
The following default directories have been omitted from the search path:

/tmp/gcc295-mingw32-x-h8300/lib/gcc-lib/h8300-hms/2.95/../../../../include/g
++-3

/tmp/gcc295-mingw32-x-h8300/lib/gcc-lib/h8300-hms/2.95/../../../../h8300-hms
/sys-include
End of omitted list.
cpp.exe: int: No such file or directory
mike:/tools/mingw32-x-h8300/bin$

Any ideas what might be going on here? Thanks!

Best regards,

MKE



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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