Thank you, Bill, you are right. After having a closer look at the mpir-1.2.2.p2.spkg file I found that there is a function inside the spkg-install file called
remove_pic_osx_32_bit() which does exactly what you suggested (It deletes the asm files that have the problem). Here is the part of the code of the spkg-install file that decides whether or not the remove_pic_osx_32_bit() function is run: ********************************************************************** Darwin) if [ "$SAGE64" = "yes" ]; then echo "Building 64 bit OS X version" ABI=64 else # Do not set ABI=32 on OS X 10.6, since there everything # defaults to 64-bit. if [ `uname -r | sed 's/\..*//'` != "10" ]; then ABI=32 if [ "`uname -m`" = "i386" ]; then remove_pic_osx_32_bit fi fi fi;; ********************************************************************** So the problem was that, because I am running OS X 10.6 "uname -r" provided a value of "10.*.*". So the remove_pic_osx_32_bit function was never triggered even though I needed it, since I am on a 32bit (Intel Core Duo) processor. I guess I am in the minority here, running OS X 10.6 on a 32bit processor. If I am not mistaken, only the first generation MacBooks and iMacs (Intel-based) run on the (32bit) Intel Core Duo. Cheers, Jan On Mar 5, 2:02 pm, Bill Hart <goodwillh...@googlemail.com> wrote: > Oh dear, I misread what you wrote. You have mpir-1.2.2. This problem > has been fixed since then. Jason has just released mpir 2.3.0. > > He writes: > > Apple compiler doesn't like our PIC code so we did this > > in configure.in , though I cant remember which version of MPIR first > had it > > # 32bit apple darwin doesn't like our PIC format asm code > case $host in > core2-apple-darwin* | penryn-apple-darwin*) > path="x86/applenopic/core2 x86/applenopic" ;; > prescott-apple-darwin* | pentium4-apple-darwin*) > path="x86/applenopic" ;; > pentium3-apple-darwin* | pentium2-apple-darwin*) > path="x86/applenopic" ;; > i686-apple-darwin* | pentiumpro-apple-darwin*) > path="x86/applenopic" ;; > core-apple-darwin*) > path="x86/applenopic" ;; > *) ;; > esac > > Alternatively just delete the asm files that have this problem , which > is all > the configure code above does. > > ---- > > Sorry for the mixup. I thought I read mpir 2.2.1. not mpir 1.2.2. > > Bill. > > On Mar 3, 10:18 pm, Bill Hart <goodwillh...@googlemail.com> wrote: > > > > > > > > > We've seen this before and if memory serves correctly it is due to an > > old assembler or compiler version. I can only recommend upgrading > > them. > > > On Mar 1, 3:16 pm, Jan Raasch <jan.raa...@googlemail.com> wrote: > > > > Hi there, > > > > so I'm running Mac OS X 10.6 (Snow Leopard) on a first generation > > > MacBook (Yeah, the one with the old 32bit Intel Core Duo processor). > > > Now obviously I cannot run the precompiled > > > sage-4.6.1-OSX-64bit-10.6-i386-Darwin binary, which is why I chose to > > > build sage from source. During the build process (of sage-4.6.1) I ran > > > into the following error: > > > > Making all in mpn > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 > > > -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo > > > fib_table | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -c -o fib_table.lo fib_table.c > > > mkdir .libs > > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_fib_table -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c fib_table.c -fno-common -DPIC -o > > > .libs/fib_table.o > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 > > > -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo > > > mp_bases | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -c -o mp_bases.lo mp_bases.c > > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_mp_bases -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c mp_bases.c -fno-common -DPIC -o .libs/mp_bases.o > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 > > > -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo > > > add | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c -o add.lo add.c > > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_add -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c add.c -fno-common -DPIC -o .libs/add.o > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 > > > -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo > > > add_1 | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -c -o add_1.lo add_1.c > > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_add_1 -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c add_1.c -fno-common -DPIC -o .libs/add_1.o > > > /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_`echo add_n | sed 's/_$//'` -I. -I. -I.. `test -f > > > 'add_n.asm' || echo './'`add_n.asm > > > ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 > > > -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -I. -I. -I.. add_n.asm > > > -fno-common -DPIC -o .libs/add_n.o > > > m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n -DPIC > > > add_n.asm >tmp-add_n.s > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_add_n -I. -I. -I.. tmp-add_n.s -fno-common -DPIC -o > > > .libs/add_n.o > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 > > > -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo > > > sub | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c -o sub.lo sub.c > > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_sub -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c sub.c -fno-common -DPIC -o .libs/sub.o > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 > > > -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo > > > sub_1 | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -c -o sub_1.lo sub_1.c > > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_sub_1 -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro > > > -march=pentiumpro -c sub_1.c -fno-common -DPIC -o .libs/sub_1.o > > > /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_`echo sub_n | sed 's/_$//'` -I. -I. -I.. `test -f > > > 'sub_n.asm' || echo './'`sub_n.asm > > > ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 > > > -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_sub_n -I. -I. -I.. sub_n.asm > > > -fno-common -DPIC -o .libs/sub_n.o > > > m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_sub_n -DPIC > > > sub_n.asm >tmp-sub_n.s > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_sub_n -I. -I. -I.. tmp-sub_n.s -fno-common -DPIC -o > > > .libs/sub_n.o > > > /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_`echo mul_1 | sed 's/_$//'` -I. -I. -I.. `test -f > > > 'mul_1.asm' || echo './'`mul_1.asm > > > ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 > > > -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_mul_1 -I. -I. -I.. mul_1.asm > > > -fno-common -DPIC -o .libs/mul_1.o > > > m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_mul_1 -DPIC > > > mul_1.asm >tmp-mul_1.s > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_mul_1 -I. -I. -I.. tmp-mul_1.s -fno-common -DPIC -o > > > .libs/mul_1.o > > > /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_`echo addmul_1 | sed 's/_$//'` -I. -I. -I.. `test -f > > > 'addmul_1.asm' || echo './'`addmul_1.asm > > > ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 > > > -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_addmul_1 -I. -I. -I.. addmul_1.asm > > > -fno-common -DPIC -o .libs/addmul_1.o > > > m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_addmul_1 -DPIC > > > addmul_1.asm >tmp-addmul_1.s > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_addmul_1 -I. -I. -I.. tmp-addmul_1.s -fno-common -DPIC -o > > > .libs/addmul_1.o > > > /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_`echo submul_1 | sed 's/_$//'` -I. -I. -I.. `test -f > > > 'submul_1.asm' || echo './'`submul_1.asm > > > ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 > > > -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_submul_1 -I. -I. -I.. submul_1.asm > > > -fno-common -DPIC -o .libs/submul_1.o > > > m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_submul_1 -DPIC > > > submul_1.asm >tmp-submul_1.s > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_submul_1 -I. -I. -I.. tmp-submul_1.s -fno-common -DPIC -o > > > .libs/submul_1.o > > > /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro -march=pentiumpro -D__GMP_WITHIN_GMP -I.. > > > -DOPERATION_`echo lshift | sed 's/_$//'` -I. -I. -I.. `test -f > > > 'lshift.asm' || echo './'`lshift.asm > > > ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 > > > -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_lshift -I. -I. -I.. lshift.asm > > > -fno-common -DPIC -o .libs/lshift.o > > > m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_lshift -DPIC > > > lshift.asm >tmp-lshift.s > > > gcc -std=gnu99 -c -DHAVE_CONFIG_H -m32 -O2 -fomit-frame-pointer > > > -mtune=pentiumpro... > > read more » -- 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