public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug faq/11975] New: INSTALL doc lists too old binutils requirement
@ 2010-09-03 12:48 ambrus at math dot bme dot hu
  2010-10-04  2:31 ` [Bug faq/11975] " drepper dot fsp at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: ambrus at math dot bme dot hu @ 2010-09-03 12:48 UTC (permalink / raw)
  To: glibc-bugs

The INSTALL file in the glibc-2.12.1 source tree claims that GNU binutils
version 2.15 or later is required to build glibc.  However, that binutils
version is actually too old.  The INSTALL file should say that binutils version
2.20 (or 2.19, I don't know which) is required for the build.  

Please update the INSTALL file, and possibly any other relevant documentation.

When I tried to build glibc-2.12.1 with binutils 2.18.0.20080103 binary from the
debian package 2.18.1~cvs20080103-7 (in debian lenny), I've got the following error:

gcc -B/home/ambrus/build/libc/oldbinutils-bin/
../sysdeps/x86_64/multiarch/strcmp.S -c  -I../include
-I/home/ambrus/build/libc/oldbinutils-bin/string
-I/home/ambrus/build/libc/oldbinutils-bin -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch
-I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I.. -I../libio -I. 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DASSEMBLER  -g
-Wa,--noexecstack   -o /home/ambrus/build/libc/oldbinutils-bin/string/strcmp.o
-MD -MP -MF /home/ambrus/build/libc/oldbinutils-bin/string/strcmp.o.dt -MT
/home/ambrus/build/libc/oldbinutils-bin/string/strcmp.o 
../sysdeps/x86_64/multiarch/strchr.S: Assembler messages:
../sysdeps/x86_64/multiarch/strchr.S:28: Error: unrecognized symbol type
"gnu_indirect_function"
make[2]: *** [/home/ambrus/build/libc/oldbinutils-bin/string/strchr.o] Error 1

Previously I've also got error messages like this from building glibc-2.11.2
with that binutils 2.18.1 version:

../sysdeps/x86_64/dl-trampoline.h:24: Error: no such instruction: `vmovdqu
%ymm1,(192+64)(%rsp)'

This hints that there might be multiple reasons why that binutils version is not
enough.

On the other hand, when I've built glibc-2.12.1 using GNU binutils
2.20.1.20100303 (installed from vanilla source), the build succeeded without
errors.  In all cases, I was using gcc 4.5.1 vanilla, and GNU make 3.81 from
debian binary package for the builds.  I was using the following configure
options:  

--prefix=/usr/local/glibc2.12.1 --enable-kernel=2.6.0

I was also using the additional configure option
--with-binutils=/home/ambrus/build/libc/oldbinutils-bin/ to build with the older
versions of glibc (I couldn't just write --with-binutils=/usr/bin because that
would try to use an older version of cc1 as well).

-- 
           Summary: INSTALL doc lists too old binutils requirement
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: faq
        AssignedTo: aj at suse dot de
        ReportedBy: ambrus at math dot bme dot hu
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu


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

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug faq/11975] INSTALL doc lists too old binutils requirement
  2010-09-03 12:48 [Bug faq/11975] New: INSTALL doc lists too old binutils requirement ambrus at math dot bme dot hu
@ 2010-10-04  2:31 ` drepper dot fsp at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper dot fsp at gmail dot com @ 2010-10-04  2:31 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper dot fsp at gmail dot com  2010-10-04 02:30 -------
I removed the version number from the INSTALL file.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-04  2:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-03 12:48 [Bug faq/11975] New: INSTALL doc lists too old binutils requirement ambrus at math dot bme dot hu
2010-10-04  2:31 ` [Bug faq/11975] " drepper dot fsp at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).