Bug 78424 - intl reincludes sysroot into searching for ld
Summary: intl reincludes sysroot into searching for ld
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-18 22:01 UTC by Alec Ari
Modified: 2016-11-19 08:01 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
intl duplicated directory error (693 bytes, text/plain)
2016-11-18 22:01 UTC, Alec Ari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Ari 2016-11-18 22:01:49 UTC
Created attachment 40085 [details]
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.
Comment 1 Andreas Schwab 2016-11-19 08:01:14 UTC
This is most likely coming from sysroot-dir/usr/lib/libc.so, which is uses an absolute file name that isn't rooted at the sysroot prefix.