I've been spending 2 days on building servo on ubuntu 14.04 . At first there were system glitches, later i shifted on to docker ubuntu image, and i loaded with complete dependencies and still things didn't work out. I am attaching the error log.
I'm getting the same exact error and I’m also on Ubuntu 14.04. I also tried building on my my Ubuntu i386 16.04 server and It threw the same error. I am tying to see how I can install this 'dbus' Python module.
The dbus module is not a necessary part of the build, so you can ignore it.
@vtomole :
1) apt-get install libdbus-glib-1-dev
2) pip install dbus-python
@jdm : Are we the only one to face such errors? As far as i've studied the log, there is a glitch in gcc compiling.
I have not seen this error reported before.
@jdm
@chawlanikhil24
I'm getting a new error:http://pastebin.com/Ha8qnavN
I also tried this https://github.com/servo/mozjs/issues/81, and I got the same error
I was able to build today after I pulled.
@zeusintuivo Did you exactly follow the readme ? and which platform you are using?
@vtomole
@jdm I encountered the same error when i tried on ubuntu 14.04 environment. I thought i might be some system glitch , then shifted to docker ubuntu 14.04, only error changed, nothing worked out.
@chawlanikhil24
I followed all the instructions from the README.
Mac 64 bit,
El Capitan 10.11.5.
Python 2.7.11 .... VERSION NOTE: I noticed 2.7.10 Does not work.
Perl 5.24.0
Node 6.2.2
Ruby 2.4.0dev
Rustc 1.9.0
Bash GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
OpenSSL 1.0.2h 3 May 2016.
...
Also notice @chawlanikhil24 that on Friday Master was broken. Today, I made a pull request and it the issues have been fixed. It compiles now.
I don't think that reporting that a mac build succeeded has any relevant here, since the people having difficulties are using ubuntu in docker.
@zeusintuivo Used git pull and it's still not building on windows or ubuntu 14.04 :(
@vtomole Are you using Python 2.7.11 ?
@zeusintuivo yes
mmm. ok I will try my own ubuntu install and look into in 24 hours, more
Update: I installed 5 Virtual boxes in Virtual box
All with these results.
1 Win 7 32 bit - Failed
1 Win 7 64 bit - Failed
1 Ubuntu 14.04 32 bit - Failed
1 Ubuntu 14.04 64 bit - Failed
1 Fedora 24 64 bit - Success!
Right now the main issue, I think.
is that the steps to prepare the machines
in windows and Ubuntu are not even working right of the box.
So I am looking to get alternative ways for a more stable install.
Perhaps I can create an automated install script that would recognize the operating system with bash and take care all the boring steps of installing.
For Windows I am looking into using Choco with CMDER , instead of the Bash inside MINGW
Seems to me that biggest issue is just to get the pre-steps to make rustc be operable. With that, we need all the tools from python and building libraries and that should be it.
This is what I am doing. for the next 24 hours again. If anyone wants to join? Or has any developments? I am also listening
Can you check if it builds on Ubuntu 15.10? I'm thinking about upgrading my machine to that instead.
Update, Today I got:
1 Win 7 32 bit, 30 GB Disk, 2 GB Ram - Success
1 Win 7 64 bit, 30 GB Disk, 2 GB Ram - Success
1 Ubuntu 14.04 32 bit, 16 GB Disk, 2 GB Ram - Success
1 Ubuntu 14.04 64 bit, 16 GB Disk, 2 GB Ram - Success
I need more time to document and write the steps. Notice the the whole servo install uses about more than 1GB.
@zeusintuivo absolutely and when extracted, it becomes approximately 3GB, please send the steps as soon as possible. I would like to automate the installation on ubuntu so that, none face the problem on ubuntu again.
Ubuntu 14.04.04 32-Bit (Draft Install)
Using Virtual Box Machine:
16 GB HDrive ( 500 MB /root ) (2 GB SWAP) (13 GB /)
2 GB RAM
PAE/NX, VT Hyper-V Enabled
# PREPARE UBUNTU 32 Bit
sudo apt-get install -yf autoconf automake build-essential cmake curl freeglut3-dev g++ git gperf libbz2-dev libcheese-dev libcheese-doc libcheese-gtk-dev libcheese-gtk23 libcheese7 libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-2-dbg libdbus-glib-1-dev libdbus-glib-1-doc libfreetype6-dev libgl1-mesa-dri libglib2.0-dev libglu1-mesa-dev libosmesa6-dev libssl-dev libssl-dev libtool libxmu-dev libxmu6 make pkg-config scite unzip xorg-dev zlib1g-dev libreadline6 libreadline6-dev libsqlite3-dev
# INSTALL SUBLIME 3
SUBLIMELASTESTBUILD=$(curl -L https://www.sublimetext.com/3 | grep 'The latest build is ....' | cut -c61-64)
SUBLIMENAME="sublime-text_build-${SUBLIMELASTESTBUILD}_i386.deb"
cd ~/Downloads/
curl -O https://download.sublimetext.com/${SUBLIMENAME}
sudo dpkg -i ${SUBLIMENAME}
# PREPARE PYTHON
## PYENV
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
echo 'export PATH="~/.pyenv/bin:$PATH"'>> .bashrc
echo 'eval "$(pyenv init -)"' >> .bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> .bashrc
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# See current version
python --version
pyenv
pyenv install 2.7.11
pyenv global 2.7.11
pyenv global
python --version
STOP! Close and Reopen Terminal to use new Python.
pip install --upgrade pip
pip install setuptools dbus-python virtualenv
sudo mkdir /_
sudo chown -R $USER:$USER /_
cd /_
git clone --depth 1 --single-branch https://github.com/servo/servo
cd servo
./mach build --dev
./mach run --dev tests/html/about-mozilla.html
./mach build --release
./mach run --release tests/html/about-mozilla.html
Ubuntu 14.04.04 64-Bit (Draft Install)
Using Virtual Box Machine:
16 GB HDrive ( 500 MB /root ) (2 GB SWAP) (13 GB /)
2 GB RAM
PAE/NX, VT Hyper-V Enabled
# PREPARE UBUNTU 64 Bit
sudo apt-get install -yf autoconf automake build-essential cmake curl freeglut3-dev g++ git gperf libbz2-dev libcheese-dev libcheese-doc libcheese-gtk-dev libcheese-gtk23 libcheese7 libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-2-dbg libdbus-glib-1-dev libdbus-glib-1-doc libfreetype6-dev libgl1-mesa-dri libglib2.0-dev libglu1-mesa-dev libncurses5-dev libncursesw5-dev libosmesa6-dev libreadline-dev libsqlite3-dev libssl-dev libtool libtool-doc libxmu-dev libxmu6 llvm make pkg-config scite unzip wget xorg-dev xz-utils zlib1g-dev
# INSTALL SUBLIME 3
SUBLIMELASTESTBUILD=$(curl -L https://www.sublimetext.com/3 | grep 'The latest build is ....' | cut -c61-64)
SUBLIMENAME="sublime-text_build-${SUBLIMELASTESTBUILD}_amd64.deb"
cd ~/Downloads/
curl -O https://download.sublimetext.com/${SUBLIMENAME}
sudo dpkg -i ${SUBLIMENAME}
# PREPARE PYTHON
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
echo 'export PATH="~/.pyenv/bin:$PATH"'>> .bashrc
echo 'eval "$(pyenv init -)"' >> .bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> .bashrc
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
python --version
pyenv install 2.7.11
pyenv global 2.7.11
pyenv global
python --version
STOP! Close and Reopen Terminal to use new Python.
# Check Python Version
python --version
pip install --upgrade pip
pip install setuptools dbus-python virtualenv
# BUILD SERVO
sudo mkdir /_
sudo chown -R $USER:$USER /_
cd /_
git clone --depth 1 --single-branch https://github.com/servo/servo
cd servo
./mach build --dev
./mach run --dev tests/html/about-mozilla.html
./mach build --release
./mach run --release tests/html/about-mozilla.html
@vtomole Can you try this guide for Ubuntu 14.04 I just placed, and let us know if it worked for you?
@zeusintuivo Okay I will do it asap!
I got: Compiling x11-dl v2.4.0
error: Could not compile x11-dl
.
@vtomole. I used brand new installed Ubuntu installs. I suggest you re-install your Ubuntu. This seems to be more an issue with your Ubuntu than with servo.
That error: x11-dl v2.4.0 is related to broken OpenGL
You can try reinstalling the whole library set:
sudo apt-get install -yf freeglut3 freeglut3-dbg freeglut3-dev
libtaoframework-freeglut-cil-dev
libtaoframework-freeglut2.4-cil
@zeusintuivo Just updated my PC and it doesn't boot anymore. I'll try to fix it this weekend, maybe @chawlanikhil24 can try to build it.
Windows 7 32 Bit ( Draft Install )
Install Community 2015 Visual Studio - https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx#d-community - Like 3 hours
+ Direct Link Download - https://go.microsoft.com/fwlink/?LinkId=691978
+ About 15 Gigas to 35 Gigas. Depends on how much you install.
Install MSYS2 - https://msys2.github.io/ Like 30 minutes
+ Direct Link Download - http://repo.msys2.org/distrib/i686/msys2-i686-20160205.exe
+ Run Pacman installs:
+ About 3 GBs
Install cmder - http://cmder.net/ Like 20 minutes
+ Direct Link Download - https://github.com/cmderdev/cmder/releases/download/v1.3.0/cmder.zip
+ Download full editor - 80 MB
+ Create "_" folder: C:\_
+ unzip under folder /_
+ click cmder ( select unblock all)
+ Configure cmder:
----+ Select 'Settings'
----* Integration-> Default Term ...Check Register OS on Startup
----* Main->Size & Pos ...Check Autosave window size and position
----* Main->Size & Pos ...Check Restore active monitor
Install Path Editor - http://www.rapidee.com/en/download
+ Direct Link Download - http://www.rapidee.com/download/RapidEE_setup.exe
+ Install and open
Install Choco - https://chocolatey.org/instal Like
+ Start cmder - as ADMIN (by right clicking it)
---+ Create tools folder
-------: mkdir C:\tools
---+ Paste this:
--------: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
CHECK Choco Paths:
+ Open Rapidee Program, if it was open refresh (F5)
+ Should look something like this:
--+ Values:
-------------: ChocolateyInstall=C:\ProgramData\chocolatey
-------------: ChocolateyLastPathUpdate=Fri Jul 15 14:56:57 2016
-------------: ChocolateyToolsLocation=C:\tools
Install PYTHON
+ REStart cmder - as ADMIN (by right clicking it)
+ Using choco install python 2.7.11 type:
-----: choco install python2
CHECK PYTHON PATHS :
+ Open Rapidee Program, if it was open refresh (F5)
--+ Values 3 paths inside PATH:
-------------: Inside PATH: .... C:\tools\python2:C:\tools\python2\Lib:C:\tools\python2\Scripts:
--+ Values 2 more Variables:
-------------: PYTHONHOME=C:\tools\python2
-------------: PYTHONPATH=C:\tools\python2\Lib
Test Python:
+ REStart cmder - as ADMIN (by right clicking it)
+ Type to enter python console:
-------------: python -v
+++++++ If this ^ does not take you to python interactive shell. Then python or ENVIRONMENT PATHs are not SET CORRECTLY; do not continue until you get this right.
Install PYTHON PIP VIRTUALENV
+ RE-Start cmder - as ADMIN (by right clicking it)
+ Using choco install pip
-------------: choco install -y pip
-------------: python -m pip install --upgrade pip
-------------: pip install virtualenv
-------------: python --version
Install Rust Requirements - https://github.com/rust-lang/rust - Like 1 hour
+ Open CMDER as Admin
---+ Go to: C:\msys32\usr\bin
--------------: cd C:\msys32\usr\bin
---+Execute:
--------------: pacman -Sy pacman-mirrors
--------------: pacman -S make diffutils mingw-w64-i686-cmake mingw-w64-i686-gcc
--------------: pacman -S mingw-w64-i686-gdb make mingw-w64-i686-cmake mingw-w64-i686-pkg-config mingw-w64-i686-freetype mingw-w64-i686-physfs mingw-w64-i686-libvorbis mingw-w64-i686-flac mingw-w64-i686-dumb mingw-w64-i686-libtheora mingw-w64-i686-libjpeg-turbo
Upgrade PYTHON SETUPTOOLS - https://pypi.python.org/pypi/setuptools/18.5#downloads - Like 20 minutes
+ Direct Link Download - https://bootstrap.pypa.io/ez_setup.py
+ Go to download location:
------------: cd C:\Users\%USERNAME%\Downloads
+ Execute Downloaded file:
------------: python ez_setup.py
######## If there red errors ^ running this running it again.
INSTALL CMAKE For Windows - https://cmake.org/download/
+ Direct Link Download - https://cmake.org/files/v3.6/cmake-3.6.0-win32-x86.msi
+ Make sure the CMAKE Directory is the last one on the list for tht %PATH% VAR.
BUILD Servo
+ cd C:/_/
+ git clone --depth 1 --single-branch https://github.com/servo/servo
+ cd servo
----: sh mach build --dev
----: sh mach run --dev tests/html/about-mozilla.html
DEBUG BUILD
----: set RUST_BACKTRACE=1 & sh mach build --dev --verbose
Windows 7 64 Bit ( Draft Install )
Install Community 2015 Visual Studio - https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx#d-community - Like 3 hours
+ Direct Link Download - https://go.microsoft.com/fwlink/?LinkId=691978
+ About 15 Gigas to 35 Gigas. Depends on how much you install.
Install MSYS2 - https://msys2.github.io/ Like 30 minutes
+ Direct Link Download - http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20160205.exe
+ About 3 GBs
Install cmder - http://cmder.net/ Like 20 minutes
+ Direct Link Download - https://github.com/cmderdev/cmder/releases/download/v1.3.0/cmder.zip
+ Download full editor - 80 MB
+ Create "_" folder: C:\_
+ unzip under folder /_
+ click cmder ( select unblock all)
+ Configure cmder:
----+ Select 'Settings'
----* Integration-> Default Term ...Check Register OS on Startup
----* Main->Size & Pos ...Check Autosave window size and position
----* Main->Size & Pos ...Check Restore active monitor
Install Path Editor - http://www.rapidee.com/en/download
+ Direct Link Download - http://www.rapidee.com/download/RapidEE_setup.exe
+ Install and open
Install Choco - https://chocolatey.org/instal Like
+ Start cmder - as ADMIN (by right clicking it)
---+ Create tools folder
-------: mkdir C:\tools
---+ Paste this:
--------: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
CHECK Choco Paths:
+ Open Rapidee Program, if it was open refresh (F5)
+ Should look something like this:
--+ Values:
-------------: ChocolateyInstall=C:\ProgramData\chocolatey
-------------: ChocolateyLastPathUpdate=Fri Jul 15 14:56:57 2016
-------------: ChocolateyToolsLocation=C:\tools
## Remember to Click "SAVE" when to apply changes ^.
Install PYTHON
+ RE-Start cmder - as ADMIN (by right clicking it)
+ Using choco install python 2.7.11 type:
-----: choco install -y python2
CHECK PYTHON PATHS :
+ Open 'Rapidee' Program, if it was open click refresh (F5)
--+ Values 3 paths inside PATH:
-------------: Add Inside to the bottom of the list PATH: .... C:\tools\python2:C:\tools\python2\Lib:C:\tools\python2\Scripts:
--+ Values Add 2 more Variables:
-------------: PYTHONHOME=C:\tools\python2
-------------: PYTHONPATH=C:\tools\python2\Lib
## Remember to Click "SAVE" when to apply changes ^.
Test Python:
+ RE-Start cmder - as ADMIN (by right clicking it)
+ Type to enter python console:
-------------: python -v
######## If this ^ does not take you to python interactive shell. Then python or ENVIRONMENT PATHs are not SET CORRECTLY; do not continue until you get this right.
Install PYTHON PIP VIRTUALENV
+ RE-Start cmder - as ADMIN (by right clicking it)
+ Using choco install pip
-------------: choco install -y pip
-------------: python -m pip install --upgrade pip
-------------: pip install virtualenv
-------------: python --version
Add PACMAN to PATHS:
+ Open 'Rapidee' Program, if it was open click refresh (F5)
--+ Add as the first element to PATH:
-------------: C:\msys64\usr\bin
## Remember to Click "SAVE" when to apply changes ^.
Install Rust Requirements - https://github.com/rust-lang/rust - Like 1 hour
+ Open CMDER as Admin
---+ Go to: C:\msys64\usr\bin
--------------: cd C:\msys64\usr\bin
---+Execute:
--------------: pacman -Sy pacman-mirrors
--------------: pacman -S make diffutils mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc
--------------: pacman -S mingw-w64-x86_64-gdb make mingw-w64-x86_64-cmake mingw-w64-x86_64-pkg-config mingw-w64-x86_64-harfbuzz mingw-w64-x86_64-cairo mingw-w64-x86_64-fontconfig mingw-w64-x86_64-glib2 mingw-w64-x86_64-icu mingw-w64-x86_64-freetype mingw-w64-x86_64-physfs mingw-w64-x86_64-libvorbis mingw-w64-x86_64-flac mingw-w64-x86_64-dumb mingw-w64-x86_64-libtheora mingw-w64-x86_64-libjpeg-turbo
Upgrade PYTHON SETUPTOOLS - https://pypi.python.org/pypi/setuptools/18.5#downloads - Like 20 minutes
+ Direct Link Download - https://bootstrap.pypa.io/ez_setup.py
+ Go to download location:
------------: cd C:\Users\%USERNAME%\Downloads
+ Execute Downloaded file:
------------: python ez_setup.py
######## If there red errors ^ running this running it again.
INSTALL CMAKE For Windows - https://cmake.org/download/
+ Direct Link Download - https://cmake.org/files/v3.6/cmake-3.6.0-win64-x64.msi
+ Make sure the CMAKE Directory is the last one on the list for tht %PATH% VAR.
BUILD Servo
+ cd C:/_/
+ git clone --depth 1 --single-branch https://github.com/servo/servo
+ cd servo
----: sh mach build --dev
----: sh mach run --dev tests/html/about-mozilla.html
DEBUG BUILD
----: set RUST_BACKTRACE=1 & sh mach build --dev --verbose
@zeusintuivo @vtomole I flushed my old ubuntu:14.04 image and pulled one more from docker hub. I guess there is a new commit might be added to the master since, at " ./mach build --dev" , everything stops at "pip didn't execute properly" . Since yesterday i am trying to rectify this stuff. Trying manual install for pip.
@chawlanikhil24 I followed all the steps from my posted draft for Ubuntu. Twice. I destroyed the Virtual Machines. I got the iso from Ubuntu. Used Virtual Box. Reinstalled all. And twice it worked. On both images 32 bit and 64 bit. Did you follow my steps? Is the docker image different from Virtual Box?
@zeusintuivo I followed each step you stated above to fulfill the dependencies. And yes, docker image is quite different from virtual machine, since, docker images uses the kernel of same linux i am using, which enhances the rate of operations occurring on both, the operating system and the docker container. Docker image doesn't boot. Once you run the container of ubuntu, u'll be getting a new terminal initiating in the root directory of docker image. But the kernels should not interrupt the working the servo? Am i right?
Now the only option left with me is to run on my ubuntu:14.04 operating system. I tried it as well and ended up with disabled gui, probable due to X11 package, and i've to reinstall linux on that system. Recovery didn't even help out.
@chawlanikhil24 seems to me that docker might not be very suitable for this. Servo is very complex to compile, given that it pulls several projects from Rust and other projects and it compiles them all on the fly. Docker does not provide a full Linux distribution, rather it gives you a limited distribution "without useless things."
Whoever posted that Servo supports Docker, should have also posted, the whole tutorial on how to build that image. And I talking regarding the topic "building servo inside a docker container." not using servo inside a docker contiainer. They are two different things. Or someone should make a docker image available. Give the limited docker documentation, there should also be more instructions on how to use that image.
@chawlanikhil24 I used a ready-made Docker container (Ubuntu image 14.04) from the Docker hub. And Servo does not compile with that image. I would advise to use Docker for a “ready” made version of servo, but NOT to use it for development of servo.
There seems to be several people that have uploaded "servo" images. You might want to check if one of those images work.
If, still, in pursuit of using Docker to develop servo. Which seems like an overkill for me look at the following link:
https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=servo&starCount=0
Is this still an issue, I have a few ready made bash scripts that automate install in Ubuntu 14.04, and Ubuntu 16.04
Where should I place the scripts, should I make a new folder like "install scripts" ?
I think we're moving to a model of supporting ./mach bootstrap
instead: https://github.com/servo/servo/pull/15230
@zeusintuivo I followed the instructions that you've provided to build servo on a Windows machine. They seem to have worked perfectly well (thanks!), however, when I run the following command I am expecting the servo window (or homepage) to appear on screen:
sh mach run --dev tests/html/about-mozilla.html
But, for some reason nothing is happening (no errors, too). I have just started digging into servo, so I may be doing something crazy.
@Dinika What if you execute ./mach run --dev tests/html/about-mozilla.html
instead?
Yes, I tried that too. However, it gives the following error message:
'.' is not recognized as an internal or external command,
operable program or batch file.
Oh, I think you're following the wrong set of steps from the readme. You should be running mach.bat run --dev tests/html/about-mozilla.html
, according to https://github.com/servo/servo/#normal-build.
Yeah, the first time I tried building servo I followed the instructions given in the README. I tried this command again and it results in the following error. I visited the file that is mentioned in the last line of the error message and then I found this message on the mailing list on Google groups. Do you think that the typo that is mentioned in the message could be causing this problem?
Installing missing MSVC dependencies...
Downloading ninja-1.7.1...
Downloading ninja-1.7.1: 100.0%
Extracting ninja-1.7.1...done
Downloading moztools-0.0.1-5...
Downloading moztools-0.0.1-5: 100.0%
Extracting moztools-0.0.1-5...done
Downloading openssl-1.0.1t-vs2015...
Downloading openssl-1.0.1t-vs2015: 100.0%
Extracting openssl-1.0.1t-vs2015...done
looking for rustc at C:\_\servo\.servo\rust\7dd4e2db785c8ec360a989f69891b1e97dd4d369-alt\rustc-nightly-unknown-pc-windows-msvc\rustc\bin\rustc.exe
Downloading Rust compiler...
Download failed (404): Not Found - https://s3.amazonaws.com/rust-lang-ci/rustc-builds-alt/7dd4e2db785c8ec360a989f69891b1e97dd4d369/rustc-nightly-unknown-pc-windows-msvc.tar.gz
Update - I think the above file has changed since the last time I visited it on March 26. I really did see the typo in the file.
The typo from the message relates to the content on download.servo.org, not the local build. The error that you're getting is because you're running from a normal command terminal (like the documentation instructed you). You can avoid this problem by launching vcvars15.bat
(or something else named very similarly) and running the build command, which will cause your operating system to be determined correctly. You will end up downloading a file called rustc-nightly-x86_64-pc-windows-msvc.tar.gz
, rather than rustc-nightly-unknown-pc-windows-msvc.tar.gz
.
I followed your instructions and I launched vcvars.bat file (I tried launching vcvars64, vcvarsamd64_x86, followed by vcvarsx86_amd64, of course, not simultaneously). While the batch file was still running I ran the build commands and I got the following error message every single time.
looking for rustc at C:\_\servo\.servo\rust\7dd4e2db785c8ec360a989f69891b1e97dd4d369-alt\rustc-nightly-unknown-pc-windows-msvc\rustc\bin\rustc.exe
Downloading Rust compiler...
Download failed (404): Not Found - https://s3.amazonaws.com/rust-lang-ci/rustc-builds-alt/7dd4e2db785c8ec360a989f69891b1e97dd4d369/rustc-nightly-unknown-pc-windows-msvc.tar.gz
I tried manually downloading the file you've mentioned in the comment. Sure enough, it's available and I could download it but I do not know how to make the build command look for and run this file.
What if you launch the vcvars64 batch file from inside the terminal before invoking mach?
Here's what I did. I ran the following command to launch vcvars64:
>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
When the environment was initialized for x64, I ran the build command (mach.bat build --dev) and I still got the same error as before.
I'm no expert at this, but if one of the first things that the build command does is download the rust compiler from the url mentioned in the error message, is there some way to download and execute the rust compiler myself from the correct url instead and then proceed with the next steps?
If you download the tar.gz, you can unpack it to .servo\rust\7dd4e2db785c8ec360a989f69891b1e97dd4d369-alt\rustc-nightly-unknown-pc-windows-msvc\
(in the root servo directory) and it should be found by the build system.
It seems to have solved the first problem (of downloading the rust compiler) however, it is now looking for 'Host rust library' that it can't find. (I copied every content of the downloaded file in the directory you mentioned and I also tried using the --force option, like so - mach.bat build --dev bootstrap-rust --force).
looking for rustc at C:\_\servo\.servo\rust\7dd4e2db785c8ec360a989f69891b1e97dd4d369-alt\rustc-nightly-unknown-pc-windows-msvc\rustc\bin\rustc.exe
Rust compiler already downloaded. Use |bootstrap-rust --force| to download again.
Downloading Host rust library for target unknown-pc-windows-msvc...
Download failed (404): Not Found - https://s3.amazonaws.com/rust-lang-ci/rustc-builds/7dd4e2db785c8ec360a989f69891b1e97dd4d369/rust-std-nightly-unknown-pc-windows-msvc.tar.gz
Same thing - replace unknown
in the URL with x86_64
.
@Dinika What type of computer do you have? I could try and give you remote help if our schedules match this weekend, or if there is way we can connect, so we get to the bottom of this. What type of Windows do you have? XP, Vista, 7, 8, 10, 11, 12,13,14
32 bits or 64 bits?
Which instructions did you follow?
@zeusintuivo I have Windows 10, 64-bit machine. I followed the instructions that you mentioned in the comments above (after trying the ones given in the README).
I'd really appreciate the help. Let me know what time suits you the best.
@Dinika The install instructions are made for Windows 7 32 and 64 bit. I have not yet issued or tested for Windows 10. What is your timezone? We need to find another way of contacting each other without posting personal info in here, and making a call or remote session perhaps we can work on Windows 10 instructions?
@jdm I was facing the same problem as Dinika when I tried to build servo. It was throwing the following error:
(servoyay) C:\Users\Vidushi\servo>mach.bat build --dev
looking for rustc at C:\Users\Vidushi\servo\.servo\rust\13d94d5fa8129a34f5c77a1bcd76983f5aed2434-alt\rustc-nightly-unknown-pc-windows-msvc\rustc\bin\rustc.exe
Downloading Rust compiler...
Download failed (404): Not Found - https://s3.amazonaws.com/rust-lang-ci/rustc-builds-alt/13d94d5fa8129a34f5c77a1bcd76983f5aed2434/rustc-nightly-unknown-pc-windows-msvc.tar.gz
So I unpacked the tar.gz file like you suggested and now am getting the following error:
(servoyay) C:\Users\Vidushi\servo>mach.bat build --dev
looking for rustc at C:\Users\Vidushi\servo\.servo\rust\13d94d5fa8129a34f5c77a1bcd76983f5aed2434-alt\rustc-nightly-unknown-pc-windows-msvc\rustc\bin\rustc.exe
Error running mach:
['build', '--dev']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You should consider filing a bug for this issue.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
WindowsError: [Error 5] Access is denied: u'C:\\Users\\Vidushi\\servo\\.servo\\rust\\13d94d5fa8129a34f5c77a1bcd76983f5aed2434-alt\\rustc-nightly-unknown-pc-windows-msvc'
File "C:\Users\Vidushi\servo\python\servo\build_commands.py", line 233, in build
self.ensure_bootstrapped(target=target)
File "C:\Users\Vidushi\servo\python\servo\command_base.py", line 592, in ensure_bootstrapped
stable=self._use_stable_rust)
File "C:\Users\Vidushi\servo\python\_virtualenv\Lib\site-packages\mach\registrar.py", line 123, in dispatch
return self._run_command_handler(handler, context=context, **kwargs)
File "C:\Users\Vidushi\servo\python\_virtualenv\Lib\site-packages\mach\registrar.py", line 90, in _run_command_handler
result = fn(**kwargs)
File "C:\Users\Vidushi\servo\python\servo\bootstrap_commands.py", line 85, in bootstrap_rustc
os.makedirs(rust_dir)
File "C:\Miniconda3\envs\servoyay\lib\os.py", line 157, in makedirs
mkdir(name, mode)
I m new to this and would appreciate some help. I m compiling this in a miniconda environment(named servoyay) since I already had python 2 and 3 on my PC. Is there something I m doing wrong or should I file for the bug?
@VidushiVashishth Did you find a way to build it in the end?
@nox No I did not. Was thinking of switching to Linux.
@VidushiVashishth
Do you use 64 bit Python 2.7?
The previous log showed you download rustc-nightly-unknown-pc-windows-msvc.tar.gz
This should be solved by 69efd086f51efa7616b9fd699c6f6e93f2fbfd77
If you have troubles with x64
type prompt as mach.bat set by default:
close due to outdated
Most helpful comment
Ubuntu 14.04.04 64-Bit (Draft Install)
Using Virtual Box Machine:
16 GB HDrive ( 500 MB /root ) (2 GB SWAP) (13 GB /)
2 GB RAM
PAE/NX, VT Hyper-V Enabled