This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build gcc-4.8.2 error -- gcc-4.8.1/x86_64-unknown-linux-gnu/libgomp
- From: "GHui" <ugiwgh at gmail dot com>
- To: "Ian Lance Taylor" <iant at google dot com>, "Andrew Haley" <aph at redhat dot com>
- Cc: "gcc-help" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 22 Oct 2013 22:17:34 +0800
- Subject: Re: Build gcc-4.8.2 error -- gcc-4.8.1/x86_64-unknown-linux-gnu/libgomp
- Authentication-results: sourceware.org; auth=none
- References: <tencent_03FEA93A0BFA440250B84006 at qq dot com> <CAKOQZ8wbfmVwGUWSq6Z++CXoSGuC_M97Qmh2cRAP8xRYWrRsQg at mail dot gmail dot com> <526680C4 dot 3040106 at redhat dot com> <CAKOQZ8wLjbj4NN3UzfE-FBVQDr5ti=A5k23-GcJ0V5VijszaGg at mail dot gmail dot com>
Thanks for your explanation, Ian.
Thanks, Andrew.
In my system(el6).
The /lib64/libc.so.6 link from /lib64/libc-2.12.so, it belong to glibc-2.12.
The /usr/lib64/libc.so belong to glibc-devel-2.12. And it likes what Andrew listed.
The /lib64/libc.so also link from /lib64/libc-2.12.so, but it belong none pkg.
So, I think maybe someone made it.
GHui
------------------ Original ------------------
From: "Ian Lance Taylor";<iant@google.com>;
Date: Tue, Oct 22, 2013 09:58 PM
To: "Andrew Haley"<aph@redhat.com>;
Cc: "GHui"<ugiwgh@gmail.com>; "gcc-help"<gcc-help@gcc.gnu.org>;
Subject: Re: Build gcc-4.8.2 error -- gcc-4.8.1/x86_64-unknown-linux-gnu/libgomp
On Tue, Oct 22, 2013 at 6:42 AM, Andrew Haley <aph@redhat.com> wrote:
> On 10/22/2013 02:00 PM, Ian Lance Taylor wrote:
>> On Mon, Oct 21, 2013 at 11:35 PM, GHui <ugiwgh@gmail.com> wrote:
>>>
>>> -lc (/lib/../lib64/libc.so)
>>
>> /lib64/libc.so is an implausible file on a GNU/Linux system.
>
> No. It exists on my Red Hat Enterprise Linux system. It looks like
> this:
>
> $ cat /lib64/libc.so
> /* GNU ld script
> Use the shared library, but some functions are only in
> the static library, so try that secondarily. */
> OUTPUT_FORMAT(elf64-x86-64)
> GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
I can tell from the -Wl,-t output posted above that that is not what
the file looks like on GHui's system. On GHui's system /lib64/libc.so
is a shared library. That is wrong. On a GNU/Linux system there
should not be any files named libc.so that are shared libraries. Any
files named libc.so should be text files similar to what Andrew listed
above.
GHui: the distro provides ways to verify that your system is installed
correctly. If there is a chance that people have been adding random
symlinks, you should use those tools.
Ian