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

Error in mach #3261

Closed
EdorianDark opened this issue Sep 9, 2014 · 4 comments
Closed

Error in mach #3261

EdorianDark opened this issue Sep 9, 2014 · 4 comments

Comments

@EdorianDark
Copy link

@EdorianDark EdorianDark commented Sep 9, 2014

I was trying to build servo on the latest kubuntu version.
I have installed all necessary packages as listed in the Readme under Debian-based Linuxes.

   ~/projeckte/servo$ ./mach build 

   .... 

I have omitted some lines.
....

   Fresh core_text v0.1.0 (https://github.com/servo/rust-core-text#e2280222)
   Fresh layers v0.1.0 (https://github.com/servo/rust-layers#c0402990)
   Could not compile `glfw`.

   --- stderr
   src/glfw/ffi/link.rs:27:1: 27:13 error: error returned by `pkg-config`: (exit code: 1)
   `pkg-config stdout`: 
   `pkg-config stderr`: Package glfw3 was not found in the pkg-config search path.
   Perhaps you should add the directory containing `glfw3.pc'
   to the PKG_CONFIG_PATH environment variable
   No package 'glfw3' found

   src/glfw/ffi/link.rs:27 #[link_glfw]
                           ^~~~~~~~~~~~
   error: aborting due to previous error


   To learn more, run the command again with --verbose.
   Error running mach:

       ['build']

   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:

   CalledProcessError: Command '[u'cargo', u'build']' returned non-zero exit status 101

     File "/home/leifeld/projeckte/servo/python/servo/build_commands.py", line 46, in build
       subprocess.check_call(["cargo", "build"] + opts, env=self.build_env())
     File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
       raise CalledProcessError(retcode, cmd)

But the argument is not recognized:

   ~/projeckte/servo$ ./mach build --verbose
   It looks like you passed an unrecognized argument into mach.

   The build command does not accept the arguments: --verbose

So I am reporting a bug because mach told me so =)

@metajack
Copy link
Contributor

@metajack metajack commented Sep 9, 2014

Package glfw3 was not found in the pkg-config search path.

You need to install libglfw3-dev or glfw3-devel or whatever the pacakge is on your system. We'll be fixing this dependency requirement in the near future.

@Manishearth
Copy link
Member

@Manishearth Manishearth commented Sep 9, 2014

In the meantime, etc/ci/travis.install.sh might help if you want to build it yourself.

@tetsuharuohzeki
Copy link
Member

@tetsuharuohzeki tetsuharuohzeki commented Sep 9, 2014

This is reproducible on OSX 10.9

@Manishearth
Copy link
Member

@Manishearth Manishearth commented Sep 9, 2014

See also (dupe-ish) #3252

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.

4 participants
You can’t perform that action at this time.