On Thu, Sep 24, 2009 at 1:27 AM, Minh Nguyen <nguyenmi...@gmail.com> wrote: > > Hi folks, > > The machine bsd.math now runs OS X 10.6 with GCC 4.2.1. Feeling a > little adventurous, I tried building Sage 4.1.2.alpha2 in 32-bit mode > on that machine. After a while, the build failed while trying to > compile NTL. Here's a relevant install snippet: > > {{{ > This is NTL version 5.4.2 > > GOOD NEWS: compatible machine. > summary of machine characteristics: > bits per long = 64 > bits per int = 32 > bits per size_t = 64 > arith right shift = yes > double precision = 53 > NBITS (maximum) = 50 > single mul ok = no > register double precision = 53 > double rounding detected = no > > > 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/scratch/mvngu/sandbox-32/sage-4.1.2.alpha2-build/local/include -o > gen_lip_gmp_aux gen_lip_gmp_aux.c > -L/scratch/mvngu/sandbox-32/sage-4.1.2.alpha2-build/local/lib -lgmp > -lm > ld: warning: in > /scratch/mvngu/sandbox-32/sage-4.1.2.alpha2-build/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/scratch/mvngu/sandbox-32/sage-4.1.2.alpha2-build/local/include -o > gen_gmp_aux gen_gmp_aux.c > -L/scratch/mvngu/sandbox-32/sage-4.1.2.alpha2-build/local/lib -lgmp > -lm > ld: warning: in > /scratch/mvngu/sandbox-32/sage-4.1.2.alpha2-build/local/lib/libgmp.dylib, > file is not of required architecture > Undefined symbols: > "___gmp_bits_per_limb", referenced from: > _main in cc6qrifb.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > make[2]: *** [setup3] Error 1 > Failed building setup3 of NTL > > real 0m0.717s > user 0m0.444s > sys 0m0.203s > sage: An error occurred while installing ntl-5.4.2.p9 > }}} > > The full install log is up at > > http://sage.math.washington.edu/home/mvngu/doc/install/sage-4.1.2/install-4.1.2.alpha2-bsd32.log >
It will build find (at least with my spkg's) in 64-bit mode. But it fails in 32-bit mode still. I don't know if the problem is NTL or MPIR, actually. It's probably one or the other building the wrong ABI. I'll start a build of 4.1.2 and get to the bottom of this. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---