Build issue - gyp: Undefined variable

388 views
Skip to first unread message

William Bittner

unread,
Feb 5, 2016, 10:49:13 AM2/5/16
to Chromium-dev
Hi,
  This is probably the 5th Windows build server I have setup but I cannot figure this one out so any help would be great


________ running 'C:\code\depot_tools\python276_bin\python.exe src/build/gyp_chr
omium' in 'C:\code\chromium_git\chromium'
Enabled Psyco JIT.
Updating projects from gyp files...
gyp: Undefined variable c_sources in C:\code\chromium_git\chromium\src\third_par
ty\ffmpeg\ffmpeg.gyp
gyp: Undefined variable platform_heap_asm_files in C:\code\chromium_git\chromium
\src\third_party\WebKit\Source\platform\blink_platform.gyp
Error: Command 'C:\\code\\depot_tools\\python276_bin\\python.exe src/build/gyp_c
hromium' returned non-zero exit status 1 in C:\code\chromium_git\chromium
Hook ''C:\code\depot_tools\python276_bin\python.exe' src/build/gyp_chromium' too
k 22.28 secs

I tried removing the two folders and re-running gclient sync again - still a problem. Any ideas?

Mohamed elbrini

unread,
Feb 8, 2016, 10:21:54 AM2/8/16
to Chromium-dev
Hi,
I am having the same problem, did you find a fix?

William Bittner

unread,
Feb 8, 2016, 10:53:29 AM2/8/16
to mohamed.el...@gmail.com, Chromium-dev
No I have not - please let me know if you figure it out - as I am currently blocked on it and on a tight deadline. 

Can you tell me what commit is the latest in your chromium git log? The last commit before i branched was:

commit c78c0ad7cca1b37761b488e9499d619b21c8016d
Author: skobes <sko...@chromium.org>
Date:   Mon Dec 7 12:21:23 2015 -0800

Then in third party for example - ffmpeg - I am on:

commit b5b1d0e988d68b2bba2eb2deeacf77079f70ddfa
Author: Chris Cunningham <chcunn...@chromium.org>
Date:   Tue Dec 1 10:54:38 2015 -0800

Mohamed elbrini

unread,
Feb 8, 2016, 11:46:47 AM2/8/16
to William Bittner, Chromium-dev
I managed to solve the problem, in fact I had a bad target_arch value, so the c_sources variables wasn't defined.
Take a look here.
--
Mohamed EL BRINI
Ingénieur en informatique des systèmes embarqués
(0033) 6 28 81 18 53

William Bittner

unread,
Feb 8, 2016, 4:07:57 PM2/8/16
to Mohamed elbrini, Chromium-dev
For the records - maybe someone will find this while googling later on for this issue - here is what I did wrong:

In my environment variables on Windows - I had:

set GYP_DEFINES=target_arch=x86_64

When it needs to be:
set GYP_DEFINES=target_arch=x64

Thanks so much for help - I want to slap myself for this mistake :-)

Jeremy Roman

unread,
Feb 8, 2016, 4:13:23 PM2/8/16
to noqlm...@gmail.com, Mohamed elbrini, Chromium-dev
I'd just like to thank you both for leaving the solution to your problem on the thread (cf. https://xkcd.com/979/).

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

宇超

unread,
Dec 22, 2016, 9:28:58 PM12/22/16
to Chromium-dev, mohamed.el...@gmail.com
Can I set the variable "target_arch" to "x86" ?

在 2016年2月9日星期二 UTC+8上午5:07:57,William Bittner写道:

宇超

unread,
Dec 23, 2016, 12:53:14 AM12/23/16
to Chromium-dev, mohamed.el...@gmail.com
If I set GYP_DEFINES=target_arch=x64, more errors will be reported.



在 2016年2月9日星期二 UTC+8上午5:07:57,William Bittner写道:
For the records - maybe someone will find this while googling later on for this issue - here is what I did wrong:
Reply all
Reply to author
Forward
0 new messages