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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

irssi 1.4.3 build issue #1435

Open
chenrui333 opened this issue Dec 19, 2022 · 6 comments
Open

irssi 1.4.3 build issue #1435

chenrui333 opened this issue Dec 19, 2022 · 6 comments
Labels
Milestone

Comments

@chenrui333
Copy link

馃憢 trying to build the latest release, but run into some build issue. The error log is as below:

build failure
FAILED: tests/fe-common/core/test-formats
clang  -o tests/fe-common/core/test-formats tests/fe-common/core/test-formats.p/test-formats.c.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-rpath,/opt/homebrew/Cellar/glib/2.74.3/lib -Wl,-rpath,/opt/homebrew/opt/gettext/lib -Wl,-rpath,/opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib -Wl,-rpath,/opt/homebrew/Cellar/libgcrypt/1.10.1/lib -Wl,-rpath,/opt/homebrew/Cellar/libotr/4.1.1/lib src/lib-config/libirssi_config.a src/core/libcore.a src/fe-common/core/libfe_common_core.a /opt/homebrew/Cellar/glib/2.74.3/lib/libglib-2.0.dylib /opt/homebrew/opt/gettext/lib/libintl.dylib /opt/homebrew/Cellar/glib/2.74.3/lib/libgmodule-2.0.dylib /opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib/libssl.dylib /opt/homebrew/Cellar/openssl@1.1/1.1.1s/lib/libcrypto.dylib -lutf8proc /opt/homebrew/Cellar/libgcrypt/1.10.1/lib/libgcrypt.dylib /opt/homebrew/Cellar/libotr/4.1.1/lib/libotr.dylib -lutf8proc -lutf8proc -lutf8proc
Undefined symbols for architecture arm64:
  "_current_theme", referenced from:
      _format_get_text_theme in libfe_common_core.a(formats.c.o)
      _format_get_text in libfe_common_core.a(formats.c.o)
      _strip_codes in libfe_common_core.a(formats.c.o)
      _format_send_as_gui_flags in libfe_common_core.a(formats.c.o)
      _sig_print_text in libfe_common_core.a(fe-windows.c.o)
      _printformat_module_dest_charargs in libfe_common_core.a(printtext.c.o)
      _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
      ...
  "_default_formats", referenced from:
      _format_find_tag in libfe_common_core.a(formats.c.o)
      _format_get_text_theme_args in libfe_common_core.a(formats.c.o)
      _printformat_module_dest_args in libfe_common_core.a(printtext.c.o)
      _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
ld: symbol(s) not found for architecture arm64

relates to Homebrew/homebrew-core#118477

@ailin-nemui
Copy link
Contributor

mesonbuild/meson#11165
#1397

:(

Try to build with ./configure and make instead

@chenrui333
Copy link
Author

Got some error as this

Undefined symbols for architecture arm64:
  "_default_formats", referenced from:
      _perl_signal_args_to_c in libperl_core_static.a(perl-signals.o)
      _sig_func in libperl_core_static.a(perl-signals.o)
  "_format_find_tag", referenced from:
      _perl_signal_args_to_c in libperl_core_static.a(perl-signals.o)
ld: symbol(s) not found for architecture arm64

@chenrui333
Copy link
Author

with meson 1.2.0, still the same issue

Undefined symbols for architecture arm64:
  "_current_theme", referenced from:
      _format_get_text_theme in libfe_common_core.a(formats.c.o)
      _format_get_text in libfe_common_core.a(formats.c.o)
      _strip_codes in libfe_common_core.a(formats.c.o)
      _format_send_as_gui_flags in libfe_common_core.a(formats.c.o)
      _sig_print_text in libfe_common_core.a(fe-windows.c.o)
      _printformat_module_dest_charargs in libfe_common_core.a(printtext.c.o)
      _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
      ...
  "_default_formats", referenced from:
      _format_find_tag in libfe_common_core.a(formats.c.o)
      _format_get_text_theme_args in libfe_common_core.a(formats.c.o)
      _printformat_module_dest_args in libfe_common_core.a(printtext.c.o)
      _printformat_module_gui_args in libfe_common_core.a(printtext.c.o)
ld: symbol(s) not found for architecture arm64

Side note, I can reproduce that issue with ./configure and make as well.

@ailin-nemui
Copy link
Contributor

ailin-nemui commented Jul 17, 2023

Side note, I can reproduce that issue with ./configure and make as well.

that would be strange as configure uses libtool which is supposed to have this bug fixed since 2002

please make sure you're not compiling with --with-bot (see #1374 )

otherwise provide complete logs

@emilengler
Copy link
Contributor

I run into the same issue.

@ailin-nemui
Copy link
Contributor

ailin-nemui commented Sep 4, 2023

can you try this:

meson-macos-ar.ini

# manual workaround for meson bug https://github.com/mesonbuild/meson/issues/11165
# usage: meson --native-file ./meson-macos-ar.ini

[binaries]
ar = ['/bin/sh', '-c', 'ar=${AR:-ar}; ranlib=${RANLIB:-ranlib -c -}; case "x$1" in xcsr*) $ar "$@" && $ranlib "$2" || exit $?; ;; *) exec $ar "$@"; ;; esac;', 'ar']

then

meson --native-file ./meson-macos-ar.ini ...

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

No branches or pull requests

3 participants