It looks like the assembler is complaining because it is being asked
to compile a 64 bit program on a machine which it incorrectly believes
is 32 bits. We've seen a similar issue with MPIR, though the C
compiler there was pathcc not gcc. We decided the machine had probably
been set up incorrectly.

Bill.

On 19 Apr, 15:59, Mike Cripps <agentica...@gmail.com> wrote:
> Hi all,
>
> I have been attempting to install Sage today from the source, and when
> I ran `make` I got the following output (after a lot of stuff compiled
> fine):
>
> /bin/sh ../libtool   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../
> src -I../
> src -I/root/sage/sage-3.4/local/include -Wa,--noexecstack -g -O2 -MT
> mpih-add1-a
> sm.lo -MD -MP -MF .deps/mpih-add1-asm.Tpo -c -o mpih-add1-asm.lo mpih-
> add1-asm.S
>  gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/root/sage/sage-3.4/
> local/incl
> ude -Wa,--noexecstack -g -O2 -MT mpih-add1-asm.lo -MD -MP -MF .deps/
> mpih-add1-asm.Tpo -c mpih-add1-asm.S  -fPIC -DPIC -o .libs/mpih-add1-
> asm.o
> mpih-add1-asm.S: Assembler messages:
> mpih-add1-asm.S:46: Error: bad register name `%rsi,%rcx,8)'
> mpih-add1-asm.S:47: Error: bad register name `%rdi,%rcx,8)'
> mpih-add1-asm.S:48: Error: bad register name `%rdx,%rcx,8)'
> mpih-add1-asm.S:49: Error: bad register name `%rcx'
> mpih-add1-asm.S:53: Error: bad register name `%rsi,%rcx,8)'
> mpih-add1-asm.S:54: Error: bad register name `%rdx,%rcx,8)'
> mpih-add1-asm.S:55: Error: bad register name `%r10'
> mpih-add1-asm.S:56: Error: bad register name `%rax'
> mpih-add1-asm.S:57: Error: bad register name `%rcx'
> mpih-add1-asm.S:60: Error: bad register name `%rcx'
> mpih-add1-asm.S:61: Error: bad register name `%rax'
> make[4]: *** [mpih-add1-asm.lo] Error 1
> make[4]: Leaving directory `/root/sage/sage-3.4/spkg/build/
> libgcrypt-1.4.3.p0/src/mpi'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/root/sage/sage-3.4/spkg/build/
> libgcrypt-1.4.3.p0/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/root/sage/sage-3.4/spkg/build/
> libgcrypt-1.4.3.p0/src'
> failed to build libgcrypt
>
> real    0m27.746s
> user    0m10.545s
> sys     0m10.749s
> sage: An error occurred while installing libgcrypt-1.4.3.p0
>
> The output from /proc/cpuinfo is as follows:
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 35
> model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
> stepping        : 2
> cpu MHz         : 2210.186
> cache size      : 1024 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> apicid          : 0
> initial apicid  : 1
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu de tsc msr pae cx8 apic cmov pat clflush mmx
> fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good
> pni lahf_lm cmp_legacy
> bogomips        : 4422.77
> TLB size        : 1024 4K pages
> clflush size    : 64
> cache_alignment : 64
> address sizes   : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp
>
> processor       : 1
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 35
> model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
> stepping        : 2
> cpu MHz         : 2210.186
> cache size      : 1024 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> apicid          : 0
> initial apicid  : 0
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu de tsc msr pae cx8 apic cmov pat clflush mmx
> fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good
> pni lahf_lm cmp_legacy
> bogomips        : 4422.77
> TLB size        : 1024 4K pages
> clflush size    : 64
> cache_alignment : 64
> address sizes   : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp
>
> The machine is running Debian/Lenny, I can provide information on any
> installed packages if that will help.
>
> Please can you advise on how to proceed?
>
> Many thanks
> Mike Cripps
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to