#11083: PolyBoRi fails to build on Solaris with gcc-4.6.0
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-4.7
Component: solaris | Keywords:
Author: | Upstream: Reported upstream. Little or no
feedback.
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
When compiling with gcc, !PolyBoRi generates position independent code
because of the compiler flag -fPIC. It does this on Solaris, and I expect
Linux and OS X too.
However, on Solaris !PolyBoRi also generates the compiler flag
"{{{-KPIC}}}" which is the flag used by Sun (now Oracle) compilers to
generate position independent code. GCC has always ignored this flag.
However, the latest gcc does not, and considers this an error.
{{{
g++ -o Cudd/obj/cuddObj.pic.o -c -O3 -Wno-long-long -Wreturn-type -g -fPIC
-ftemplate-depth-100 -O3 -Wno-long-long -Wreturn-type -g -fPIC -KPIC
-DNDEBUG -DHAVE_GD -DHAVE_TR1_UNORDERED_MAP -DPACKED -DHAVE_M4RI -DHAVE_GD
-DHAVE_IEEE_754 -DBSD -I/export/home/drkirkby/sage-new-
gcc/sage-4.7.alpha2/local/include -I/export/home/drkirkby/sage-new-
gcc/sage-4.7.alpha2/local/include/python2.6 -Ipolybori/include -ICudd/obj
-ICudd/util -ICudd/cudd -ICudd/mtr -ICudd/st -ICudd/epd
Cudd/obj/cuddObj.cc
g++: error: unrecognized option '-KPIC'
scons: *** [Cudd/obj/cuddObj.pic.o] Error 1
scons: building terminated because of errors.
Error building PolyBoRi.
}}}
I found this on !OpenSolaris, but I'm 99% sure the same would happen on
Solaris, since I know the option "{{{-KPIC}}}" has always been there on
both systems.
I'm cc'ing the !PolyBoRi developers.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11083>
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.