On 7 October 2012 04:10, leif <not.rea...@online.de> wrote:
> With GCC 4.7.0 (and CFLAGS="-O0 -finline-functions -fschedule-insns", since
> this version is severely broken on Itanium) I get:
>
> libtool: link: ranlib .libs/libtests.a
> libtool: link: ( cd ".libs" && rm -f "libtests.la" && ln -s "../libtests.la"
> "libtests.la" )
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpir-2.6.0-alpha1/tests -I..
> -I../../mpir-2.6.0-alpha1    -O0 -finline-functions -fschedule-insns -c
> ../../mpir-2.6.0-alpha1/tests/t-bswap.c
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99  -O0
> -finline-functions -fschedule-insns   -o t-bswap t-bswap.o libtests.la
> ../libmpir.la
> libtool: link: gcc -std=gnu99 -O0 -finline-functions -fschedule-insns -o
> .libs/t-bswap t-bswap.o  ./.libs/libtests.a
> /home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.7.0/.libs/libmpir.so -lm
> ../.libs/libmpir.so
> /home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.7.0/.libs/libmpir.so:
> undefined reference to `mpn_addmod_2expp1_1'
> collect2: error: ld returned 1 exit status
> make[4]: *** [t-bswap] Error 1
> make[4]: Leaving directory
> `/home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.7.0/tests'
> make[3]: *** [check-am] Error 2
> make[3]: Leaving directory
> `/home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.7.0/tests'
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory
> `/home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.7.0/tests'
> make[1]: *** [check-recursive] Error 1
> make[1]: Leaving directory
> `/home/leif/src/mpir-2.6.0-alpha1-build.iras-gcc-4.7.0'
> make: *** [check] Error 2
>

It's pointless trying to build anything with gcc 4.7.0. It's a totally
useless version of the compiler.

Having said that, the function in question is a GMP_EXTERN_INLINE
function defined in gmp-impl.h. Unfortunately, GMP_EXTERN_INLINE is
not defined in gmp-impl.h.

I'll move the definition into gmp-h.in where it is actually defined.

I've no idea why this worked everywhere else but not on this system.
It could still be a compiler bug of course.

>
> Btw, invalid options to 'configure' (e.g. '--enable-gmp-compat' or
> '--enable-foo') are silently ignored, even with '-v'; probably just some
> (newer) autotools "feature"...

I think we possibly do this deliberately as some options need to be
passed to yasm's configure.

If you can give me a list of all possible invalid options users will
type, I'll make sure they are excluded. (Just joking.)

Bill.

>
>
> -leif
>
>
>
>>
>> Thank you to the all people who made comments on our development list,
>> who provided bug reports and helped with testing. This includes, but
>> is probably not limited to Case van Horsen, David Cleaver, Pavel
>> Holoborodko and Sisyphus.
>>
>> A full list of code contributions to MPIR can be found in the AUTHORS
>> file in the source tarball.
>>
>> Best Wishes,
>>
>> The MPIR Team.
>
>
> --
> () The ASCII Ribbon Campaign
> /\   Help Cure HTML E-Mail
>
> --
> You received this message because you are subscribed to the Google Groups
> "mpir-devel" group.
> To post to this group, send email to mpir-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> mpir-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mpir-devel?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to