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

Can't build on Manjaro #9

Closed
andy5995 opened this issue Aug 10, 2022 · 5 comments
Closed

Can't build on Manjaro #9

andy5995 opened this issue Aug 10, 2022 · 5 comments

Comments

@andy5995
Copy link
Contributor

andy5995 commented Aug 10, 2022

For some strange reason, the build now fails on Manjaro, where it was working before

https://aur.archlinux.org/packages/vfu

...
ar: creating libvstring.a
a - .OBJ.vstring.a/vstring.o
a - .OBJ.vstring.a/vstrlib.o
ranlib libvstring.a
/usr/bin/ld: cannot find -lpcre2: No such file or directory
gcc  -DHAVE_CONFIG_H -fPIC -I. -O2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64   -c pcre2_error.c        -o .OBJ.libpcre2.a/pcre2_error.o
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:124: test] Error 1
make[1]: *** Waiting for unfinished jobs....

...
xt.o .OBJ.libpcre2.a/pcre2_convert.o .OBJ.libpcre2.a/pcre2_dfa_match.o .OBJ.libpcre2.a/pcre2_error.o .OBJ.libpcre2.a/pcre2_extuni.o .OBJ.libpcre2.a/pcre2_find_bracket.o .OBJ.libpcre2.a/pcre2_jit_compile.o .OBJ.libpcre2.a/pcre2_maketables.o .OBJ.libpcre2.a/pcre2_match.o .OBJ.libpcre2.a/pcre2_match_data.o .OBJ.libpcre2.a/pcre2_newline.o .OBJ.libpcre2.a/pcre2_ord2utf.o .OBJ.libpcre2.a/pcre2_pattern_info.o .OBJ.libpcre2.a/pcre2_script_run.o .OBJ.libpcre2.a/pcre2_serialize.o .OBJ.libpcre2.a/pcre2_string_utils.o .OBJ.libpcre2.a/pcre2_study.o .OBJ.libpcre2.a/pcre2_substitute.o .OBJ.libpcre2.a/pcre2_substring.o .OBJ.libpcre2.a/pcre2_tables.o .OBJ.libpcre2.a/pcre2_ucd.o .OBJ.libpcre2.a/pcre2_valid_utf.o .OBJ.libpcre2.a/pcre2_xclass.o 
ar: creating libpcre2.a
a - .OBJ.libpcre2.a/pcre2_auto_possess.o
a - .OBJ.libpcre2.a/pcre2_chartables.o
a - .OBJ.libpcre2.a/pcre2_compile.o
a - .OBJ.libpcre2.a/pcre2_config.o
a - .OBJ.libpcre2.a/pcre2_context.o
a - .OBJ.libpcre2.a/pcre2_convert.o
a - .OBJ.libpcre2.a/pcre2_dfa_match.o
a - .OBJ.libpcre2.a/pcre2_error.o
a - .OBJ.libpcre2.a/pcre2_extuni.o
a - .OBJ.libpcre2.a/pcre2_find_bracket.o
a - .OBJ.libpcre2.a/pcre2_jit_compile.o
a - .OBJ.libpcre2.a/pcre2_maketables.o
a - .OBJ.libpcre2.a/pcre2_match.o
a - .OBJ.libpcre2.a/pcre2_match_data.o
a - .OBJ.libpcre2.a/pcre2_newline.o
a - .OBJ.libpcre2.a/pcre2_ord2utf.o
a - .OBJ.libpcre2.a/pcre2_pattern_info.o
a - .OBJ.libpcre2.a/pcre2_script_run.o
a - .OBJ.libpcre2.a/pcre2_serialize.o
a - .OBJ.libpcre2.a/pcre2_string_utils.o
a - .OBJ.libpcre2.a/pcre2_study.o
a - .OBJ.libpcre2.a/pcre2_substitute.o
a - .OBJ.libpcre2.a/pcre2_substring.o
a - .OBJ.libpcre2.a/pcre2_tables.o
a - .OBJ.libpcre2.a/pcre2_ucd.o
a - .OBJ.libpcre2.a/pcre2_valid_utf.o
a - .OBJ.libpcre2.a/pcre2_xclass.o
ranlib libpcre2.a
make[2]: Leaving directory '/home/andy/src/AUR/vfu/src/vfu-4.23/vstring/pcre2'
make[1]: Leaving directory '/home/andy/src/AUR/vfu/src/vfu-4.23/vstring'
make: *** [makefile:40: modules] Error 2
@andy5995
Copy link
Contributor Author

I've narrowed the problem down a little. The error occurs when make runs jobs in parallel.

@andy5995
Copy link
Contributor Author

Here's what I did to fix it on Arch/Manjaro

https://aur.archlinux.org/cgit/aur.git/commit/?h=vfu&id=b80d8b15531f6c5af467e8f944b07b3664f4f0cf

(hint: I mostly replaced -lpcre2 with $(shell pcre2-config --libs-posix))

@cade-vs
Copy link
Owner

cade-vs commented Feb 6, 2023

hi!

there re entirely new Makefiles for all submodules, libraries and VFU.
could you, please, try to pull and 'make' again to check if the new makefiles resolve the issue?

@andy5995
Copy link
Contributor Author

I download the 5.02 archive and ran "build" and it completed successfully.

@andy5995
Copy link
Contributor Author

Updated on the AUR for 5.02 https://aur.archlinux.org/packages/vfu

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

2 participants