#7006: [with patch; needs work] os x 10.6 port -- update mpir to autodetect ABI
on
OS X since ABI=32 is *no* longer necessarily the default on 10.6
---------------------+------------------------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: porting | Keywords:
Reviewer: | Author:
Merged: |
---------------------+------------------------------------------------------
Old description:
> The spkg is up here:
>
> http://sage.math.washington.edu/home/wstein/patches/mpir-1.2.p5.spkg
New description:
The spkg is up here:
http://sage.math.washington.edu/home/wstein/patches/mpir-1.2.p5.spkg
--
Comment(by jhpalmieri):
This doesn't seem to build properly on OS X 10.5, 32-bit. (As far as I
can tell, it works with 10.5 64-bit and also with 10.6). The problem
occurs when starting to build ntl:
{{{
mv mach_desc.h ../include/NTL/mach_desc.h
sh MakeGetTime "gcc -I../include -I. -O2 -g -fno-common " "-lm"
does anybody really know what time it is?
gcc -I../include -I. -O2 -g -fno-common -o TestGetTime TestGetTime.c
GetTime1.c -lm
running
using GetTime1.c
gcc -I../include -I. -O2 -g -fno-common
-I/Applications/sage_builds/sage-4.1.2.alpha2/local/include -o
gen_lip_gmp_aux gen_lip_gmp_aux.c
-L/Applications/sage_builds/sage-4.1.2.alpha2/local/lib -lgmp -lm
ld warning: in
/Applications/sage_builds/sage-4.1.2.alpha2/local/lib/libgmp.dylib, file
is not of required architecture
./gen_lip_gmp_aux > lip_gmp_aux_impl.h
NTL_GMP_HACK flag not set.
gcc -I../include -I. -O2 -g -fno-common
-I/Applications/sage_builds/sage-4.1.2.alpha2/local/include -o gen_gmp_aux
gen_gmp_aux.c -L/Applications/sage_builds/sage-4.1.2.alpha2/local/lib
-lgmp -lm
ld warning: in
/Applications/sage_builds/sage-4.1.2.alpha2/local/lib/libgmp.dylib, file
is not of required architecture
Undefined symbols:
"___gmp_bits_per_limb", referenced from:
___gmp_bits_per_limb$non_lazy_ptr in ccWvp3La.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [setup3] Error 1
Failed building setup3 of NTL
}}}
If I install the old version of mpir using './sage -f mpir-1.2.p4.spkg',
then ntl builds correctly.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7006#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---