[Bug binutils/14422] New: builds 2.22.90 fails on make on Mac OS X 10. 10.4.11 (8S165)

2012-07-31 Thread gilles.charabot at free dot fr
http://sourceware.org/bugzilla/show_bug.cgi?id=14422

 Bug #: 14422
   Summary: builds 2.22.90 fails on make on Mac OS X 10. 10.4.11
(8S165)
   Product: binutils
   Version: 2.22
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sourceware.org
ReportedBy: gilles.chara...@free.fr
Classification: Unclassified


I want to compile binutil-2.22.90. No patch applied. Machine I use Powermac G4
( 450 MHz * 2 ) Gigabit Ethernet. I use Mac OS X 10. 10.4.11 (8S165).

gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370)
Copyright (C) 2005 Free Software Foundation, Inc.

power-mac-g4-de-gilles-charabot:/usr/local/bin root# /usr/local/bin/autoconf
--version
autoconf (GNU Autoconf) 2.69

power-mac-g4-de-gilles-charabot:~/binutils-2.22.90/objdir root# printenv
MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11R6/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/usr/local/man:/opt/subversion/man
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/sh
TERM=xterm-color
TERM_PROGRAM_VERSION=133-1
OLDPWD=/var/root/binutils-2.22.90
USER=root
__CF_USER_TEXT_ENCODING=0x0:0:91
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/opt/subversion/bin
PWD=/var/root/binutils-2.22.90/objdir
HOME=/var/root
SHLVL=2
LOGNAME=root
PKG_CONFIG_PATH=/usr/lib/pkgconfig
SECURITYSESSIONID=1881490
_=/usr/bin/printenv


output of make :

power-mac-g4-de-gilles-charabot:~/binutils-2.22.90/objdir root# make
if [ -r sysinfo.c ]; then \
  gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror
 -Wno-error sysinfo.c ; \
else \
  gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror
 -Wno-error ../binutils/sysinfo.c ; \
fi
gcc -c -I. -I../binutils -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Werror  -Wno-error ../binutils/syslex_wrap.c
gcc   -o sysinfo sysinfo.o syslex_wrap.o
./sysinfo -d <../binutils/sysroff.info >sysroff.h
Making info in doc
if test -f cxxfilt.man; then \
  man=cxxfilt.man; \
else \
  man=../../binutils/doc/cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/c++filt/' \
-e 's/cxxfilt/c++filt/' < $man \
> c++filt.1
Making info in po
make[1]: Nothing to be done for `info'.
make[1]: Nothing to be done for `info-am'.
make  all-recursive
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
gcc -DHAVE_CONFIG_H -I. -I../binutils  -I. -I../binutils -I../bfd
-I../binutils/../bfd -I../binutils/../include
-DLOCALEDIR="\"/usr/local/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation -I/usr/local/include -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT size.o -MD
-MP -MF .deps/size.Tpo -c -o size.o ../binutils/size.c
In file included from ../binutils/size.c:33:
../binutils/sysdep.h:30:20: error: bfdver.h: No such file or directory
../binutils/size.c: In function 'usage':
../binutils/size.c:98: error: 'REPORT_BUGS_TO' undeclared (first use in this
function)
../binutils/size.c:98: error: (Each undeclared identifier is reported only once
../binutils/size.c:98: error: for each function it appears in.)
make[2]: *** [size.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



** End of the output ok make

I want to improve the demo browser inside Qt4.6.4 with libraries I Compile and
then compile again Qt4.6.4. The demo browser works better after these
operations.

List of compiled software before trying to compile binutils in /usr/local/bin :
power-mac-g4-de-gilles-charabot:/usr/local/bin root# ls -aiFGl  
total 369928
 761958 drwxr-xr-x   256 root  wheel  8704 Jul 30 21:41 ./
 416746 drwxr-xr-x19 root  wheel   646 Jul 27 18:29 ../
 762288 -rw-r--r-- 1 root  wheel  6148 Apr 26  2011 .DS_Store
3912157 lrwxr-xr-x 1 root  wheel66 Jul 14 17:52 2to3@ ->
../../../Library/Frameworks/Python.framework/Versions/3.2/bin/2to3
3912158 lrwxr-xr-x 1 root  wheel70 Jul 14 17:52 2to3-3.2@ ->
../../../Library/Frameworks/Python.framework/Versions/3.2/bin/2to3-3.2
4665310 -rwxr-xr-x 1 root  wheel 0 Jul 27 13:58 a2x.py*
4264399 -rwxr-xr-x 2 root  wheel 31060 Jul 17 21:55 aclocal*
4264399 -rwxr-xr-x 2 root  wheel 31060 Jul 17 21:55 aclocal-1.12*
4166481 -rwxr-xr-x 1 root  wheel   2191744 Jul 17 11:01 addr2line*
4166477 -rwxr-xr-x 2 root  wheel   2253308 Jul 17 11:01 ar*
4665309 -rwxr-xr-x 1 root  wheel 0 Jul 27 13:58 asciidoc.py*
4262023 -rwxr-xr-x 1 root  wheel 14774 Jul 17 18:12 autoconf*
4262024 -rwxr-xr-x 1 root  wheel  8546 Jul 17 18:12 autoheader*
4262022 -rwxr-xr-x 1 root  wheel 32199 Jul 17 18:12 autom4te*
4264398 -rwxr-xr-x 2 root  wheel255757 Jul 17 21:55 automake*
42643

[Bug binutils/14422] builds 2.22.90 fails on make on Mac OS X 10. 10.4.11 (8S165)

2012-07-31 Thread gilles.charabot at free dot fr
http://sourceware.org/bugzilla/show_bug.cgi?id=14422

gilles.charabot at free dot fr changed:

   What|Removed |Added

 Target||powerpc-apple-darwin8/4.0.1
   Host||powerpc-apple-darwin8/4.0.1
  Build||powerpc-apple-darwin8/4.0.1

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/14422] builds 2.22.90 fails on make on Mac OS X 10.4.11 (8S165)

2012-07-31 Thread gilles.charabot at free dot fr
http://sourceware.org/bugzilla/show_bug.cgi?id=14422

gilles.charabot at free dot fr changed:

   What|Removed |Added

Summary|builds 2.22.90 fails on |builds 2.22.90 fails on
   |make on Mac OS X 10.|make on Mac OS X 10.4.11
   |10.4.11 (8S165) |(8S165)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/14422] builds 2.22.90 fails on make on Mac OS X 10.4.11 (8S165)

2012-07-31 Thread gilles.charabot at free dot fr
http://sourceware.org/bugzilla/show_bug.cgi?id=14422

gilles.charabot at free dot fr changed:

   What|Removed |Added

 CC||gilles.charabot at free dot
   ||fr

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/14156] --sort-section=alignment trashes init/fini sections, and anything similar

2012-07-31 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14156

--- Comment #6 from cvs-commit at gcc dot gnu.org  2012-07-31 20:45:14 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2012-07-31 20:45:02

Modified files:
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: fini0.s foo0.s init0.s pr14156c.t 

Log message:
Update PR ld/14156 tests

* ld-elf/fini0.s: Indent global directive.
* ld-elf/foo0.s: Likewise.
* ld-elf/init0.s: Likewise.

* ld-elf/pr14156c.t: Keep text section.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1579&r2=1.1580
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/fini0.s.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/foo0.s.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/init0.s.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr14156c.t.diff?cvsroot=src&r1=1.1&r2=1.2

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/14156] --sort-section=alignment trashes init/fini sections, and anything similar

2012-07-31 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14156

--- Comment #7 from cvs-commit at gcc dot gnu.org  2012-08-01 01:03:51 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2012-08-01 01:03:47

Modified files:
ld : ChangeLog ldlang.c 
ld/scripttempl : elf.sc elf32msp430.sc elf32msp430_3.sc 
 elfd10v.sc elfd30v.sc elfxtensa.sc 

Log message:
Don't call compare_section in case of by_none

PR ld/14156
* ldlang.c (wild_sort): Don't call compare_section in case of
by_none.

* scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2472&r2=1.2473
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=src&r1=1.397&r2=1.398
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elf.sc.diff?cvsroot=src&r1=1.113&r2=1.114
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elf32msp430.sc.diff?cvsroot=src&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elf32msp430_3.sc.diff?cvsroot=src&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elfd10v.sc.diff?cvsroot=src&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elfd30v.sc.diff?cvsroot=src&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elfxtensa.sc.diff?cvsroot=src&r1=1.26&r2=1.27

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


Re: Memory leaks in libbfd, trace provided

2012-07-31 Thread Alan Modra
On Mon, Jul 30, 2012 at 09:22:15AM -0400, Alexis Naveros wrote:
> I have some code which is using libbfd (binutils 2.22) abundantly, and I
> couldn't help but notice memory usage grow to a couple GB after a while.
> I'm of course calling bfd_close() for every bfd opened, but some memory
> allocated from within libbfd.so is never freed.

Thanks for the report.  I'm applying the following to mainline
binutils.  The patch will need to be applied by hand to binutils-2.22.

* dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
(_bfd_dwarf2_slurp_debug_info): Set close_on_cleanup if we open
gnu_debuglink bfd.
(_bfd_dwarf2_cleanup_debug_info): Act on close_on_cleanup.

Index: bfd/dwarf2.c
===
RCS file: /cvs/src/src/bfd/dwarf2.c,v
retrieving revision 1.150
diff -u -p -r1.150 dwarf2.c
--- bfd/dwarf2.c26 Jul 2012 18:20:39 -  1.150
+++ bfd/dwarf2.c1 Aug 2012 01:24:18 -
@@ -173,6 +173,9 @@ struct dwarf2_debug
 #define STASH_INFO_HASH_OFF0
 #define STASH_INFO_HASH_ON 1
 #define STASH_INFO_HASH_DISABLED   2
+
+  /* True if we opened bfd_ptr.  */
+  bfd_boolean close_on_cleanup;
 };
 
 struct arange
@@ -3206,6 +3209,7 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd,
   if (! stash)
 return FALSE;
   stash->debug_sections = debug_sections;
+  stash->syms = symbols;
 
   *pinfo = stash;
 
@@ -3235,7 +3239,9 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd,
  free (debug_filename);
  return FALSE;
}
+  stash->close_on_cleanup = TRUE;
 }
+  stash->bfd_ptr = debug_bfd;
 
   /* There can be more than one DWARF2 info section in a BFD these
  days.  First handle the easy case when there's only one.  If
@@ -3293,9 +3299,6 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd,
   stash->info_ptr_end = stash->info_ptr + total_size;
   stash->sec = find_debug_info (debug_bfd, debug_sections, NULL);
   stash->sec_info_ptr = stash->info_ptr;
-  stash->syms = symbols;
-  stash->bfd_ptr = debug_bfd;
-
   return TRUE;
 }
 
@@ -3689,4 +3692,6 @@ _bfd_dwarf2_cleanup_debug_info (bfd *abf
 free (stash->dwarf_ranges_buffer);
   if (stash->info_ptr_memory)
 free (stash->info_ptr_memory);
+  if (stash->close_on_cleanup)
+bfd_close (stash->bfd_ptr);
 }

-- 
Alan Modra
Australia Development Lab, IBM

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/14422] builds 2.22.90 fails on make on Mac OS X 10.4.11 (8S165)

2012-07-31 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14422

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||amodra at gmail dot com
 Resolution||INVALID

--- Comment #1 from Alan Modra  2012-08-01 05:41:42 
UTC ---
Looks to me like you are trying to build just the binutils subdirectory.  Run
configure from the parent dir.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/14423] New: Assembler doesn't recognize fma3 instructions in bdver2 core

2012-07-31 Thread saravanan.ekanathan at amd dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14423

 Bug #: 14423
   Summary: Assembler doesn't recognize fma3 instructions in
bdver2 core
   Product: binutils
   Version: 2.23 (HEAD)
Status: NEW
  Severity: normal
  Priority: P3
 Component: gas
AssignedTo: unassig...@sourceware.org
ReportedBy: saravanan.ekanat...@amd.com
Classification: Unclassified


bdver2 core supports both fma3 and fma4 instructions. 
Right now, opcodes for bdver2 supports fma4 instructions only.

$  cat bdver2.s
 vfnmadd132ss (%rsi,%rax,4),%xmm1,%xmm0 

$  $GAS bdver2.s -march=bdver2
 bdver2.s: Assembler messages:
 bdver2.s:1: Error: `vfnmadd132ss' is not supported on `bdver2'

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/14423] Assembler doesn't recognize fma3 instructions in bdver2 core

2012-07-31 Thread saravanan.ekanathan at amd dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14423

Saravanan  changed:

   What|Removed |Added

 CC||saravanan.ekanathan at amd
   ||dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils