Skip to content

Update XCode version on CircleCI - #1084

Closed
dschuff wants to merge 3 commits into
mainfrom
xcode13
Closed

dschuff wants to merge 3 commits into
mainfrom
xcode13

Conversation

@dschuff

@dschuff dschuff commented Aug 3, 2022

Copy link
Copy Markdown
Member

12.2 is being deprecated.

@dschuff
dschuff requested review from kripken and sbc100 August 3, 2022 22:30
@sbc100

sbc100 commented Aug 4, 2022 •

Copy link
Copy Markdown
Collaborator

It looks like the test failure occurs when trying to run emcc from an old version of emscripten (sdk-fastcomp-3b8cff670e9233a6623563add831647e8689a86b) where emcc relies on python being the PATH.. but its is not in the PATH which I suppose means:

a) we were relying on the previous behaviour of the 12.2.0 to provide python in the path.
b) emcc was not being run using the python provided by emsdk.

Maybe its time to drop support for these older version of emsdk?

@sbc100

sbc100 commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

I imagine what happened is that the new image contains a newer version of macOS without /usr/bin/python?

@sbc100

sbc100 commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

@dschuff

dschuff commented Aug 4, 2022

Copy link
Copy Markdown
Member Author

Yeah, that could very well be. Given that emscripten only supports py3 now, I guess it kind of makes sense for us to stop testing the ancient versions on CI. If something breaks we could always make the recommendation to use an old emsdk to install an old emscripten.

@sbc100

sbc100 commented Aug 19, 2022

Copy link
Copy Markdown
Collaborator

Can you try adding python to the brew install step?

@dschuff

dschuff commented Aug 19, 2022 via email

Copy link
Copy Markdown
Member Author

@sbc100

sbc100 commented Aug 19, 2022

Copy link
Copy Markdown
Collaborator

Oops, I guess it was python2, can you retitle the step to something more general too?

@dschuff

dschuff commented Aug 19, 2022

Copy link
Copy Markdown
Member Author

Brew says:
Warning: [email protected] 3.9.13_1 is already installed and up-to-date.
During runtime:

+ emcc -v
env: python: Permission denied

I'm not sure if that's the same error as before or not.

@dschuff

dschuff commented Aug 19, 2022

Copy link
Copy Markdown
Member Author

hm, that is a very strange error from brew now.

@sbc100

sbc100 commented Aug 19, 2022

Copy link
Copy Markdown
Collaborator

hm, that is a very strange error from brew now.

ssh'ing in to take a look

@sbc100

sbc100 commented Aug 19, 2022

Copy link
Copy Markdown
Collaborator

Man.. I can't figure out a good solution.. I guess we could just accept those old emscripten versions are not installable easily of macOS anymore?

@dschuff

dschuff commented Aug 23, 2022

Copy link
Copy Markdown
Member Author

Is the problem that they're not installable easily, or that they're not easily runnable on the environment in Circle? Wouldn't just adding a symlink in the right place (easy for a user but maybe hard for a script that doesn't run as root) do the job?

@sbc100

sbc100 commented Aug 23, 2022

Copy link
Copy Markdown
Collaborator

Is the problem that they're not installable easily, or that they're not easily runnable on the environment in Circle? Wouldn't just adding a symlink in the right place (easy for a user but maybe hard for a script that doesn't run as root) do the job?

I can't seem to get python2 to install at all via homebrew. At least not on the circleci instance.

You could try symlinking python to python3 but the code that is looking for python is probably looking for python2.. e.g. it could contain print statements.. but I've not verfied if this is true. python3 could suffice?

@dschuff

dschuff commented Aug 23, 2022

Copy link
Copy Markdown
Member Author

I'd imagine the truly old version of emsdk really do need python2, no?

@sbc100

sbc100 commented Aug 23, 2022

Copy link
Copy Markdown
Collaborator

I'd imagine the truly old version of emsdk really do need python2, no?

I'm not sure.. IIRC its the just initial laucher that needs python in the path.. then it runs the actual emcc code using the embedded python

@sbc100

sbc100 commented Aug 23, 2022

Copy link
Copy Markdown
Collaborator

You can ./emsdk install sdk-fastcomp-3b8cff670e9233a6623563add831647e8689a86b to try it out.. I'll give it a go now

@sbc100

sbc100 commented Aug 23, 2022

Copy link
Copy Markdown
Collaborator
#!/usr/bin/env python                                                           
                                                                                   
# This script should work in python 2 *or* 3. It loads the main code using         
# python_selector, which may pick a different version.                          
                                                                                
from tools import python_selector                                               
                                                                                
import sys                                                                      
                                                                                
if __name__ == '__main__':                                                      
  python_selector.run(__file__)      

I tried running it in python3 and it seems to work! It does give some warnings but I think it should be ok for the purposes of the tests.

@dschuff

dschuff commented Aug 23, 2022

Copy link
Copy Markdown
Member Author

That version seems to have py3 as its embedded python anyway

@dschuff

dschuff commented Sep 13, 2022

Copy link
Copy Markdown
Member Author

I'll close this for now since we have #1103. Presumably we've just kicked the can down the road for a while.

@dschuff dschuff closed this Sep 13, 2022
@dschuff
dschuff deleted the xcode13 branch January 14, 2025 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants