Building Chromium on Windows. ERROR at //skia/BUILD.gn:233:14: Undefined identifier

590 views
Skip to first unread message

Oleksii Kadurin

unread,
Dec 26, 2016, 10:46:58 AM12/26/16
to Chromium-dev
Hi! I'm following the instruction in here https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Setting-up-Windows .
All the needed components (VS2015, SDK) are installed successfully.
But it fails when I run the next command:
gn gen out/Default

Is outputs:
c:\chromium\src>gn gen out/Default
ERROR at
//skia/BUILD.gn:233:14: Undefined identifier
  sources
+= skia_xps_sources
             
^---------------
See //BUILD.gn:209:5: which caused the file to be included.
   
"//skia:skia_unittests",
   
^----------------------

Could you please help me with that issue? Thanks in advance!

Paweł Hajdan, Jr.

unread,
Dec 27, 2016, 8:58:49 AM12/27/16
to ovka...@gmail.com, Chromium-dev
Some quick things to check:

1. Did you run gclient sync?

2. Did you possibly check out a broken revision? Try updating the checkout, and remember to run "gclient sync" again.

Paweł

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Oleksii Kadurin

unread,
Dec 27, 2016, 1:18:11 PM12/27/16
to Chromium-dev, ovka...@gmail.com
Hi Paweł
Thank you! Running gclient sync helped. 
I usually do "git pull --rebase origin master". And thought that it's the same as "gclient sync"

Christian Biesinger

unread,
Dec 27, 2016, 3:30:06 PM12/27/16
to Oleksii Kadurin, chromium-dev
They're actually unrelated -- after git pull you always have to do gclient sync as well (and you have to git pull before gclient sync or it won't do anything useful).

Christian

Oleksii Kadurin

unread,
Dec 27, 2016, 3:32:07 PM12/27/16
to Chromium-dev, ovka...@gmail.com
Thank you for information!
Reply all
Reply to author
Forward
0 new messages