This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug faq/11975] New: INSTALL doc lists too old binutils requirement
- From: "ambrus at math dot bme dot hu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Sep 2010 12:48:20 -0000
- Subject: [Bug faq/11975] New: INSTALL doc lists too old binutils requirement
- Reply-to: sourceware-bugzilla at sourceware dot org
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.