You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting CXX to 'python …/emcc.py' confuses some configure scripts (follow-up to #5967) #6378
The call to which(AR) fails when AR is set to python …/cmar.py, because that's not a single program.
Here's another relevant part:
deftest_cxx_compiler(cc):
ifis_verbose():
print("Testing %s..."%cc)
t=TempFile('tst.cpp')
t.add('#include<iostream>\nint main() { return 0; }\n')
t.commit()
returnexec_compiler_cmd([cc, CPPFLAGS, CXXFLAGS, 'tst.cpp', LDFLAGS]) ==0deffind_cxx_compiler():
globalCXX, CXX_COMPILERSifCXXisnotNone:
iftest_cxx_compiler(CXX):
returnCXXforcxxinCXX_COMPILERS:
iftest_cxx_compiler(cxx):
CXX=cxxreturnCXXraiseMKException('C++ compiler was not found. Try to set the environment variable CXX with the C++ compiler available in your system.')
changed the title [-]Setting EMCC to 'python …/emcc.py' confuses some configure scripts (follow-up to #5967)[/-][+]Setting CXX to 'python …/emcc.py' confuses some configure scripts (follow-up to #5967)[/+]on Mar 25, 2018
@saschanaz is the Py3 warning the one we emit for Py3 no longer being officially supported? if so then I believe we removed that warning, as we now consider Py3 fully supported (or did we just plan to do that?) so could we undo this change to fix the issue?
Turns out we just intended to allow 2 and 3, but didn't do it. I opened #6415 which does that, and also fixes this issue.
The one missing thing there is to add a test for the issue here that is being fixed. @cpitclaudel, your summary of the issue above is pretty good, but I'm not sure offhand how to create a small testcase for it?
Activity
[-]Setting EMCC to 'python …/emcc.py' confuses some configure scripts (follow-up to #5967)[/-][+]Setting CXX to 'python …/emcc.py' confuses some configure scripts (follow-up to #5967)[/+]kripken commentedon Mar 28, 2018
Thanks for filing @cpitclaudel !
@saschanaz , do you have time to look at this?
saschanaz commentedon Mar 29, 2018
That change was to not trigger multiple Py3 warnings in a single command, not sure what should be done. Any ideas?
I'm still seeing multiple duplicated warnings when I build system libraries, so it definitely needs a fix.
kripken commentedon Mar 30, 2018
@saschanaz is the Py3 warning the one we emit for Py3 no longer being officially supported? if so then I believe we removed that warning, as we now consider Py3 fully supported (or did we just plan to do that?) so could we undo this change to fix the issue?
saschanaz commentedon Mar 30, 2018
Ah, that's great! In that case, yes, we can just revert this change.
allow either python 2 or 3, now that we test both and have no known p…
allow either python 2 or 3, now that we test both and have no known p…
kripken commentedon Apr 2, 2018
Turns out we just intended to allow 2 and 3, but didn't do it. I opened #6415 which does that, and also fixes this issue.
The one missing thing there is to add a test for the issue here that is being fixed. @cpitclaudel, your summary of the issue above is pretty good, but I'm not sure offhand how to create a small testcase for it?
cpitclaudel commentedon Apr 2, 2018
A small test case would be ensuring that the
whichfunction posted above returns a string (notNone) when passed the value ofgetenv("CXX"), I think.I was going to rewrite that function to avoid licensing issues… until I realized it came from https://stackoverflow.com/questions/377017/test-if-executable-exists-in-python .
kripken commentedon Apr 2, 2018
Thanks @cpitclaudel , I modified that a little and added a test based on it now.
cpitclaudel commentedon Apr 2, 2018
Excellent, thanks a lot
Allow both python 2 and 3, now that both are stable and tested (#6415)