-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PolyBoRi ignores CXX and passes Sun flags to GNU C compiler #6528
Comments
comment:1
I understand it's best to start a new 'p9' release, so here it is. http://sage.math.washington.edu/home/kirkby/Solaris-fixes/polybori-0.5rc.p9-Second-try/polybori-0.5rc.p9.spkg This has been tested on both 't2' and my Sun Blade 2000. dave |
comment:2
I have checked in all changes in your name. The updated SPKG is up at http://sage.math.washington.edu/home/mvngu/patch/polybori-0.5rc.p9.spkg |
Merged: Sage 4.1.1.alpha1 |
Reviewer: Minh Van Nguyen |
comment:4
The SPKG at http://sage.math.washington.edu/home/mvngu/patch/polybori-0.5rc.p9.spkg builds successfully on t2. (It also compiles OK on Linux.) |
I noticed a couple of issues with polybori-0.5rc.p8 on Solaris.
Note how on the first line, polybori uses the GNU C compiler gcc to
compile a C file, but passes an unreconised option '-KPIC'. (That option would be acceptable to the Sun compiler).
Then on the very next line, it calls the Sun C++ compiler 'CC' to
compile a .cc file! It sure gets in a mess!
When I type
I see:
So given CXX is defined as g++,
It has been pointed out to me that #2999 noticed similar issues with a number of packages ignoring CC and CXX and had patch for polybori, but it was never integrated. Integration is very simple.
Another issue with PolyBoRi is that it assumes the GNU linker - see my fix at #6437.
But there is a ticket related to updating PolyBoRi to the latest upstream version too: #6177.
so I'll wait until I know what happening before applying patches against an old version of polybori which might be a waste of my time.
Component: porting: Solaris
Author: David Kirkby
Reviewer: Minh Van Nguyen
Merged: Sage 4.1.1.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/6528
The text was updated successfully, but these errors were encountered: