[Bug binutils/27250] New: Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread j-comm at westvi dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250

Bug ID: 27250
   Summary: Installation of 2.36 fails with 'LIBCTF_1.1 not found'
followed by 'relink' suggestion
   Product: binutils
   Version: 2.36
Status: UNCONFIRMED
  Severity: critical
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
      Reporter: j-comm at westvi dot com
  Target Milestone: ---

Created attachment 13158
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13158&action=edit
Full output of configure, make, make check, make install

As the summary line states, but included as an attachent is the entire log of
configuring, making, testing and the final installation attempt, along with the
version number given for multiple utilities and glibc. Look near the bottom for
the error message. Look near the top for the utility version information.

A copy of the error message I received, near the very end of the attachment
log, is as follows:

/usr/bin/ld: /usr/lib/libctf.so.0: version `LIBCTF_1.1' not found (required by
/usr/bin/ld)
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libctf.la' with the above command before
installing it

I do include the 'make tooldir=/usr install' output.

...note that before doing this, I am able to compile/link/install everything -
this is the only build that has this problem. However, because the failure is
midway in the install, the failure makes it so the system can no longer build
and link even the simplest 'hello world' program. This is why I categorize this
bug as 'critical'.

Hopefully someone can figure out what is going on here. Thanks!

root@www:/sources# tar xf archive/binutils-2.36.tar.xz 
root@www:/sources# cd binutils-2.36/
root@www:/sources/binutils-2.36# mkdir -v build
mkdir: created directory 'build'
root@www:/sources/binutils-2.36# cd build


root@www:/sources/binutils-2.36/build# gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



root@www:/sources/binutils-2.36/build# ld --version
GNU ld (GNU Binutils) 2.35.1
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.


root@www:/sources/binutils-2.36/build# ldd --version
ldd (GNU libc) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.


root@www:/sources/binutils-2.36/build# uname -a
Linux www.jfroot.com 5.10.6 #1 SMP Sat Jan 9 05:39:20 PST 2021 x86_64 GNU/Linux


root@www:/sources/binutils-2.36/build# make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


root@www:/sources/binutils-2.36/build# m4 --version
m4 (GNU M4) 1.4.18
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.


root@www:/sources/binutils-2.36/build# bash --version
GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


root@www:/sources/binutils-2.36/build# cat --version
cat (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund and Richard M. Stallman.


root@www:/sources/binutils-2.36/build# sed --version
sed (GNU sed) 4.8
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
Paolo Bonzini, Jim Meyering, and Assaf Gordon.

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread j-comm at westvi dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250

--- Comment #5 from Joel  ---

> Should have a fix for you to test in a few minutes.

Thank you for this - I will try the patch and report results.

Fortunately, my rule whenever updating fundamental programs is to do a full
backup before-hand, and rebuild in a standalone mode. This made it so
recovering was a simple matter of restoring the drive from the backup.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread j-comm at westvi dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250

--- Comment #6 from Joel  ---
The provided patch worked. Thank you!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27272] New: Cannot build Linux kernel 5.10.11 (or 5.10.6) with 2.36 binutils. 2.35.1 works.

2021-01-28 Thread j-comm at westvi dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27272

Bug ID: 27272
   Summary: Cannot build Linux kernel 5.10.11 (or 5.10.6) with
2.36 binutils. 2.35.1 works.
   Product: binutils
   Version: 2.36
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: j-comm at westvi dot com
  Target Milestone: ---

Pretty much described as above. Has been verified by another user. I submitted
a bug report describing this in the Linux kernel bugzilla at
https://bugzilla.kernel.org/show_bug.cgi?id=211443

But I copy the description for that bug here This error is seen with 2.36
binutils *very* early in the build started with: "make mrproper; make
defconfig; make" ... it happens within a minute on my system

-

As the summary states - trying to compile kernel 5.10.11. Here is a log of what
I did. Note that I tried this both without AND with the recent patch in the git
logs to help thunk_64.S compile with LLVM. That patch, by itself, did not help.

Running GCC 10.2.0, GLIBC 2.32, binutils 2.36, kernel 5.10.11. 

When I tried kernel 5.10.6, which I had successfully compiled a short number of
days ago with binutils 2.35.1, it also did not compile. So, the upgrade from
binutils 2.35.1 to binutils 2.36 has changed something...

j-comm@www:/sources% tar xf archive/linux-5.10.11.tar.xz 
j-comm@www:/sources% cd linux-5.10.11/
j-comm@www:/sources/linux-5.10.11% make mrproper
j-comm@www:/sources/linux-5.10.11% make defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX scripts/kconfig/lexer.lex.c
  YACCscripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*** Default configuration is based on 'x86_64_defconfig'
#
# configuration written to .config
#
j-comm@www:/sources/linux-5.10.11% make V=1
...
  gcc -Wp,-MMD,arch/x86/entry/.thunk_64.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include -I./arch/x86/include
-I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi
-I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi
-include ./include/linux/kconfig.h -D__KERNEL__ -fmacro-prefix-map=./=
-D__ASSEMBLY__ -fno-PIE -m64-c -o arch/x86/entry/thunk_64.o
arch/x86/entry/thunk_64.S
   ./tools/objtool/objtool orc generate  --no-fp --retpoline --uaccess
arch/x86/entry/thunk_64.o
arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table
make[2]: *** [scripts/Makefile.build:360: arch/x86/entry/thunk_64.o] Error 1
make[2]: *** Deleting file 'arch/x86/entry/thunk_64.o'
make[1]: *** [scripts/Makefile.build:496: arch/x86/entry] Error 2
make: *** [Makefile:1805: arch/x86] Error 2
j-comm@www:/sources/linux-5.10.11%

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/27272] Cannot build Linux kernel 5.10.11 (or 5.10.6) with 2.36 binutils. 2.35.1 works.

2021-01-28 Thread j-comm at westvi dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27272

--- Comment #1 from Joel  ---
Specifically to note: it is entirely possible to build the 5.10.11 and 5.10.6
kernels with binutils 2.35.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.