bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test(s) fail, Install aborted


From: Daryl Smith
Subject: Re: Test(s) fail, Install aborted
Date: Fri, 26 Sep 2003 10:21:03 -0600


On 09/25/2003 07:08:58 PM Kevin Ryde wrote:

>"Daryl Smith" <address@hidden> writes:
>>
>> Also, you'll notice
>> the error message references a gcc lib.  Usually this means it
can't
>> locate the library (which was in /usr/local/lib/)
>
>Yep.
>
>> in this case I tried
>> copying the libgcc_s.so.1 lib into both /usr/lib/ and the ./tests/
>> subdirectory, but neither seemed to help the t-* scripts locate it.
>
>I'm not quite sure how it's meant to be setup.  For 64-bit mode it
>might be looking under /usr/local/lib/sparcv9.  Hopefully gcc has
>installed it there.

It appears to be in that directory:

$ ls -l /usr/local/lib/sparcv9/libgcc_s*
-rw-r--r--   1 bin      bin       468752 Jun 19 05:57
/usr/local/lib/sparcv9/libgcc_s.so.1
lrwxrwxrwx   1 root     other         13 Sep 25 11:21
/usr/local/lib/sparcv9/libgcc_s_sparcv9.so -> libgcc_s.so.1

I'd imagine it would've needed this library in the "make"
process...(which went smoothly for 4.1.2).  I suppose the question is
why can't "make check" find it?

>We've had trouble in the past with people who set LD_LIBRARY_PATH,
>since that gets used for 64-bit mode, unless you also set
>LD_LIBRARY_PATH_64.  I think.

I'm not setting any LD_LIBRARY_PATH (_64 or otherwise).  Should I be?

>
>> # gcc -g -I. example.c .libs/libgmp.a
>> ld: warning: file .libs/libgmp.a(init.o): wrong ELF class:
ELFCLASS64
>
>libgmp has been built in ABI=64, you need to compile your
applications
>in the same mode.  See ABI and ISA in the manual.

Thanks for the info, you will be happy to know that it appears to have
worked successfully:

$ gcc  -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9 -g -I. example.c
.libs/libgmp.a
$ ./a.out 98365871231256752134 319378318340103345227
31415926535897932384618573336104570964418

Thanks,
Daryl






reply via email to

[Prev in Thread] Current Thread [Next in Thread]