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

ninja: FAILED: libexpat.a #30

Open
GrosserKaese opened this issue Nov 13, 2023 · 2 comments
Open

ninja: FAILED: libexpat.a #30

GrosserKaese opened this issue Nov 13, 2023 · 2 comments

Comments

@GrosserKaese
Copy link

GrosserKaese commented Nov 13, 2023

I think this is linked to ISSUE27.

While executing

ninja -C out/Release-x64 skia modules

the error

FAILED: libexpat.a
python "/home/rb/deps/skia/gn/rm.py" "libexpat.a" && ar rcs libexpat.a @libexpat.a.rsp
/bin/sh: 1: python: not found
[427/1786] compile ../../third_party/externals/harfbuzz/src/hb-ot-layout.cc
ninja: build stopped: subcommand failed.

occured (at step 414/1786).

edit: Just realized, when I'm executing ninja over and over again, it fails on a different file every time, but always claims it's the error at libexpat.a.

I'm using Linux Mint, full updated.

@GrosserKaese GrosserKaese changed the title ninja: not found hb-ot-layout.cc ninja: FAILED: libexpat.a Nov 13, 2023
@hien-ngo29
Copy link

I think this error is a library missing of Python code. I resolved the problem by installing expatriate library through pip (pip install expatriate).

Somehow on some machines pip doesn't work. It returns the error "This environment is externally managed" and doesn't install the package. In this case, you may refer to this StackOverflow page.

After installation, you can execute ninja -C out/Release-x64 skia modules and everything will work.

Hope this help.

@goudaghost
Copy link

Had the same issue trying to build on Debian. I think it's an issue referencing the python version or something since I had to run python3 instead of python in a previous step. Found a work around using help from a Cyberciti article to make a symlink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants