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

Strange error from fontsan #13253

Closed
dns2utf8 opened this issue Sep 12, 2016 · 4 comments
Closed

Strange error from fontsan #13253

dns2utf8 opened this issue Sep 12, 2016 · 4 comments
Labels

Comments

@dns2utf8
Copy link
Contributor

@dns2utf8 dns2utf8 commented Sep 12, 2016

I had this strange error when building servo:

error: failed to run custom build command for `fontsan v0.3.2 (https://github.com/servo/fontsan#08bfa604)`
process didn't exit successfully: `/home/user/servo/target/release/build/fontsan-d1a72de1c2fe1b40/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/user/servo/.cargo/git/checkouts/fontsan-75864180be477bc9/master/src" "-DCMAKE_INSTALL_PREFIX=/home/user/servo/target/release/build/fontsan-d1a72de1c2fe1b40/out" "-DCMAKE_C_FLAGS= -O0 -ffunction-sections -fdata-sections -m64 -fPIC" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -O0 -ffunction-sections -fdata-sections -m64 -fPIC" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Release"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/servo/target/release/build/fontsan-d1a72de1c2fe1b40/out/build

--- stderr
CMake Error at CMakeLists.txt:119 (add_library):
  Cannot find source file:

    ots/third_party/woff2/src/buffer.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error at CMakeLists.txt:118 (add_library):
  Cannot find source file:

    ots/third_party/brotli/dec/decode.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: Cannot determine link language for target "woff2".
CMake Error: CMake can not determine linker language for target: woff2
CMake Error: Cannot determine link language for target "brotli".
CMake Error: CMake can not determine linker language for target: brotli
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now', /home/user/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.17/src/lib.rs:463
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Build FAILED in 0:00:07

It did not go away after

./mach clean

But it went after this:

find . -iname "*fontsan*" | xargs rm -rf 

Do you have any clues why this happend?

@stshine
Copy link
Contributor

@stshine stshine commented Sep 12, 2016

This happened because submodules in fontsan didn't get cloned.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Sep 21, 2016

Happens here as well.

@jdm jdm added the A-build label Sep 21, 2016
@g2p
Copy link
Contributor

@g2p g2p commented Dec 22, 2016

It happens in existing servo checkouts, because fontsan didn't have these submodules in the past.

rm -rf .cargo/git/checkouts/fontsan-75864180be477bc9

fixes it.

@nox
Copy link
Member

@nox nox commented Oct 4, 2017

Seems like this can be closed now.

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
6 participants
You can’t perform that action at this time.