Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geckolib does not build on Windows #12505

Closed
larsbergstrom opened this issue Jul 19, 2016 · 0 comments
Closed

Geckolib does not build on Windows #12505

larsbergstrom opened this issue Jul 19, 2016 · 0 comments

Comments

@larsbergstrom
Copy link
Contributor

@larsbergstrom larsbergstrom commented Jul 19, 2016

See: http://build.servo.org/builders/windows-dev/builds/0

 (view as text)

bash -l ./mach build-geckolib
 in dir c:\buildbot\slave\windows-dev\build (timeout 1200 secs)
 watching logfiles {}
 argv: ['bash', '-l', './mach', 'build-geckolib']
 environment:
  ALLUSERSPROFILE=C:\ProgramData
  APPDATA=C:\Windows\system32\config\systemprofile\AppData\Roaming
  CARGO_HOME=/home/Administrator/.cargo
  COMMONPROGRAMFILES=C:\Program Files\Common Files
  COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
  COMMONPROGRAMW6432=C:\Program Files\Common Files
  COMPUTERNAME=WIN-1UDOTULBFGN
  COMSPEC=C:\Windows\system32\cmd.exe
  FP_NO_HOST_CHECK=NO
  HOME=C:\buildbot\slave\windows\build
  LOCALAPPDATA=C:\Windows\system32\config\systemprofile\AppData\Local
  MSYS=winsymlinks=lnk
  MSYSTEM=MINGW64
  NUMBER_OF_PROCESSORS=4
  OS=Windows_NT
  PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Amazon\cfn-bootstrap
  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
  PROCESSOR_ARCHITECTURE=AMD64
  PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
  PROCESSOR_LEVEL=6
  PROCESSOR_REVISION=3f02
  PROGRAMDATA=C:\ProgramData
  PROGRAMFILES=C:\Program Files
  PROGRAMFILES(X86)=C:\Program Files (x86)
  PROGRAMW6432=C:\Program Files
  PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\AWS Tools\PowerShell\
  PUBLIC=C:\Users\Public
  PWD=c:\buildbot\slave\windows-dev\build
  RUST_BACKTRACE=1
  SERVO_CACHE_DIR=/home/Administrator/.servo
  SYSTEMDRIVE=C:
  SYSTEMROOT=C:\Windows
  TEMP=C:\Windows\TEMP
  TMP=C:\Windows\TEMP
  USERDOMAIN=WORKGROUP
  USERNAME=WIN-1UDOTULBFGN$
  USERPROFILE=C:\Windows\system32\config\systemprofile
  WINDIR=C:\Windows
 using PTY: False
   Compiling winapi-build v0.1.1
   Compiling cfg-if v0.1.0
   Compiling void v1.0.2
   Compiling log v0.3.6
   Compiling heapsize v0.3.6
   Compiling encoding_index_tests v0.1.4
   Compiling encoding-index-korean v1.20141219.5
   Compiling encoding-index-singlebyte v1.20141219.5
   Compiling utf8-ranges v0.1.3
   Compiling num-traits v0.1.32
   Compiling serde v0.7.11
   Compiling encoding-index-simpchinese v1.20141219.5
   Compiling unicode-normalization v0.1.2
   Compiling encoding-index-japanese v1.20141219.5
   Compiling encoding-index-tradchinese v1.20141219.5
   Compiling getopts v0.2.14
   Compiling libc v0.2.13
   Compiling encoding v0.2.32
   Compiling rand v0.3.14
   Compiling num_cpus v0.2.13
   Compiling memchr v0.1.11
   Compiling aho-corasick v0.5.2
   Compiling kernel32-sys v0.2.1
   Compiling smallvec v0.1.8
   Compiling matches v0.1.2
   Compiling unicode-bidi v0.2.3
   Compiling deque v0.3.1
   Compiling rustc-serialize v0.3.19
   Compiling regex-syntax v0.3.3
   Compiling lazy_static v0.2.1
   Compiling geckoservo v0.0.1 (file:///C:/buildbot/slave/windows/build/ports/geckolib)
Build failed, waiting for other jobs to finish...
looking for rustc at /home/Administrator/.servo/rust/1.9.0/rustc-1.9.0-x86_64-pc-windows-gnu/rustc/bin/rustc
Downloading Rust compiler...
Extracting Rust compiler...
Rust compiler ready.
Downloading Host rust library for target x86_64-pc-windows-gnu...
Extracting Rust stdlib for target x86_64-pc-windows-gnu...
Rust x86_64-pc-windows-gnu libs ready.
GeckoLib build completed in 0:00:18
error: failed to run custom build command for `geckoservo v0.0.1 (file:///C:/buildbot/slave/windows/build/ports/geckolib)`
Process didn't exit successfully: `C:/buildbot/slave/windows/build/target/geckolib\debug\build\geckoservo-a221eed8255cdac6\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=..\..\components\style\properties
cargo:rerun-if-changed=properties.mako.rs

--- stderr


Traceback (most recent call last):
  File "components\style\properties\build.py", line 53, in render
    strict_undefined=True)
  File "components/style/properties/Mako-0.9.1.zip/mako/template.py", line 303, in __init__
    (code, module) = _compile_text(self, text, filename)
  File "components/style/properties/Mako-0.9.1.zip/mako/template.py", line 647, in _compile_text
    generate_magic_comment=template.disable_unicode)
  File "components/style/properties/Mako-0.9.1.zip/mako/template.py", line 628, in _compile
    node = lexer.parse()
  File "components/style/properties/Mako-0.9.1.zip/mako/lexer.py", line 234, in parse
    if self.match_control_line():
  File "components/style/properties/Mako-0.9.1.zip/mako/lexer.py", line 426, in match_control_line
    self.append_node(parsetree.ControlLine, keyword, isend, text)
  File "components/style/properties/Mako-0.9.1.zip/mako/lexer.py", line 132, in append_node
    node = nodecls(*args, **kwargs)
  File "components/style/properties/Mako-0.9.1.zip/mako/parsetree.py", line 77, in __init__
    code = ast.PythonFragment(text, **self.exception_kwargs)
  File "components/style/properties/Mako-0.9.1.zip/mako/ast.py", line 79, in __init__
    code, **exception_kwargs)
CompileException: Fragment 'if style_struct.gecko_ffi_name in "nsStyleBorder nsStyleDisplay nsStyleList nsStyleBackground "\' is not a partial control statement in file 'components/style/properties/../../../ports/geckolib/properties.mako.rs' at line: 404 char: 1


program finished with exit code 101
elapsedTime=53.928000

cc @emilio @upsuper

bors-servo added a commit that referenced this issue Jul 19, 2016
Rewrite a line in geckolib's properties.mako.rs to fix the build on windows.

Fixes #12505.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12506)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jul 20, 2016
Rewrite a line in geckolib's properties.mako.rs to fix the build on windows.

Fixes #12505.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12506)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.