[Bug ld/10361] New: linker doesn't throw an error in case of missing libraries

2009-07-04 Thread booleandomain at gmail dot com
I'm trying to compile bash-4.0 with gcc-4.3.3-r2 and binutils-2.19.1-r1.

Bash was configured with the following options: --prefix=/tools
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu

Please notice I have set CFLAGS environment variable to: -O2 -march=core2
-Wl,--dynamic-linker=/tools/lib/ld-linux-x86-64.so.2

Of course I have glibc installed in /tools.

Well, bash get configured and compiled fine, but then if I issue ldd bash I get
the following:

linux-vdso.so.1 =>  (0x7fffcb3ff000)
libncurses.so.5 => not found
libdl.so.2 => /tools/lib/libdl.so.2 (0x7f14c2e65000)
libc.so.6 => /tools/lib/libc.so.6 (0x7f14c2b0d000)
/tools/lib/ld-linux-x86-64.so.2 (0x7f14c3069000)

I have not installed ncurses in /tools. If I install it before attempting to
compile bash, the problem is fixed.

But I wonder why ld does not complain at build-time... Perhaps it is a bug.

-- 
   Summary: linker doesn't throw an error in case of missing
libraries
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: booleandomain at gmail dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10361

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] New: configure: error: cannot compute sizeof (off_t), 77

2009-07-07 Thread booleandomain at gmail dot com
I'm trying to compile binutils-2.19.1 with gcc-4.4.0. It fails with the
following error message:

checking size of off_t... configure: error: in
`/home/booleandomain/tmp/lfs/sources/binutils-build/bfd':
configure: error: cannot compute sizeof (off_t), 77
See `config.log' for more details.
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory `/home/booleandomain/tmp/lfs/sources/binutils-build'
make: *** [all] Error 2

I configured binutils as follows: --prefix=/tools --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu

Looking at bfd/config.log it seems the problem is due to the fact binutils is
looking in /tools for libz.so.1 (it doesn't exist there). If I install zlib in
/tools and then try again building binutils, everything works.

I think this is a bug because binutils should look at /lib64/libz.so.1 instead.

-- 
   Summary: configure: error: cannot compute sizeof (off_t), 77
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: booleandomain at gmail dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] configure: error: cannot compute sizeof (off_t), 77

2009-07-07 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-07 
20:51 ---
Created an attachment (id=4043)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4043&action=view)
bfd/config.log


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] configure: error: cannot compute sizeof (off_t), 77

2009-07-08 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-08 
15:19 ---
It seems the problem is related to the fact I have in CFLAGS the following
option: -Wl,--dynamic-linker,/tools/lib64/ld-linux-x86-64.so.2

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] configure: error: cannot compute sizeof (off_t), 77

2009-07-08 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-08 
17:22 ---
I just tried binutils cvs, but the problem persists.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] configure: error: cannot compute sizeof (off_t), 77

2009-07-08 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-08 
19:32 ---
Yes, but I need that option because I'm building a GNU/Linux toolchain inside of
/tools, and packages have to link to the dynamic linker inside of it.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] configure: error: cannot compute sizeof (off_t), 77

2009-07-08 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-08 
20:46 ---
I tried both --with-build-sysroot=/tools and --with-sysroot=/tools
(undocumented?) but I get for example:

$ ldd binutils/ar
linux-vdso.so.1 =>  (0x7fff2b5ff000)
libz.so.1 => /lib/libz.so.1 (0x7fc61e1e)
libc.so.6 => /lib/libc.so.6 (0x7fc61de85000)
/lib64/ld-linux-x86-64.so.2 (0x7fc61e3f6000)

This is not going to work inside a chrooted environment. Perhaps I must build
binutils statically...

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10380] New: cannot build binutils statically

2009-07-09 Thread booleandomain at gmail dot com
I'm trying to build binutils-2.19.1 statically. I tried with
../binutils-2.19.1/configure LDFLAGS="-static" && make but I get:

ldd binutils/ar
linux-vdso.so.1 =>  (0x7fffaf9ff000)
libz.so.1 => /lib/libz.so.1 (0x7fe1a223d000)
libc.so.6 => /lib/libc.so.6 (0x7fe1a1ee2000)
/lib64/ld-linux-x86-64.so.2 (0x7fe1a2453000)

This procedure works for all other packages I'm trying to compile (gcc, bash,
...) but it seems not to work for binutils. Why? Is there perhaps another way to
accomplish this? I also tried reading ./configure --help, README and
binutils/README but there is no useful information.

-- 
   Summary: cannot build binutils statically
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
    ReportedBy: booleandomain at gmail dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10376] configure: error: cannot compute sizeof (off_t), 77

2009-07-09 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-09 
19:55 ---
It seems the problem is not related to CFLAGS containing
-Wl,--dynamic-linker,/tools/lib64/ld-linux-x86-64.so.2, but to the fact I
probably installed glibc in /tools in the wrong way. In fact, I configured in
with --prefix=/tools instead of installing it with install_root=/tools. I can't
see why, but it seems there is a difference between the two.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10376

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10380] cannot build binutils statically

2009-07-10 Thread booleandomain at gmail dot com

--- Additional Comments From booleandomain at gmail dot com  2009-07-10 
16:01 ---
It seems to work, thanks. But why do I need --static while all other packages
(gmp, mpfr, bash, ...) work with -static? Also, I think there should be a
document either in binutils sources or on the binutils homepage that explains
how to build binutils statically.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10428] New: --with-sysroot configure option is undocumented

2009-07-22 Thread booleandomain at gmail dot com
The --with-sysroot option is not documented anywhere. The only similar option I
am aware of is --with-build-sysroot, but that's a different switch. I think a
good place where to put some information is inside the ./configure --help
command. Details about what to put inside the sysroot directory before trying to
build binutils should be included, too.

-- 
   Summary: --with-sysroot configure option is undocumented
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: booleandomain at gmail dot com
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10428

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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