leif wrote:
leif wrote:
Ivan Andrus wrote:
On Jan 5, 2013, at 8:03 PM, leif <not.rea...@online.de> wrote:

Ivan Andrus wrote:
Dear Sagephiles,

Sorry to be so late to the party, but I tried building recently and
noticed that building MPIR fails with SAGE_DEBUG=yes.  This is
before a new gcc has been installed.  It compiled fine once I set
SAGE_DEBUG to the empty string.

I'm using OS X 10.8.2 with a Mid 2010 MacBook Pro.  The build log
is at
http://boxen.math.washington.edu/home/iandrus/mpir-2.4.0.p6.log

Could you also upload MPIR's corresponding config.log
($SAGE_ROOT/spkg/build/mpir-2.4.0.p6/src/config.log IIRC)?  (That of
a /failed/ build with Clang of course ;-) )

http://boxen.math.washington.edu/home/iandrus/config.log


Thanks.  Although the 'configure' test is supposed to detect something
completely different, it fails due to some bug in Clang (or at least an
incompatibility to GCC / GNU C).

Unless one specifies '-O2' or higher ('-finline*' doesn't work either),
the GNU __inline__ function doesn't get inlined, which is in principle
ok, but Clang doesn't emit code for it either, hence the linker error.
(FWIW, '-std=gnu*' doesn't seem to make any difference.)

We could tweak the test to use 'extern inline' (although I'm not sure
whether that would still trigger the bug the test is meant for), or
change

#ifdef    __GNUC__

to

#if    defined(__GNUC__) && !defined(__clang__)

(The latter is IMHO more appropriate, regarding the intent of the test.)


MPIR versions > 2.4 come with the same test, and since I know Bill is
keen to fix any Apple toolchain issues (although in this case it's
rather just Clang), it's likely we could get that upstream MPIR (cc'ed).


I probably spoke to soon, as I also run into other issues now (i.e.,
other 'configure' tests that don't work) while trying to build MPIR
2.6.0 with Clang (some 3.1 svn version at the moment).

More to come...

See http://groups.google.com/group/mpir-devel/msg/a4c6cecf4832c186

(patch which fixes all issues attached there)


-leif

--
() 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 unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to