Skip to content
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

Fix scoping / name look-up issue in PolyBoRi 0.8.0 and support flags from the environment #12750

Closed
alexanderdreyer mannequin opened this issue Mar 26, 2012 · 14 comments
Closed

Comments

@alexanderdreyer
Copy link
Mannequin

alexanderdreyer mannequin commented Mar 26, 2012

The following was found out here:
http://groups.google.com/group/sage-release/browse_thread/thread/e2a87c73dc1625f2

* PolyBoRi fails to build due to stricter (C++11) scoping / name look-up rules.
    Unfortunately PolyBoRi doesn't honor CXXFLAGS, so I had to use CXX="g++-4.7.0 -fpermissive" to make the spkg build. 

The scoping issue should be fixed here:
https://bitbucket.org/brickenstein/polybori/changeset/43b3931ceed7/raw/

Also, we should support CXXFLAGS and CFLAGS (ANd CPPFLAGS?) in the spkg.

Current spkg

Upstream: Fixed upstream, in a later stable release.

CC: @nexttime @sagetrac-PolyBoRi @malb @burcin

Component: algebra

Keywords: C++11 GCC 4.7.0 CXXFLAGS -fpermissive

Author: Alexander Dreyer

Reviewer: Leif Leonhardy

Merged: sage-5.0.beta12

Issue created by migration from https://trac.sagemath.org/ticket/12750

@alexanderdreyer alexanderdreyer mannequin added this to the sage-5.0 milestone Mar 26, 2012
@alexanderdreyer alexanderdreyer mannequin assigned aghitza Mar 26, 2012
@alexanderdreyer
Copy link
Mannequin Author

alexanderdreyer mannequin commented Mar 26, 2012

comment:1

There an updates spkg here:
http://boxen.math.washington.edu/home/dreyer/spkg/polybori-0.8.0.p2.spkg

@alexanderdreyer

This comment has been minimized.

@alexanderdreyer alexanderdreyer mannequin assigned alexanderdreyer and unassigned aghitza Mar 26, 2012
@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 26, 2012

Changed keywords from none to C++11 GCC 4.7.0 CXXFLAGS -fpermissive

@nexttime nexttime mannequin added the s: needs review label Mar 26, 2012
@alexanderdreyer alexanderdreyer mannequin assigned alexanderdreyer and unassigned alexanderdreyer Mar 26, 2012
@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 28, 2012

comment:6

Works as advertised, i.e., builds with GCC 4.7.0 (without -fpermissive) and also honors CXXFLAGS in the C++ compile commands (although I have to admit I haven't checked all of them, just a couple). Also passes its test suite.

I haven't really looked at the new spkg itself though, but I expect it to have no flaws... ;-)

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 28, 2012

Reviewer: Leif Leonhardy

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 28, 2012

comment:7

Replying to @nexttime:

I haven't really looked at the new spkg itself though, but I expect it to have no flaws... ;-)

Ok, did so. "Global" CFLAGS, CPPFLAGS and CXXFLAGS are properly added now, and upstream patches fixing the name look-up issue get applied.

The last revision isn't tagged yet (which the merge script then will do later), but more importantly, SPKG.txt lacks a new changelog entry.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 28, 2012

Work Issues: Update SPKG.txt.

@alexanderdreyer
Copy link
Mannequin Author

alexanderdreyer mannequin commented Mar 28, 2012

comment:8

I forgot that in the first. I immediately replaced it the spkg, but maybe it was cached somewhere, s.th. you might have to reload it.

The latest entry is as follows:

=== polybori-0.8.0.p2 (Alexander Dreyer, March 26th, 2012) ===
 * Fix scoping/name look-up issue and support flags from the environment

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 28, 2012

comment:10

Replying to @alexanderdreyer:

I forgot that in the first. I immediately replaced it the spkg, but maybe it was cached somewhere, s.th. you might have to reload it.

Well, the updated one is nearly 5 hours younger... ;-)

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 28, 2012

Changed work issues from Update SPKG.txt. to none

@alexanderdreyer
Copy link
Mannequin Author

alexanderdreyer mannequin commented Mar 28, 2012

comment:11

Replying to @nexttime:

Replying to @alexanderdreyer:

I forgot that in the first. I immediately replaced it the spkg, but maybe it was cached somewhere, s.th. you might have to reload it.

Well, the updated one is nearly 5 hours younger... ;-)

Right, 'immediately' in a philosophical manner ;-) No, sorry I had had trouble connecting to boxen then.

@alexanderdreyer
Copy link
Mannequin Author

alexanderdreyer mannequin commented Mar 29, 2012

comment:12

Replying to @nexttime:

Replying to @alexanderdreyer:

I forgot that in the first. I immediately replaced it the spkg, but maybe it was cached somewhere, s.th. you might have to reload it.

Well, the updated one is nearly 5 hours younger... ;-)

Can you also have a look at #12754 for PolyBoRi 0.8.1?

@jdemeyer
Copy link

Changed author from AlexanderDreyer to Alexander Dreyer

@jdemeyer
Copy link

jdemeyer commented Apr 2, 2012

Merged: sage-5.0.beta12

@jdemeyer jdemeyer closed this as completed Apr 2, 2012
@jdemeyer jdemeyer changed the title Fix scoping / name look-up issue und PolyBoRi 0.8.0 and support flags from the envrionment Fix scoping / name look-up issue in PolyBoRi 0.8.0 and support flags from the environment Apr 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants