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

Compilation failed. #572

Closed
marierose147 opened this issue Jun 9, 2021 · 4 comments
Closed

Compilation failed. #572

marierose147 opened this issue Jun 9, 2021 · 4 comments

Comments

@marierose147
Copy link
Contributor

Because harfbuzz renamed its default branch.
harfbuzz/harfbuzz@fa432a1

log:

Downloading (via git clone) harfbuzz_git from https://github.com/harfbuzz/harfbuzz.git
Cloning into 'harfbuzz_git.tmp'...
done git cloning to harfbuzz_git
doing git checkout origin/master
error: pathspec 'origin/master' did not match any file(s) known to git
HEAD is now at 19cb44935 Update COPYING
error: pathspec 'origin/master' did not match any file(s) known to git
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: Process completed with exit code 1.
@FX8350
Copy link

FX8350 commented Jun 9, 2021

build_harfbuzz() {
local new_build=false
do_git_checkout https://github.com/harfbuzz/harfbuzz.git harfbuzz_git

Please add "origin/main" the end of line the do_git_checkout method like this, (The same solution as #569)
do_git_checkout https://github.com/harfbuzz/harfbuzz.git harfbuzz_git "origin/main"

This will compile successfully on my PC (Ubuntu 20.04 with WSL2).

@marierose147
Copy link
Contributor Author

When compiling the 64-bit executable, some new errors were found.
log:

2021-06-09T11:02:57.6894103Z CC	libavcodec/libsvt_hevc.o
2021-06-09T11:02:57.7253192Z CC	libavcodec/libsvtav1.o
2021-06-09T11:02:57.7361122Z libavcodec/libsvt_hevc.c: In function 'eb_encode_frame':
2021-06-09T11:02:57.7363666Z libavcodec/libsvt_hevc.c:426:14: error: implicit declaration of function 'ff_alloc_packet2' [-Werror=implicit-function-declaration]
2021-06-09T11:02:57.7367709Z   426 |     av_ret = ff_alloc_packet2(avctx, pkt, header_ptr->nFilledLen, 0);
2021-06-09T11:02:57.7368452Z       |              ^~~~~~~~~~~~~~~~
2021-06-09T11:02:57.8119842Z cc1: some warnings being treated as errors
2021-06-09T11:02:57.8139236Z make: *** [ffbuild/common.mak:67: libavcodec/libsvt_hevc.o] Error 1
2021-06-09T11:02:57.8140649Z make: *** Waiting for unfinished jobs....
2021-06-09T11:02:57.8649256Z ##[error]Process completed with exit code 1.

@nschlia
Copy link

nschlia commented Jun 12, 2021

When compiling the 64-bit executable, some new errors were found.
log:
2021-06-09T11:02:57.7367709Z 426 | av_ret = ff_alloc_packet2(avctx, pkt, header_ptr->nFilledLen, 0);
2021-06-09T11:02:57.7368452Z | ^~~~~~~~~~~~~~~~
2021-06-09T11:02:57.8119842Z cc1: some warnings being treated as errors

Had the same problem, but it builds now, probably a faulty commit into ffmoeg's git repository.

@marierose147
Copy link
Contributor Author

Yes, it compiles now. Thanks!

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