Re: [Fink-devel] [Fink-users] gdb overwrites binutils

2010-04-17 Thread Jack Howarth
On Sat, Apr 17, 2010 at 03:16:14AM +0200, Jean-François Mertens wrote:
> (switching the list to fink-devel)
>
...

>
>
> After further small fixes, what I get in detail (on 10.5 / intel)
> for the tests (summary was is my last commit msg, to try getting it  
> earlier to you...) is :
>
> 1) on 32 bit fink :
>> Test Run By root on Sat Apr 17 02:08:13 2010
>> Native configuration is i386-apple-darwin9.8.0
>>
>>  === binutils tests ===
>>
>> Schedule of variations:
>>unix
>>
>> Running target unix
>> Using /sw/share/dejagnu/baseboards/unix.exp as board description file 
>> for target.
>> Using /sw/share/dejagnu/config/unix.exp as generic interface file for 
>> target.
>> Using /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> config/default.exp as tool-and-target-specific interface file.
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/ar.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/arm/objdump.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/bfin/objdump.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/dlltool.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/hppa/objdump.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/m68k/objdump.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/nm.exp ...
>> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/nm-new  
>> 2.20.1.20100303
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/objcopy.exp ...
>> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/objcopy  
>> 2.20.1.20100303
>> FAIL: objcopy (simple copy)
>> FAIL: strip
>> FAIL: strip with saving a symbol
>> FAIL: run objcopy of executable
>> FAIL: run stripped executable
>> FAIL: run stripped executable with saving a symbol
>> ERROR: /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/copytest.s: assembly failed
>> FAIL: copy with setting section flags 3
>> ERROR: /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/localize-hidden-2.s: assembly failed
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/objdump.exp ...
>> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/objdump  
>> 2.20.1.20100303
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/readelf.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/size.exp ...
>> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/size  
>> 2.20.1.20100303
>> FAIL: size (no arguments)
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/vax/objdump.exp ...
>> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> binutils-all/windres/windres.exp ...
>>
>>  === binutils Summary ===
>>
>> # of expected passes 26
>> # of unexpected failures 8
>> # of expected failures   1
>> # of unresolved testcases2
>> # of unsupported tests   1
>
> 2) on 64bit fink :
>> Test Run By root on Sat Apr 17 02:07:58 2010
>> Native configuration is x86_64-apple-darwin9.8.0
>>
>>  === binutils tests ===
>>
>> Schedule of variations:
>>unix
>>
>> Running target unix
>> Using /sw64/share/dejagnu/baseboards/unix.exp as board description  
>> file for target.
>> Using /sw64/share/dejagnu/config/unix.exp as generic interface file  
>> for target.
>> Using /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
>> config/default.exp as tool-and-target-specific interface file.
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/ar.exp ...
>> FAIL: ar symbol table
>> FAIL: ar thin archive
>> FAIL: ar thin archive with nested archive
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/arm/objdump.exp ...
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/bfin/objdump.exp ...
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/dlltool.exp ...
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/hppa/objdump.exp ...
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/m68k/objdump.exp ...
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/nm.exp ...
>> Version /sw64/bld/binutils-2.20.1-3/darwin_objdir/binutils/nm-new  
>> 2.20.1.20100303
>> FAIL: nm (no arguments)
>> FAIL: nm -g
>> FAIL: nm -P
>> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
>> testsuite/binutils-all/objcopy.exp

Re: [Fink-devel] [Fink-users] gdb overwrites binutils

2010-04-17 Thread Jack Howarth
On Sat, Apr 17, 2010 at 03:16:14AM +0200, Jean-François Mertens wrote:
> (switching the list to fink-devel)
>
> On 17 Apr 2010, at 00:06, Jack Howarth wrote:
>
>> Try the updated binutils packaging that I posted on fink tracking...
>>
>> https://sourceforge.net/tracker/?func=detail&aid=2988592&group_id=17203&atid=414256
>
> I'm just running one myself
> I still see problems in the testsuite, including for obldump.
> There was a BuildConflict with dejagnu, which I removed_
> but maybe dejagnu has bad side-effects ? (not sure it is up-to-date  
> either..)
>


>
> I'm now going to update my gcc45 info file to your latest version, and  
> relaunch the
> build on 32bit and 64bit, both with binutils installed, just to check  
> there are no
> other difficulties there.

JF,
  I was testing a bit more empirically. The objdump from my updated
binutils 2.20.1-1 packaging allows the plugin support to build on
the currently posted gcc45 packaging. A quick test under the 64-bit
kernel with x86_64 fink shows...

[MacPro:~] howarth% gcc-4 -O3 -c himenoBMTxpa.c
[MacPro:~] howarth% objdump -T himenoBMTxpa.o

himenoBMTxpa.o: file format mach-o-le

DYNAMIC SYMBOL TABLE:
 l   0e SECT   01  .text _jacobi.clone.1
3890 l   0e SECT   02  .cstring LC3
3893 l   0e SECT   02  .cstring LC4
3896 l   0e SECT   02  .cstring LC5
3898 l   0e SECT   02  .cstring LC6
389a l   0e SECT   02  .cstring LC7
389c l   0e SECT   02  .cstring LC8
389e l   0e SECT   02  .cstring LC9
38a0 l   0e SECT   02  .cstring LC10
38a2 l   0e SECT   02  .cstring LC11
38a5 l   0e SECT   02  .cstring LC12
38a8 l   0e SECT   02  .cstring LC13
38c3 l   0e SECT   02  .cstring LC15
38d1 l   0e SECT   02  .cstring LC16
38eb l   0e SECT   02  .cstring LC17
38ff l   0e SECT   02  .cstring LC18
3915 l   0e SECT   02  .cstring LC19
392b l   0e SECT   02  .cstring LC20
3943 l   0e SECT   02  .cstring LC21
3950 l   0e SECT   02  .cstring LC22
3958 l   0e SECT   02  .cstring LC23
397a l   0e SECT   02  .cstring LC24
3998 l   0e SECT   02  .cstring LC29
39c0 l   0e SECT   02  .cstring LC30
39e8 l   0e SECT   02  .cstring LC33
3a08 l   0e SECT   02  .cstring LC35
3a38 l   0e SECT   02  .cstring LC36
3a60 l   0e SECT   02  .cstring LC37
3a82 l   0e SECT   02  .cstring LC38
3a95 l   0e SECT   02  .cstring LC39
3ab2 l   0e SECT   02  .cstring LC40
3ac0 l   0e SECT   02  .cstring LC41
3a60 l   0e SECT   02  .cstring LC37
3a82 l   0e SECT   02  .cstring LC38
3a95 l   0e SECT   02  .cstring LC39
3ab2 l   0e SECT   02  .cstring LC40
3ac0 l   0e SECT   02  .cstring LC41
3ae0 l   0e SECT   02  .cstring LC43
3ea0 l   0e SECT   04  .bss  _base_sec.2330
3e90 l   0e SECT   04  .bss  _base_usec.2331
3b70 l   0e SECT   07  .eh_frame EH_frame1
2ab0 g   0f SECT   01  .text _clearMat
0d30 g   0f SECT   01  .text _fflop
2de0 g   0f SECT   01  .text _jacobi
0f10 g   0f SECT   01  .text _main
2b00 g   0f SECT   01  .text _mat_set
2c60 g   0f SECT   01  .text _mat_set_init
0d60 g   0f SECT   01  .text _mflops
2a60 g   0f SECT   01  .text _newMat
3b1c g   0f SECT   03  .data _omega
3810 g   0f SECT   01  .text _second
0d80 g   0f SECT   01  .text _set_param
0018 01 UND00 0400 _a
0018 01 UND00 0400 _b
0018 01 UND00 0400 _bnd
0018 01 UND00 0400 _c
 g   01 UND00  _exit
 g   01 UND00  _free
 g   01 UND00  _gettimeofday
 g   01 UND00  _malloc
0018 01 UND00 0400 _p
 g   01 UND00  _printf
 g   01 UND00  _putchar
 g   01 UND00  _puts
 g   01 UND00  _scanf
 g   01 UND00  _strcpy
0018 01 UND00 0400 _wrk1
0018 01 UND00 0400 _wrk2

Frankly, I can imagine a number of r

Re: [Fink-devel] [Fink-users] gdb overwrites binutils

2010-04-17 Thread Jean-François Mertens
(switching the list to fink-devel)

On 17 Apr 2010, at 00:06, Jack Howarth wrote:

> Try the updated binutils packaging that I posted on fink tracking...
>
> https://sourceforge.net/tracker/?func=detail&aid=2988592&group_id=17203&atid=414256

I'm just running one myself
I still see problems in the testsuite, including for obldump.
There was a BuildConflict with dejagnu, which I removed_
but maybe dejagnu has bad side-effects ? (not sure it is up-to-date  
either..)

Realise this mail won't get out before tomorrow
(have to look at my postfix configuration and my router..)
thus putting my files in my exp dir _ so you can see them now.


After further small fixes, what I get in detail (on 10.5 / intel)
for the tests (summary was is my last commit msg, to try getting it  
earlier to you...) is :

1) on 32 bit fink :
> Test Run By root on Sat Apr 17 02:08:13 2010
> Native configuration is i386-apple-darwin9.8.0
>
>   === binutils tests ===
>
> Schedule of variations:
>unix
>
> Running target unix
> Using /sw/share/dejagnu/baseboards/unix.exp as board description  
> file for target.
> Using /sw/share/dejagnu/config/unix.exp as generic interface file  
> for target.
> Using /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> config/default.exp as tool-and-target-specific interface file.
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/ar.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/arm/objdump.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/bfin/objdump.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/dlltool.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/hppa/objdump.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/m68k/objdump.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/nm.exp ...
> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/nm-new  
> 2.20.1.20100303
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/objcopy.exp ...
> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/objcopy  
> 2.20.1.20100303
> FAIL: objcopy (simple copy)
> FAIL: strip
> FAIL: strip with saving a symbol
> FAIL: run objcopy of executable
> FAIL: run stripped executable
> FAIL: run stripped executable with saving a symbol
> ERROR: /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/copytest.s: assembly failed
> FAIL: copy with setting section flags 3
> ERROR: /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/localize-hidden-2.s: assembly failed
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/objdump.exp ...
> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/objdump  
> 2.20.1.20100303
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/readelf.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/size.exp ...
> Version /sw32/bld/binutils-2.20.1-3/darwin_objdir/binutils/size  
> 2.20.1.20100303
> FAIL: size (no arguments)
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/vax/objdump.exp ...
> Running /sw/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> binutils-all/windres/windres.exp ...
>
>   === binutils Summary ===
>
> # of expected passes  26
> # of unexpected failures  8
> # of expected failures1
> # of unresolved testcases 2
> # of unsupported tests1

2) on 64bit fink :
> Test Run By root on Sat Apr 17 02:07:58 2010
> Native configuration is x86_64-apple-darwin9.8.0
>
>   === binutils tests ===
>
> Schedule of variations:
>unix
>
> Running target unix
> Using /sw64/share/dejagnu/baseboards/unix.exp as board description  
> file for target.
> Using /sw64/share/dejagnu/config/unix.exp as generic interface file  
> for target.
> Using /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/testsuite/ 
> config/default.exp as tool-and-target-specific interface file.
> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
> testsuite/binutils-all/ar.exp ...
> FAIL: ar symbol table
> FAIL: ar thin archive
> FAIL: ar thin archive with nested archive
> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
> testsuite/binutils-all/arm/objdump.exp ...
> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
> testsuite/binutils-all/bfin/objdump.exp ...
> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
> testsuite/binutils-all/dlltool.exp ...
> Running /sw64/bld/binutils-2.20.1-3/binutils-2.20.1/binutils/ 
> testsuite/binutils-all/hppa/objdump.exp ...
> Running /sw64/bld/binutils-2.20.1-3/bin