[Bug binutils/20464] New: hppa-linux-gnu-ranlib: libcpp.a: File format not recognized

2016-08-13 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20464

Bug ID: 20464
   Summary: hppa-linux-gnu-ranlib: libcpp.a: File format not
recognized
   Product: binutils
   Version: 2.27
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
  Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
 Build: hppa-unknown-linux-gnu

In gcc trunk build, the following error occurs:

ar cru libcpp.a charset.o directives.o directives-only.o errors.o expr.o
files.o
 identifiers.o init.o lex.o line-map.o macro.o mkdeps.o pch.o symtab.o
tradition
al.o
ar: `u' modifier ignored since `D' is the default (see `U')
hppa-linux-gnu-ranlib libcpp.a
hppa-linux-gnu-ranlib: libcpp.a: File format not recognized
Makefile:100: recipe for target 'libcpp.a' failed
make[3]: *** [libcpp.a] Error 1
make[3]: Leaving directory
'/home/dave/gnu/gcc/objdir/build-hppa-linux-gnu/libcp
p'
Makefile:2834: recipe for target 'all-build-libcpp' failed

A similar error occurs in glibc build.

The file format of archive libraries is not recognized.

mx3210:/home/dave# hppa-linux-gnu-ranlib --version
GNU ranlib (GNU Binutils for Debian) 2.27
Copyright (C) 2016 Free Software Foundation, Inc.

The bug is not present in 2.26.1.

-- 
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/20464] hppa-linux-gnu-ranlib: libcpp.a: File format not recognized

2016-08-13 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20464

--- Comment #1 from John David Anglin  ---
Also breaks binutils build:

/bin/bash ./libtool --tag=CC   --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror
-I../../src/bfd/../zlib -g -O2  -release `cat libtool-soversion` 
-static-libstdc++ -static-libgcc  -o libbfd.la -rpath /home/dave/opt/gnu/lib
archive.lo archures.lo bfd.lo bfdio.lo bfd
win.lo cache.lo coff-bfd.lo compress.lo corefile.lo format.lo hash.lo init.lo
libbfd.lo linker.lo merge.lo opncls.lo reloc.lo section.lo simple.lo
stab-syms.lo 
stabs.lo syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo verilog.lo `cat 
ofiles` -L/home/dave/gnu/binutils/objdir/bfd/../libiberty/pic -liberty
-Wl,-lc,-
-as-needed,-lm,--no-as-needed -ldl -L./../zlib -lz -ldl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/archive.o .libs/archures.o
.libs/
bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coff-bfd.o
.libs/compress
.o .libs/corefile.o .libs/format.o .libs/hash.o .libs/init.o .libs/libbfd.o
.lib
s/linker.o .libs/merge.o .libs/opncls.o .libs/reloc.o .libs/section.o
.libs/simp
le.o .libs/stab-syms.o .libs/stabs.o .libs/syms.o .libs/targets.o
.libs/binary.o
 .libs/ihex.o .libs/srec.o .libs/tekhex.o .libs/verilog.o .libs/elf32-hppa.o
.li
bs/elf32.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o
.lib
s/elf-eh-frame.o .libs/dwarf1.o .libs/dwarf2.o .libs/elf32-gen.o .libs/plugin.o 
.libs/cpu-hppa.o .libs/cpu-plugin.o  
-L/home/dave/gnu/binutils/objdir/bfd/../li
biberty/pic -liberty -L/home/dave/gnu/binutils/objdir/zlib -lz -ldl  -Wl,-lc
-Wl
,--as-needed -Wl,-lm -Wl,--no-as-needed   -Wl,-soname
-Wl,libbfd-2.27.51.2016081
3.so -o .libs/libbfd-2.27.51.20160813.so
/home/dave/gnu/binutils/objdir/bfd/../libiberty/pic/libiberty.a: file not
recognized: File format not recognized

-- 
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/20467] New: binutils gold target mipsel-elf fails to build when configuring with --enable-targets=mipsel-elf

2016-08-13 Thread vimacs.hacks at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20467

Bug ID: 20467
   Summary: binutils gold target mipsel-elf fails to build when
configuring with --enable-targets=mipsel-elf
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: vimacs.hacks at gmail dot com
  Target Milestone: ---

I'm trying to build a coreboot toolchain with binutils 2.27, but the mipsel-elf
target fails to build. It fails at building gold when linking libiberty.

https://qa.coreboot.org/job/coreboot-toolchain/160/artifact/util/crossgcc/build-mipsel-elf-BINUTILS/build.log

And I've found out that it's caused by using --enable-targets=mipsel-elf, i.e,
when I configure with:

../binutils-2.27/configure --prefix=/tmp/tools --target=mipsel-elf
--enable-targets=mipsel-elf --disable-werror --disable-nls --enable-gold

it fails to build.

But I can build with:

../binutils-2.27/configure --prefix=/tmp/tools --target=mipsel-elf
--disable-werror --disable-nls --enable-gold

-- 
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