This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/21911] New: glibc 2.26 'make install' fails in executing test-installation.pl which tries to link libnss_test2


https://sourceware.org/bugzilla/show_bug.cgi?id=21911

            Bug ID: 21911
           Summary: glibc 2.26 'make install' fails in executing
                    test-installation.pl which tries to link libnss_test2
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: sian at big dot or.jp
                CC: carlos at redhat dot com
  Target Milestone: ---

The exact tree is the version below (Sorry, I'm using git):
commit a4e5aa1a443cfad09bc98f9bb527995371a53a88
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Thu Aug 3 22:35:48 2017 +0000

    Fix the return type of the getentropy stub

Just try to make install.

$ sudo make install
<snip>
LD_SO=ld-linux-x86-64.so.2 CC="gcc" /usr/bin/perl scripts/test-installation.pl
/usr/src/system/glibc/glibc-2.26-master/
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lnss_test2
collect2: error: ld returned 1 exit status
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are
wrong,
  libm.so should point to the newly installed glibc file - and there should be
  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [Makefile:111: install] Error 1

System is working after this error.
But I think this should be fixed.
When libnss_test2 was added, this library should have been filtered out for the
test.
Please find my patch attached.

Possibly related information:
$ LANG=C gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/7.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/usr --enable-gold --enable-libssp
--enable-lto --enable-languages=c,c++,fortran
Thread model: posix
gcc version 7.1.1 20170801 (GCC) 
$ LANG=C ld -v
GNU ld (GNU Binutils) 2.29.0.20170727

--- Comment #1 from Hiroshi Takekawa <sian at big dot or.jp> ---
Created attachment 10318
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10318&action=edit
Proposed patch

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]