kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.47k stars 979 forks source link

Kitty 0.33.0 doesn't build on armv7hl - fast_data_types.so: undefined symbol: xor_data64_256 #7225

Closed kekePower closed 7 months ago

kekePower commented 7 months ago

Describe the bug gcc -MMD -DDEBUG -DHAS_COPY_FILE_RANGE -D_GLFW_WAYLAND -D_GLFW_BUILD_DLL -DHAS_MEMFD_CREATE -Wextra -Wfloat-conversion -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11 -pedantic-errors -Werror -g3 -Og -fwrapv -fstack-protector-strong -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -fno-plt -fPIC -DKITTY_DEBUG_BUILD -fPIC -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -c glfw/osmesa_context.c -o build/glfw-wayland-glfw-osmesa_context.c.o kitty/simd-string.c: In function 'init_simd': kitty/simd-string.c:198:35: error: implicit declaration of function 'builtin_cpu_supports'; did you mean 'builtin_isupper'? [-Wimplicit-function-declaration] 198 | #define do_check() { has_sse4_2 = __builtin_cpu_supports("sse4.2") != 0; has_avx2 = __builtin_cpu_supports("avx2") != 0; } | ^~~~~~ kitty/simd-string.c:221:5: note: in expansion of macro 'do_check' 221 | do_check(); | ^~~~

To Reproduce Full build log attached or can be seen here: https://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20240314063814.kekepower.duvel.1016841/kitty-0.33.0-1.mga10/build.armv7hl.0.20240314063908.log

Environment details Mageia Cauldron (10)

Additional context Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

kekePower commented 7 months ago

Duplicate of issue 7219

kekePower commented 7 months ago

Have to reopen this one due to this.

gcc build/kitty-launcher-main.o -ldl -lm -L/usr/lib -lpython3.12 -Xlinker -export-dynamic -o /home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/kitty
Updating Go generated files...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/../lib/kitty/__main__.py", line 7, in <module>
    main()
  File "/home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/../lib/kitty/kitty/entry_points.py", line 192, in main
    namespaced(['+', first_arg[1:]] + sys.argv[2:])
  File "/home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/../lib/kitty/kitty/entry_points.py", line 146, in namespaced
    func(args[1:])
  File "/home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/../lib/kitty/kitty/entry_points.py", line 73, in launch
    runpy.run_path(exe, run_name='__main__')
  File "<frozen runpy>", line 286, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/home/iurt/rpmbuild/BUILD/kitty-0.33.0/gen/go_code.py", line 33, in <module>
    from kittens.tui.operations import Mode
  File "/home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/../lib/kitty/kittens/tui/operations.py", line 11, in <module>
    from kitty.fast_data_types import Color
ImportError: /home/iurt/rpmbuild/BUILD/kitty-0.33.0/mageia-arm/bin/../lib/kitty/kitty/fast_data_types.so: undefined symbol: xor_data64_256