#10285: Sage doesn't build with an arm processor
----------------------+-----------------------------------------------------
Reporter: Snark | Owner: GeorgSWeber
Type: defect | Status: new
Priority: major | Milestone:
Component: build | Keywords: ARM
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------+-----------------------------------------------------
Comment(by michaelh):
Hi there. I found this ticket via:
https://bugs.launchpad.net/ubuntu/+bug/677360
There's a bunch of things going on here and they look like the package has
been configured incorrectly. I don't think the compiler is at fault.
This code:
{{{
/home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-
build/../src//CONFIG/src/atlconf_misc.c:306: warning: the use of `tmpnam'
is dangerous, better use `mkstemp'
2690 /home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-
build/../src//CONFIG/src/backend/cpuid.S: Assembler messages:
2691 /home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-
build/../src//CONFIG/src/backend/cpuid.S:30: Error: bad instruction `subl
$8,%esp'
2692 /home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-
build/../src//CONFIG/src/backend/cpuid.S:31: Error: bad instruction `movl
%ebx,(%esp)'
2693 /home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-
build/../src//CONFIG/src/backend/cpuid.S:32: Error: bad instruction `movl
%edi,4(%esp)'
2694 /home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-
build/../src//CONFIG/src/backend/cpuid.S:36: Error: bad instruction `movl
16(%esp),%eax'
}}}
is x86 assembler.
This line:
{{{
cd /home/jpuydt/sage/spkg/build/atlas-3.8.3.p16/ATLAS-build ;
./xprobe_comp -v 0 -o atlconf.txt -O 1 -A 0 -Si nof77 0 -Fa ic '-fPIC'
-Fa sm '-fPIC' -Fa dm '-fPIC' -Fa sk '-fPIC' -Fa dk '-fPIC' -Fa xc '-fPIC'
-C if '/home/jpuydt/sage/local/bin/sage_fortran' -Fa if '-fPIC' -b 32 >
config1.out
2754 cc1: error: unrecognized command line option "-m32"
}}}
fails due to the ARM compiler being passed the x86 specific -m32 flag.
This code:
{{{
gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\"
-DPACKAGE_VERSION=\"7.1\" "-DPACKAGE_STRING=\"gc 7.1\""
-DPACKAGE_BUGREPORT=\"[email protected]\" -DGC_VERSION_MAJOR=7
-DGC_VERSION_MINOR=1 -DPACKAGE=\"gc\" -DVERSION=\"7.1\"
-DGC_LINUX_THREADS=1 -D_REENTRANT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1
-DGC_GCJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1
-DLARGE_CONFIG=1 -I./include -fexceptions -I libatomic_ops/src -g -O2 -MT
alloc.lo -MD -MP -MF .deps/alloc.Tpo -c alloc.c -fPIC -DPIC -o
.libs/alloc.o
/tmp/cckXY2Jn.s: Assembler messages:
/tmp/cckXY2Jn.s:1314: Error: selected processor does not support Thumb
mode `swp ip,r2,[r3]'
}}}
is due to a swp instruction being used in inline assembly instead of the
correct ldrex. I know that Boehm GC 7.2 does this correctly and suspect
that 7.1 does as well, so you might have another configuration problem.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10285#comment:3>
Sage <http://www.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.