#15702: Error installing package gcc-4.7.3.p1 on Raspberry Pi (armv6l)
-----------------------+-------------------------------------------
Reporter: wluebbe | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.1
Component: build | Keywords: Raspberry Pi, armv6 gcc
Merged in: | Authors: Wilfried Luebbe
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------+-------------------------------------------
The starting point is {{{Installing GCC because a Fortran compiler is
missing.}}}
After
{{{
[ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup;
else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && (echo "/* GNU
ld script"; echo " Use the shared library, but some functions are only
in"; echo " the static library. */"; echo "GROUP ( libgcc_s.so.1
libgcc.a )" ) > ./libgcc_s.so
}}}
there are LOTS of messages like
{{{
/usr/bin/ld: error: ./libgcc_s.so.1.tmp uses VFP register arguments,
_negdi2_s.o does not
/usr/bin/ld: failed to merge target specific data of file _negdi2_s.o
/usr/bin/ld: error: ./libgcc_s.so.1.tmp uses VFP register arguments,
_cmpdi2_s.o does not
/usr/bin/ld: failed to merge target specific data of file _cmpdi2_s.o
}}}
The problem seems be a conflict between hard and soft FP
(http://stackoverflow.com/questions/9753749/arm-compilation-error-vpf-
registered-used-by-executable-not-object-file).
In http://trac.sagemath.org/wiki/ExoticPorts jpflori also mentions hard
floats.
The problem can of course easily circumvented by {{{apt-get install gcc
g++ gfortran}}}.
Side remark: Since building Sage from source on Raspberry Pi already takes
almost 5 days with the three compilers pre-installed (compared to 1 hour
on my 4 core i750 desktop) - building gcc may NOT be the recommended way
...
But to avoid a build error even on an exotic platform and if there is a
simple fix ...
--
Ticket URL: <http://trac.sagemath.org/ticket/15702>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.