openwrt / openwrt/packages

vala: does not compile

Open
#21,144 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: No maintainer listed in Makefile
Environment: x86_64 master
Description:

Building the Vala package fails for me with the following errors. I am building on Fedora 38, and this is a host package, so I wonder if the problem stems from the version of dependencies I have installed on my computer.

/usr/bin/env bash ../libtool  --tag=CC   --mode=link gcc  -O2 -I/home/mike/Download/openwrt-beholder/staging_dir/host/include -I/home/mike/Download/openwrt-beholder/staging_dir/hostpkg/include -I/home/mike/Download/openwrt-beholder/staging_dir/target-x86_64_musl/host/include  -L/home/mike/Download/openwrt-beholder/staging_dir/host/lib -L/home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib -L/home/mike/Download/openwrt-beholder/staging_dir/target-x86_64_musl/host/lib -o valac valacompiler.o    -L/home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib -lgobject-2.0 -lpcre2-8 -lffi -lglib-2.0 -pthread -lm ../vala/libvala-0.56.la ../ccode/libvalaccode.la ../codegen/libvalaccodegen.la  
libtool: link: gcc -O2 -I/home/mike/Download/openwrt-beholder/staging_dir/host/include -I/home/mike/Download/openwrt-beholder/staging_dir/hostpkg/include -I/home/mike/Download/openwrt-beholder/staging_dir/target-x86_64_musl/host/include -o valac valacompiler.o  -L/home/mike/Download/openwrt-beholder/staging_dir/host/lib -L/home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib -L/home/mike/Download/openwrt-beholder/staging_dir/target-x86_64_musl/host/lib ../vala/.libs/libvala-0.56.a ../ccode/.libs/libvalaccode.a ../codegen/.libs/libvalaccodegen.a /home/mike/Download/openwrt-beholder/build_dir/hostpkg/vala-0.56.3/vala/.libs/libvala-0.56.a -lgmodule-2.0 -lgobject-2.0 -lpcre2-8 /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libffi.a -lglib-2.0 -lm -pthread
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `enable_jit_with_match_options':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:906: undefined reference to `pcre2_jit_compile_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `get_matched_substring_number':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1463: undefined reference to `pcre2_substring_nametable_scan_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `recalc_match_offsets':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:852: undefined reference to `pcre2_get_ovector_count_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:862: undefined reference to `pcre2_get_ovector_pointer_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:852: undefined reference to `pcre2_get_ovector_count_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:852: undefined reference to `pcre2_get_ovector_count_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_match_info_next':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1088: undefined reference to `pcre2_match_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1078: undefined reference to `pcre2_jit_match_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1112: undefined reference to `pcre2_match_data_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1113: undefined reference to `pcre2_match_data_create_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `regex_compile':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1760: undefined reference to `pcre2_compile_context_create_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1763: undefined reference to `pcre2_set_newline_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1773: undefined reference to `pcre2_set_bsr_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1789: undefined reference to `pcre2_compile_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1795: undefined reference to `pcre2_compile_context_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1778: undefined reference to `pcre2_compile_context_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `match_info_new':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:808: undefined reference to `pcre2_pattern_info_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:811: undefined reference to `pcre2_match_context_create_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:827: undefined reference to `pcre2_match_data_create_from_pattern_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_unref':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1642: undefined reference to `pcre2_code_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_match_info_unref':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1006: undefined reference to `pcre2_match_context_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1008: undefined reference to `pcre2_match_data_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_new':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1694: undefined reference to `pcre2_config_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `get_pcre2_inline_compile_options':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1836: undefined reference to `pcre2_pattern_info_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1843: undefined reference to `pcre2_pattern_info_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_get_max_backref':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1887: undefined reference to `pcre2_pattern_info_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_get_capture_count':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1907: undefined reference to `pcre2_pattern_info_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_get_has_cr_or_lf':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1927: undefined reference to `pcre2_pattern_info_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o):/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1949: more undefined references to `pcre2_pattern_info_8' follow
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_match_all_full':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:2376: undefined reference to `pcre2_dfa_match_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:2399: undefined reference to `pcre2_match_data_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:2400: undefined reference to `pcre2_match_data_create_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:2416: undefined reference to `pcre2_code_free_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `g_regex_get_string_number':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:2454: undefined reference to `pcre2_substring_number_from_name_8'
/usr/bin/ld: /home/mike/Download/openwrt-beholder/staging_dir/hostpkg/lib/libglib-2.0.a(gregex.c.o): in function `get_matched_substring_number':
/home/mike/Download/openwrt-beholder/build_dir/hostpkg/glib-2.74.0/openwrt-build/../glib/gregex.c:1459: undefined reference to `pcre2_substring_number_from_name_8'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the package Makefile and the host-package link command shown in the report; inspect how the GLib and PCRE2 libraries are supplied. Done means the Vala package builds successfully without the reported undefined references on the host configuration.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.