From: Craig Carey <research@ijs.co.nz>
Subject: Re: gcc 3.4.2 Ada
Date: Mon, 27 Sep 2004 22:01:37 +1200
Date: 2004-09-27T22:01:37+12:00 [thread overview]
Message-ID: <m6kfl0p8ph332c8sjss2es2p4s37qcjfif@4ax.com> (raw)
In-Reply-To: uwtyh9z6q.fsf@obry.org
On 26 Sep 2004 11:06:37 +0200, Pascal Obry <pascal@obry.org> wrote:
>
>Jeffrey Carter <spam@spam.com> writes:
>
>> There also appears to be a set of files that you have to download if you
>> don't have mingw installed. Now we're getting into the area of 5 files.
>
>Indeed, you also need the mingw runtime, binutils and win32 packages. But this
>is no that terrible.
>
>Pascal.
AdaCore seems to be withholding changes to Gdb. The reasonong I got
(from Mr Hilfinger of AdaCore) was incomplete or wrong or incorrect or
hazy or wrong.
Below are instructions on how to compile the CVS gdb in Cygwin.
$ export PATH=/l/mingw/bin:$PATH # :set up is simpler in last version
$ gcc -v
Reading specs from l:/mingw/bin/../lib/gcc/mingw32/3.4.1/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c,c++,f77,ada,objc,java
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java -awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
--enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.1 (mingw special)
$ L:/mingw/bin/gnatmake ptun.adb \
-IJ:/Ada/Obj -I...[lines of -I includes].. \
-gnata -gnato -gnatq -gnatf -gnatU -i -O0 -g -gnatVa -gnatwacfHlpru \
-bargs -E -p -we -O -s -static -r \
-largs -v -v -L. -luser32 -lgdi32 -lcomdlg32 -lwsock32 -laddr2line
The copmpilation almost succeeds.
...
gnatlink ptun.ali -g -v -v -L. -luser32 -lgdi32 -lcomdlg32 -lwsock32
-laddr2line
...
Thread model: win32
gcc version 3.4.1 (mingw special)
l:/mingw/bin/../libexec/gcc/mingw32/3.4.1/collect2.exe -Bdynamic -o ptun
...
/ptun3-fg.o ./ptun4.o -luser32 -lgdi32 -lcomdlg32 -lwsock32 -laddr2line l
:/mingw/lib/gcc/mingw32/3.4.1/adalib/libgnarl.a l:/mingw/lib/gcc/mingw32/
3.4.1/adalib/libgnat.a --stack=0x800000,0x1000 -lbfd -liberty -lmingwthrd
-lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladva
pi32 -lshell32 -lmingwthrd -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
l:/mingw/bin/../lib/gcc/mingw32/3.4.1/crtend.o
J:/Ada/tope/src/Tope\/libaddr2line.a(gnaddr2line.o)(.text+0x17d):gnaddr2l
ine.c: undefined reference to `bfd_scan_vma'
J:/Ada/tope/src/Tope\/libaddr2line.a(gnaddr2line.o)(.text+0x1c2):gnaddr2l
ine.c: undefined reference to `bfd_map_over_sections'
J:/Ada/tope/src/Tope\/libaddr2line.a(gnaddr2line.o)(.text+0x3ed):gnaddr2l
ine.c: undefined reference to `bfd_openr'
...
J:/Ada/tope/src/Tope\/libaddr2line.a(budemang.o)(.text+0xd5):budemang.c:
undefined reference to `xstrdup'
collect2: ld returned 1 exit status
gnatlink: cannot call l:\mingw\bin\gcc.exe
gnatmake: *** link failed.
How to compile Gdb in Cygwin. The GUI stuff does not build, in Win32
[1] Edit the "configure" file and change the line
noconfigdirs=""
into:
noconfigdirs="tcl expect"
The Cygwin Gcc 3.3.3 can be used:
../src/configure --disable-tui --disable-shared --prefix=....
make all
The result is not Ada aware.
I conclude that AdaCore is keeping the Ada awareness feature out of
Gdb.
Not much of the new Gdb (Ada aware) source code is sent up to Redhat.
The withholding is about maximal. The criterion for disclosure seems to
be: upload if C programmers have to adapt eventually to some AdaCore
change.
When I built the Gdb of September 2004. it not understand that ".all"
dereferences a pointer, and that major bug of Gvd 3.15 and Gdb bungling
the interpretation of path names, is still not fixed (and I even sent in
a bug report complaining that the last usable free Gvd+Gdb duo, was of
version 3.14p).
I don't know what reasoning is provided to AdaCore paying customers
in Germany and USA.
-- Craig Carey
next prev parent reply other threads:[~2004-09-27 10:01 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-25 3:29 gcc 3.4.2 Ada Fionn mac Cuimhaill
2004-09-25 7:25 ` CBFalconer
2004-09-25 9:37 ` Per Dalgas Jakobsen
2004-09-25 13:56 ` Pascal Obry
2004-09-25 13:55 ` Pascal Obry
2004-09-25 20:46 ` Jeffrey Carter
2004-09-25 21:30 ` Jeff C r e e.m
2004-09-26 0:37 ` Jeffrey Carter
[not found] ` <uwtyh9z6q.fsf@obry.org>
2004-09-27 8:52 ` Alex R. Mosteo
2004-09-27 12:45 ` Georg Bauhaus
2004-09-27 10:01 ` Craig Carey [this message]
2004-09-27 11:23 ` Jeff C r e e.m
2004-09-28 11:45 ` Craig Carey
2004-09-28 13:04 ` Craig Carey
2004-09-27 16:07 ` Pascal Obry
2004-09-26 2:01 ` Cesar Rabak
2004-09-26 9:03 ` Pascal Obry
2004-09-26 17:33 ` Jerry van Dijk
2004-09-26 18:14 ` Ludovic Brenta
2004-09-26 19:39 ` Jerry van Dijk
2004-10-03 10:18 ` Stephane Riviere
2004-10-03 19:09 ` Jerry van Dijk
2004-10-04 15:49 ` Stephane Riviere
2004-10-04 19:07 ` CBFalconer
2004-10-05 2:51 ` Steve
2004-10-05 6:45 ` [OT] " CBFalconer
2004-10-05 16:48 ` Stephane Riviere
2004-10-01 12:53 ` Florian Weimer
[not found] ` <daqum0hce28ngv9fpi64n4vg016f28qas3@4ax.com>
2004-10-15 17:31 ` Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox