Repository navigation
TST, BUILD: add a gcc 4.8 run on ubuntu 18.04 - #14771
Conversation
0ac1817 to
d1c67b0
Compare
There was a problem hiding this comment.
Before this change, building locally with a broken compiler would result in the call to _c_string_literal below erroring out
File "/home/matti/pypy_stuff/numpy/numpy/distutils/system_info.py", line 1587, in get_atlas_version
'ATLAS_INFO', _c_string_literal(atlas_version))
File "/home/matti/pypy_stuff/numpy/numpy/distutils/system_info.py", line 177, in _c_string_literal
s = s.replace('\\', r'\\')
AttributeError: 'NoneType' object has no attribute 'replace'
|
It seems the place to add the |
|
Just compile it once and cache the result? |
IIRC, the bit that caused problems was declarations in Declaration after statement was another, but I think that passed without c99, |
|
I could not find a way to quiet the compiler output when calling |
| # azure config for mac os -- Microsoft has indicated | ||
| # they will patch this issue | ||
| vmImage: macOS-10.13 | ||
| vmImage: macOS-10.14 |
There was a problem hiding this comment.
This change is enough to fix the macOS failure
| @@ -0,0 +1,6 @@ | |||
| ``std=c99`` added if compiler is named ``gcc`` | |||
| ---------------------------------------------- | |||
|
|
|||
There was a problem hiding this comment.
I don't think the blank line is needed here. I edit them out of the final notes.
| 'clang' in self.compiler[0]): | ||
| self._auto_depends = True | ||
| if 'gcc' in self.compiler[0]: | ||
| # add std=c99 flag for gcc < 5 |
There was a problem hiding this comment.
This comment no longer seems valid. Is the version actually checked?
|
Seems to work, just a couple of nits. Might enable travis as you touched those tests also. |
|
Fixed the review comments. Travis is now running on this PR |
|
Any idea what is going on with the "abandoned" failing tests? |
|
I don't think the failing tests are relevant, but they also should not be failing. I'm going to close/reopen to see if that changes anything. |
|
Arrggghhhh, those staged azure tests really slow things down, the stages run serially rather than in parallel so that it takes twice as long. What a horrible waste of time :) |
|
Thanks Matti. |
Add a gcc 4.8 build to Azure, with the goal of properly adding a std=c99 flag