#11083: PolyBoRi fails to build on OpenSolaris with gcc-4.6.0
--------------------------------------------------------+-------------------
Reporter: drkirkby | Owner:
drkirkby
Type: defect | Status:
needs_review
Priority: blocker | Milestone:
sage-4.7
Component: solaris | Resolution:
Keywords: | Work_issues:
Upstream: Completely fixed; Fix reported upstream | Reviewer: David
Kirkby
Author: Alexander Dreyer | Merged:
sage-4.7.alpha4
Dependencies: |
--------------------------------------------------------+-------------------
Old description:
> 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.
>
> == Summary ==
> * SPKG:
> http://sage.math.washington.edu/home/dreyer/spkg/polybori-0.7.0.p2.spkg
New description:
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.
== Summary ==
* SPKG:
[http://boxen.math.washington.edu/home/jdemeyer/spkg/polybori-0.7.0.p2.spkg]
--
Comment(by jdemeyer):
I removed `SPKG.txt~`, new spkg:
[http://boxen.math.washington.edu/home/jdemeyer/spkg/polybori-0.7.0.p2.spkg]
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11083#comment:18>
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.