TeamCity (build 51228) and Google V8 build

Google V8 project requires depot_tools as main tool to retrieve and update source code from VCS. Depot_tools has own version of Python (Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32) to correct work.

First step is retrieving source code from VCS, command "fetch v8" does it. That command works fine from terminal (cmd), but doesn't work as build step of project in TeamCity. Error messages:

[Step 1/3] 0> Failed to fetch file gs://chromium-clang-format/b5f5d8d5f8a8fcd2edb5b6cae37c0dc3e129c945 for v8/buildtools/win/clang-format.exe, skipping. [Err: [E2018-12-05T11:39:48.989237-05:00 3108 0 venv.go:942] Command (cwd=C:\TeamCity\buildAgent\temp\buildTmp\vpython_bootstrap721749222\packages\virtualenv-15.1.0): [C:\utils\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe -B -E -s virtualenv.py --no-download C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59]
[Step 1/3]
[Step 1/3] Process output:
[Step 1/3]
[Step 1/3] New python executable in C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59\Scripts\python.exe
[Step 1/3]
 
[Step 1/3] ERROR: The executable C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59\Scripts\python.exe is not functioning
[Step 1/3]
[Step 1/3] ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\config\\systemprofile\\.vpython-root\\ac0e59' (should be u'c:\\windows\\system32\\config\\systemprofile\\.vpython-root\\ac0e59')
[Step 1/3]
[Step 1/3] ERROR: virtualenv is not compatible with this system or executable
[Step 1/3]
[Step 1/3] Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
 
TeamCity host is Windows Server 2012 R2, 64 bits.
 
Any ideas how to fix it?
1
1 comment

It seems like it's trying to access files with the wrong architecture (see how the sys prefix is accessing syswow64 while expecting system32). Please follow the steps here for troubleshooting: https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity

0

Please sign in to leave a comment.