[Bug binutils/12666] New: I am getting an error while building binutils for crosstool-ng-1.6.1

2011-04-12 Thread pradconf at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12666

   Summary: I am getting an error while building binutils for
crosstool-ng-1.6.1
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: critical
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sources.redhat.com
ReportedBy: pradc...@gmail.com


Created attachment 5663
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5663
Screen shot of error while building binutils for crosstool-ng-1.6.1

I am able to configure the menu screen. I am getting this error while
attempting to build the gcc tool chain
I am getting the following error while installing crosstool-ng-1.6.1. It is an
error arising while building binutils

[INFO ]  Installing binutils
[EXTRA]Configuring binutils
[EXTRA]Building binutils
[ERROR]make[2]: *** [configure-ld] Error 1
[ERROR]make[1]: *** [all] Error 2
[ERROR]Build failed in step 'Installing binutils'
[ERROR]Error happened in
'/home/pradeep/crosstool-ng-1.6.1/scripts/functions' in function 'CT_DoExecLog'
(line unknown, sorry)
[ERROR]  called from
'/home/pradeep/crosstool-ng-1.6.1/scripts/build/binutils/binutils.sh' at line #
51 in function 'do_binutils'
[ERROR]  called from
'/home/pradeep/crosstool-ng-1.6.1/scripts/crosstool-NG.sh' at line # 562 in
function 'main'
[ERROR]Look at '/home/pradeep/x-tools/alphaev4-unknown-elf/build.log' for
more info on this error.
[ERROR]  (elapsed: 59:01.00)
[59:02] / make: *** [build] Error 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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12658] ld: potential infinite loop and memory leaks when link many object files

2011-04-12 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12658

Nick Clifton  changed:

   What|Removed |Added

 Status|ASSIGNED|WAITING

--- Comment #7 from Nick Clifton  2011-04-12 10:18:29 
UTC ---
Hi Dongsheng,

  I am sorry - I am currently unable to build the mingw-w64 cross compiler
using the gcc-4.6-windows-x86.sh script.  It fails building the CRT with:

  configure: error: Please check if the mingw-w64 header set and the build/host
option are set properly.
  make: *** No targets specified and no makefile found.  Stop.
  [2011-04-12 10:03:38] Build Mingw-w64 crt failed

I suspected that something like this might happen. :-(

Are you able to run the linker under GDB and maybe find out where the infinite
loop is happening ?

Cheers
  Nick

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb

2011-04-12 Thread dave.martin at linaro dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12534

--- Comment #2 from Dave Martin  2011-04-12 
10:35:21 UTC ---
(In reply to comment #1)
> Hi Dave,
> 
>   I believe that this problem is fixed now.  Please could you check locally 
> and
> confirm ?
> 
> Cheers
>   Nick

This doesn't seem to work for me.  As before, the disassembly works as expected
in ARM, but not in Thumb:

binutils$ cat CVS/Root 
:pserver:anon...@sourceware.org/cvs/src

binutils$ TZ= cvs -z6 update -D'2011-04-12 09:30'
[...]

binutils$ ./configure --build=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--target=arm-elf-eabi && make
[...]

binutils$ cat 

[Bug gas/12532] arm: gas may assemble b to locally-defined, preemptible global symbol as "b.n"

2011-04-12 Thread dave.martin at linaro dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12532

--- Comment #4 from Dave Martin  2011-04-12 
10:39:08 UTC ---
(In reply to comment #3)
> Hi Dave,
> 
>   I think that we should be supporting the possibility of symbol preemption. 
> So
> please could you try out the uploaded patch and let me know if it resolves the
> problem for you.
> 
> Cheers
>   Nick
> 
> PS.  Hmm, I wonder if we should support a command line feature to
> enable/disable this behaviour, and what the default setting should be...

Your patch in http://sourceware.org/bugzilla/show_bug.cgi?id=12532#c2 seems to
fix my instance of the problem.

Do you know when this is likely to get merged?  I don't see it in binutils
trunk yet.

Cheers
---Dave

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12532] arm: gas may assemble b to locally-defined, preemptible global symbol as "b.n"

2011-04-12 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12532

--- Comment #5 from cvs-commit at gcc dot gnu.org  2011-04-12 11:47:41 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-04-12 11:47:38

Modified files:
gas: ChangeLog 
gas/config : tc-arm.c 

Log message:
PR gas/12532
* config/tc-arm.c (relax_branch): Do not relax branches to
preemptable global symbols.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.4464&r2=1.4465
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-arm.c.diff?cvsroot=src&r1=1.479&r2=1.480

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12532] arm: gas may assemble b to locally-defined, preemptible global symbol as "b.n"

2011-04-12 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12532

Nick Clifton  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #6 from Nick Clifton  2011-04-12 11:49:05 
UTC ---
Hi Dave

> Do you know when this is likely to get merged?  I don't see it in binutils
> trunk yet.

That would be because I was waiting for your agreement that the patch worked...

Anyway it is all checked in now.

Cheers
  Nick

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12532] arm: gas may assemble b to locally-defined, preemptible global symbol as "b.n"

2011-04-12 Thread dave.martin at linaro dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12532

--- Comment #7 from Dave Martin  2011-04-12 
12:14:19 UTC ---
On Tue, Apr 12, 2011 at 12:49 PM, nickc at redhat dot com
 wrote:
> http://sourceware.org/bugzilla/show_bug.cgi?id=12532
>
> Nick Clifton  changed:
>
>           What    |Removed                     |Added
> 
>             Status|WAITING                     |RESOLVED
>         Resolution|                            |FIXED
>
> --- Comment #6 from Nick Clifton  2011-04-12 
> 11:49:05 UTC ---
> Hi Dave
>
>> Do you know when this is likely to get merged?  I don't see it in binutils
>> trunk yet.
>
> That would be because I was waiting for your agreement that the patch 
> worked...
>
> Anyway it is all checked in now.

OK!  Thanks

---Dave

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb

2011-04-12 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12534

--- Comment #3 from Nick Clifton  2011-04-12 15:40:19 
UTC ---
Created attachment 5666
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5666
Decode addresses used by LDRD and STRD insns.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb

2011-04-12 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12534

--- Comment #4 from Nick Clifton  2011-04-12 15:40:58 
UTC ---
Hi Dave,

  Please could you try out the uploaded patch and let me know if it works for
you.

Cheers
  Nick

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12532] arm: gas may assemble b to locally-defined, preemptible global symbol as "b.n"

2011-04-12 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12532

--- Comment #8 from cvs-commit at gcc dot gnu.org  2011-04-12 15:44:40 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-04-12 15:44:36

Modified files:
gas/testsuite  : ChangeLog 
gas/testsuite/gas/arm: weakdef-1.d plt-1.d thumb2_bcond.d 

Log message:
PR gas/12532
* gas/arm/plt-1.d: Update expected disassembly.
* gas/arm/thumb2_bcond.d: Likewise.
* gas/arm/weakdef-1.d: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1882&r2=1.1883
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/arm/weakdef-1.d.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/arm/plt-1.d.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/arm/thumb2_bcond.d.diff?cvsroot=src&r1=1.6&r2=1.7

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb

2011-04-12 Thread dave.martin at linaro dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12534

--- Comment #5 from Dave Martin  2011-04-12 
15:50:30 UTC ---
(In reply to comment #4)
> Hi Dave,
> 
>   Please could you try out the uploaded patch and let me know if it works for
> you.
> 
> Cheers
>   Nick

Yes, that seems to work for me now.

Cheers
---Dave

Disassembly of section .text:

 :
...

0008 :
   8:e95f 0103 ldrdr0, r1, [pc, #-12]; 0 
   c:46c0  nop; (mov r8, r8)
   e:e95f 0104 ldrdr0, r1, [pc, #-16]; 0 
  12:f85f 0014 ldr.wr0, [pc, #-20]; 0 
  16:46c0  nop; (mov r8, r8)
  18:f85f 001c ldr.wr0, [pc, #-28]; 0 

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb

2011-04-12 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12534

--- Comment #6 from cvs-commit at gcc dot gnu.org  2011-04-12 16:01:53 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-04-12 16:01:49

Modified files:
opcodes: ChangeLog arm-dis.c 
gas/testsuite  : ChangeLog 
gas/testsuite/gas/arm: thumb32.d thumb32.l thumb32.s 

Log message:
PR binutils/12534
* arm-dis.c (thumb32_opcodes): Add %L suffix to LDRD and STRD insn
patterns.
(print_insn_thumb32): Handle %L.

* gas/arm/thumb32.s: Add PC relative LDRD and STRD insns.
* gas/arm/thumb32.l: Update expected output.
* gas/arm/thumb32.d: Update expected disassembly.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/ChangeLog.diff?cvsroot=src&r1=1.1714&r2=1.1715
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/arm-dis.c.diff?cvsroot=src&r1=1.140&r2=1.141
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1883&r2=1.1884
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/arm/thumb32.d.diff?cvsroot=src&r1=1.40&r2=1.41
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/arm/thumb32.l.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/arm/thumb32.s.diff?cvsroot=src&r1=1.19&r2=1.20

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb

2011-04-12 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12534

Nick Clifton  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #7 from Nick Clifton  2011-04-12 16:04:21 
UTC ---
Patch (and testsuite update) checked in.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/12658] ld: potential infinite loop and memory leaks when link many object files

2011-04-12 Thread dongsheng.song at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12658

--- Comment #8 from Dongsheng Song  2011-04-13 
06:17:27 UTC ---
(In reply to comment #7)
> Hi Dongsheng,
> 
>   I am sorry - I am currently unable to build the mingw-w64 cross compiler
> using the gcc-4.6-windows-x86.sh script.  It fails building the CRT with:
> 
>   configure: error: Please check if the mingw-w64 header set and the 
> build/host
> option are set properly.
>   make: *** No targets specified and no makefile found.  Stop.
>   [2011-04-12 10:03:38] Build Mingw-w64 crt failed
> 
> I suspected that something like this might happen. :-(
> 
> Are you able to run the linker under GDB and maybe find out where the infinite
> loop is happening ?
> 
> Cheers
>   Nick

I have no enough to run the gdb to debug ld now.

I can not know why your build failed without the exact error messages, but I
think this may be caused by your Linux not have the proper version of gmp, mpfr
and mpc develop packages.

Packages necessary for building GCC 4.6:
http://gcc.gnu.org/install/prerequisites.html

GMP 4.3.2 (or later)
MPFR 2.4.2 (or later)
MPC 0.8.1 (or later)

FC14:
http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Fedora/source/SRPMS/
gmp-4.3.1-7.fc14.src.rpm
mpfr-2.4.2-1.fc13.src.rpm
libmpc-0.8.1-1.fc13.src.rpm

FC15:
http://download.fedora.redhat.com/pub/fedora/linux/releases/test/15-Alpha/Fedora/source/SRPMS/
gmp-4.3.2-3.fc15.src.rpm
mpfr-3.0.0-4.fc15.src.rpm
libmpc-0.8.3-0.3.svn855.fc15.src.rpm

RHEL6:
http://ftp.scientificlinux.org/linux/scientific/6/SRPMS/vendor/
gmp-4.3.1-7.el6.src.rpm
mpfr-2.4.1-6.el6.src.rpm

If the answer is yes, then you must use FC15 or upgrade your gmp, mpfr and mpc
develop packages yourself.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils