[Bug other/78424] New: intl reincludes sysroot into searching for ld

neotheuser at ymail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 18 22:22:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78424

            Bug ID: 78424
           Summary: intl reincludes sysroot into searching for ld
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: neotheuser at ymail dot com
  Target Milestone: ---

Created attachment 40085
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40085&action=edit
intl duplicated directory error

Hello! I have switched to GLIBC and the GMP issue is gone, but now when GCC
builds, it searches for sysroot/usr/lib/libc.so.6 inside
sysroot/git-toolchain-bin. It should be an absolute path, which is simply just
sysroot/usr/lib/libc.so.6.

"/home/<scrubbed>/git-toolchain-bin/usr/x86_64-pc-linux-gnu/bin/ld: cannot find
/home/<scrubbed>/git-toolchain-bin/usr/lib/libc.so.6 inside
/home/<scrubbed>/git-toolchain-bin"

~/git-toolchain-bin/usr/lib/libc.so.6 exists, but there is no
/home/<scrubbed>/git-toolchain-bin/home/<scrubbed>/git-toolchain-bin/usr/lib/libc.so.6
as that would be silly.

Configure line is as follows:

mkdir build && cd build && ../configure
--prefix=/home/<scrubbed>/git-toolchain-bin/usr
--with-local-prefix=/home/<scrubbed>/git-toolchain-bin/usr
--with-sysroot=/home/<scrubbed>/git-toolchain-bin --disable-nls
--disable-shared --disable-multilib --disable-libatomic --disable-libgomp
--disable-libmpx --disable-libquadmath --disable-libssp --disable-libvtv
--disable-libstdcxx --enable-languages=c,c++ --disable-lto --with-system-zlib
--disable-werror --disable-gold --without-isl --disable-libcilkrts
--disable-libitm --disable-libsanitizer

Removing or keeping --with-local-prefix has no effect.

I initially started with having --with-native-system-header-dir set to
sysroot-dir/include but having --with-sysroot=sysroot-dir set along with it
caused redundancies, so I dropped --with-native-system-header-dir.

--with-build-sysroot caused issues finding stdio.h (which was present in the
directory that --with-native-system-header-dir was set to, not too sure what
happened there, just changed configure options) so changing it to simply
--with-sysroot got me a little further.

Build log attached.


More information about the Gcc-bugs mailing list