|
From: Chris B. <ki...@bi...> - 2003-06-09 01:42:30
|
Luke and others who responded to my original message,
Many thanks for your offer of advice etc. Just got back to this after
having to work on other things.
To repeat what my needs are - I need a tool chain that executes under
Windows 2000 to build applications to run on i386 linux.
My system:
Windows 2000 SP 3, on AMD Athlon XP1700+, 256MB RAM
Installed:
MinGW-2.0.0.3.exe
MSYS-1.0.8.exe
Obtained copies of:
binutils-2.13.90-20030111-1-src.tar.gz
gcc-3.2.3-20030504-1-src.tar.gz
Placed these in directory:
~/xmingw
Changed directory to:
~/xmingw
Executed:
gzip -dc binutils-2.13.90-20030111-1-src.tar.gz | tar xf -
mv binutils-2.13.90-20030111-1-src binutils-2.13.90-20030111-1
cd binutils-2.13.90-20030111-1 && ./configure \
--target=i386-pc-linux-gnu \
--prefix=/opt/xmingw32 \
> ../binutils-configure.log 2>&1
cd binutils-2.13.90-20030111-1 && \
make "CFLAGS=-2 -O2" > ../binutils-build.log 2>&1
(Note: 'mv' line is because binutils-2.13.90-20030111-1-src.tar.gz
unzips atypically to binutils-2.13.90-20030111-1-src rather than
binutils-2.13.90-20030111-1 and I like to keep things tidy!)
There does not appear to be anything unexpected in the
binutils-configure.log.
The make however fails with the relevant lines in binutils.build.log
being:
make[2]: Entering directory `/home/kit/xmingw/binutils-2.13.90-20030111-1/intl'
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 intl-compat.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 bindtextdom.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 dcgettext.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 dgettext.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 gettext.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 finddomain.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 loadmsgcat.c
gcc -c -DLOCALEDIR=\"/opt/xmingw32/share/locale\" -DGNULOCALEDIR=\"/opt/xmingw32/share/locale\" -DLOCALE_ALIAS_PATH=\"/opt/xmingw32/share/locale:.\" -DHAVE_CONFIG_H -I. -I. -s -O2 localealias.c
localealias.c:156:42: warning: unknown escape sequence '\M'
localealias.c:156:42: warning: unknown escape sequence '\o'
localealias.c:156:42: \x used with no following hex digits
localealias.c:156:42: warning: unknown escape sequence '\s'
localealias.c:156:42: warning: unknown escape sequence '\l'
make[2]: *** [localealias.o] Error 1
On examining localealias.c, it would appear that the problem is
related to the ":." at the end of aliaspath in
binutils-2.13.90-20030111-1/intl/Makefile.
At least, removing the :. does fix this problem even if it isn't the
correct solution.
With this change (even if not totally appropriate), binutils build
seems to complete OK.
I now execute:
cd binutils-2.13.90-20030111-1 && \
make install > ../binutils-install.log 2>&1
This fails and the last few relevant lines of binutils-install.log
are:
make[4]: Entering directory `/home/kit/xmingw/binutils-2.13.90-20030111-1/bfd/doc'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/kit/xmingw/binutils-2.13.90-20030111-1/bfd/doc'
gcc -c -I.. -I./.. -I./../../include -I./../../intl -I../../intl -g -O2 ./chew.c
0 [main] sh 1352 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
make[3]: *** [chew.o] Segmentation fault (core dumped)
The contents of sh.exe.stackdump are:
Exception: STATUS_ACCESS_VIOLATION at eip=710980DD
eax=312E322C ebx=0A0252D8 ecx=00000108 edx=00000109 esi=0A0253D8 edi=0A0252D0
ebp=0022E1F8 esp=0022E1D0 program=F:\MSys\bin\sh.exe
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame Function Args
0022E1F8 710980DD (710A4020, 0A0252D8, 0022E238, 7109008E)
0022E218 710308B5 (0A0252D8, 0000120E, 0022E5D8, 710434C7)
0022E238 71030728 (0A0252D8, 0A028A58, 534D2F3A, 6C2F7379)
0022E5D8 71044477 (0A01BFDC, 0A0275C0, 0022F9B8, 71061A45)
0022F9B8 71061A55 (00000000, 0A019160, 0A019818, 0A019570)
0022F9F8 710635FA (00000000, 00000003, 0A019160, 0A019818)
0022FA28 71010A9B (0A019160, 0A019818, 0A019570, 710A4020)
0022FA48 7108CF76 (0A019160, 0A019818, 0A019570, 710A92E4)
0022FB18 004127A4 (0A019160, 0A019818, 0A019570, 0042B3C4)
0022FB74 00412706 (0A019360, 00000000, 0A0190F8, FFFFFFFF)
0022FBF4 00411CA7 (0A018E10, FFFFFFFF, FFFFFFFF, 00000000)
0022FC54 0040E9C6 (0A018DF8, 00000000, FFFFFFFF, FFFFFFFF)
0022FCA4 004499BB (0A0188A8, 004022F9, 00000004, 00402F6E)
0022FCD4 00403180 (7159F28C, 710A4368, 0022FD74, 00401858)
0022FD74 00401873 (00000003, 715A03FC, 0A010278, 00000000)
0022FE70 71004568 (00000000, 00000000, 0022BA04, 8044CC2E)
End of stack trace (more stack frames may be present)
My apologies for the length of this message.
Any help would be most appreciated. I have been fighting this problem
for some time now and no matter what I do I just don't seem to get
anywhere.
Best regards,
Chris Bishop
Thursday, June 5, 2003, 10:35:09 PM, you wrote:
LD> I don't know where you would find instructions except perhaps on the mailing
LD> list archives (I seem to recall users building MinGW-hosted cross-compilers
LD> for arm-pe or something). Anyway, what exact troubles are you having? Is the
LD> problem with building a cross-binutils or have you already done that and are
LD> trying GCC? Perhaps most importantly, are you using the MSYS shell or Cygwin
LD> or ...? BTW, if you are using the official source releases of binutils/GCC
LD> you might want to try the patched MinGW source instead (the latest
LD> versions).
LD> Luke
LD> ----- Original Message -----
LD> From: "Chris Bishop" <ki...@bi...>
LD> To: <min...@li...>
LD> Sent: Thursday, June 05, 2003 1:09 PM
LD> Subject: [Mingw-users] How to build a cross compiler
>> I have been attempting to build a cross compiler that runs under
>> Windows 2000 but which generates code for i386/linux.
>>
>> I have had little success so far.
>>
>> I would be most grateful if anyone could point me at a source of
>> information on how to do this.
>>
>> Best regards,
>>
>> Chris Bishop
LD> -------------------------------------------------------
LD> This SF.net email is sponsored by: Etnus, makers of TotalView, The best
LD> thread debugger on the planet. Designed with thread debugging features
LD> you've never dreamed of, try TotalView 6 free at www.etnus.com.
LD> _______________________________________________
LD> MinGW-users mailing list
LD> Min...@li...
LD> You may change your MinGW Account Options or unsubscribe at:
LD> https://lists.sourceforge.net/lists/listinfo/mingw-users
|