'Filename too long' issue when checking out WebRTC source

183 views
Skip to first unread message

Jose Antonio Olivera Ortega

unread,
May 25, 2016, 3:06:08 AM5/25/16
to discuss-webrtc
Hi there,

I am trying to check out the WebRTC sources on windows (Windows 10) and I am hitting the 'Filename too long' issue.

Note I am checking out the sources from Cygwin but It worked correctly before. The script I use basically does the following:

$ gclient.bat config --name ${SRC_PATH} https://chromium.googlesource.com/external/webrtc.git
$ export GYP_DEFINES="include_tests=0 target_arch=ia32"
$ export DEPOT_TOOLS_WIN_TOOLCHAIN=0
$ export GYP_MSVS_VERSION=2013
$ gclient.bat sync -n -D --with_branch_heads
$ gclient.bat runhooks

After some time it aborts and shows the following error:

[0:22:53] fatal: cannot create directory at 'third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/media-elements/synchronising-multiple-media-elements/media-controllers': Filename too long
----------------------------------------
Error: Command 'git reset --hard refs/remotes/origin/master' returned non-zero exit status 128 in C:\Users\user\jenkins\workspace\task-build-webrtc\CONFIGURATION\Release\PLATFORM\windows\src\chromium\src
Error: Command 'C:\\depot_tools\\python276_bin\\python.exe -u src/sync_chromium.py --target-revision 099be58b08dadb64b1dc9f359ae097e978df5416' returned non-zero exit status 1 in C:\Users\user\jenkins\workspace\task-build-webrtc\CONFIGURATION\Release\PLATFORM\windows
Hook ''C:\depot_tools\python276_bin\python.exe' -u src/sync_chromium.py --target-revision 099be58b08dadb64b1dc9f359ae097e978df5416' took 1382.92 secs

Have you guys experienced this before? Thanks!

Cheers,
jaoo.




Peter Boström

unread,
May 25, 2016, 6:35:40 AM5/25/16
to discuss-webrtc
Maybe not the answer you wanted, but I'd check out from a more shallow directory.

>>> len(" C:\Users\user\jenkins\workspace\task-build-webrtc\CONFIGURATION\Release\PLATFORM\windows\src\chromium\src/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/media-elements/synchronising-multiple-media-elements/media-controllers")
252

"In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character."

So either way it looks very close to the limit.


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/a7333edf-4e7a-407d-bcf2-449c0dfb5769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jose Antonio Olivera Ortega

unread,
May 26, 2016, 3:11:52 AM5/26/16
to discuss-webrtc
Hi Peter, thanks for your answer.


On Wednesday, 25 May 2016 12:35:40 UTC+2, Peter Boström wrote:
Maybe not the answer you wanted, but I'd check out from a more shallow directory.

Good tip, It worked. The check out finishes successfully. Thanks.

Cheers,
jaoo.
Reply all
Reply to author
Forward
0 new messages