Skip to content

1.9.0 aarch64 with gcc14 build fail #6454

Closed

Description

@Pro-pra

Problem Description

release 1.9.0 aarch64 with gcc14 build fail

Activity Log, Crash Log or any other details

D_FILE_OFFSET_BITS=64 -DHAS_STRERROR_R -I./libhb/ -I./contrib/include -c ../libhb/work.c -o libhb/work.o
  : In file included from ../libhb/comb_detect.c:142:
  : ../libhb/templates/comb_detect_template.c: In function �detect_gamma_combed_segment_8’:
  : ../libhb/templates/comb_detect_template.c:273:27: error: passing argument 1 of �vst1q_u32’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   273 |                 vst1q_u32(&mask32, mask_vec);
  :       |                           ^~~~~~~
  :       |                           |
  :       |                           uint32_t (*)[4] {aka unsigned int (*)[4]}
  : In file included from ../libhb/decomb.c:202:
  : ../libhb/templates/decomb_template.c: In function �blend_filter_line_8’:
  : ../libhb/templates/decomb_template.c:266:19: error: passing argument 1 of �vst1q_u16’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   266 |         vst1q_u16(&cr_table_vec, result_u16);
  :       |                   ^~~~~~~~~~~~~
  :       |                   |
  :       |                   uint16_t (*)[8] {aka short unsigned int (*)[8]}
  : In file included from ../libhb/comb_detect.c:35:
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22174:22: note: expected �uint32_t *’ {aka �unsigned int *’} but argument is of type �uint32_t (*)[4]’ {aka �unsigned int (*)[4]’}
  : 22174 | vst1q_u32 (uint32_t *__a, uint32x4_t __b)
  :       |            ~~~~~~~~~~^~~
  : In file included from ../libhb/templates/decomb_template.c:19:
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22167:22: note: expected �uint16_t *’ {aka �short unsigned int *’} but argument is of type �uint16_t (*)[8]’ {aka �short unsigned int (*)[8]’}
  : 22167 | vst1q_u16 (uint16_t *__a, uint16x8_t __b)
  :       |            ~~~~~~~~~~^~~
  : ../libhb/templates/decomb_template.c:246:15: warning: unused variable �filter_norm_vec’ [-Wunused-variable]
  :   246 |     int16x8_t filter_norm_vec = vdupq_n_s16(-filter->normalize);
  :       |               ^~~~~~~~~~~~~~~
  : In file included from ../libhb/comb_detect.c:146:
  : ../libhb/templates/comb_detect_template.c: In function �detect_gamma_combed_segment_16’:
  : ../libhb/templates/comb_detect_template.c:273:27: error: passing argument 1 of �vst1q_u32’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   273 |                 vst1q_u32(&mask32, mask_vec);
  :       |                           ^~~~~~~
  :       |                           |
  :       |                           uint32_t (*)[4] {aka unsigned int (*)[4]}
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22174:22: note: expected �uint32_t *’ {aka �unsigned int *’} but argument is of type �uint32_t (*)[4]’ {aka �unsigned int (*)[4]’}
  : 22174 | vst1q_u32 (uint32_t *__a, uint32x4_t __b)
  :       |            ~~~~~~~~~~^~~
  : ../libhb/templates/comb_detect_template.c: In function �detect_combed_segment_16’:
  : ../libhb/templates/comb_detect_template.c:553:35: error: passing argument 1 of �vst1q_u32’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   553 |                         vst1q_u32(&mask32, mask_vec);
  :       |                                   ^~~~~~~
  :       |                                   |
  :       |                                   uint32_t (*)[4] {aka unsigned int (*)[4]}
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22174:22: note: expected �uint32_t *’ {aka �unsigned int *’} but argument is of type �uint32_t (*)[4]’ {aka �unsigned int (*)[4]’}
  : 22174 | vst1q_u32 (uint32_t *__a, uint32x4_t __b)
  :       |            ~~~~~~~~~~^~~
  : ../libhb/templates/comb_detect_template.c:571:35: error: passing argument 1 of �vst1q_u32’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   571 |                         vst1q_u32(&mask32, mask_vec);
  :       |                                   ^~~~~~~
  :       |                                   |
  :       |                                   uint32_t (*)[4] {aka unsigned int (*)[4]}
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22174:22: note: expected �uint32_t *’ {aka �unsigned int *’} but argument is of type �uint32_t (*)[4]’ {aka �unsigned int (*)[4]’}
  : 22174 | vst1q_u32 (uint32_t *__a, uint32x4_t __b)
  :       |            ~~~~~~~~~~^~~
  : ../libhb/templates/comb_detect_template.c:588:35: error: passing argument 1 of �vst1q_u32’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   588 |                         vst1q_u32(&mask32, mask_vec);
  :       |                                   ^~~~~~~
  :       |                                   |
  :       |                                   uint32_t (*)[4] {aka unsigned int (*)[4]}
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22174:22: note: expected �uint32_t *’ {aka �unsigned int *’} but argument is of type �uint32_t (*)[4]’ {aka �unsigned int (*)[4]’}
  : 22174 | vst1q_u32 (uint32_t *__a, uint32x4_t __b)
  :       |            ~~~~~~~~~~^~~
  : In file included from ../libhb/decomb.c:206:
  : ../libhb/templates/decomb_template.c: In function �blend_filter_line_16’:
  : ../libhb/templates/decomb_template.c:184:19: error: passing argument 1 of �vst1q_u32’ from incompatible pointer type [-Wincompatible-pointer-types]
  :   184 |         vst1q_u32(&cr_table_vec, result_u32);
  :       |                   ^~~~~~~~~~~~~
  :       |                   |
  :       |                   uint32_t (*)[4] {aka unsigned int (*)[4]}
  : /usr/lib64/gcc/aarch64-rosa-linux-gnu/14.2.0/include/arm_neon.h:22174:22: note: expected �uint32_t *’ {aka �unsigned int *’} but argument is of type �uint32_t (*)[4]’ {aka �unsigned int (*)[4]’}
  : 22174 | vst1q_u32 (uint32_t *__a, uint32x4_t __b)
  :       |            ~~~~~~~~~~^~~
  : ../libhb/templates/decomb_template.c:164:15: warning: unused variable �filter_norm_vec’ [-Wunused-variable]
  :   164 |     int32x4_t filter_norm_vec = vdupq_n_s32(-filter->normalize);
  :       |               ^~~~~~~~~~~~~~~
  : gmake: *** [../libhb/module.rules:12: libhb/comb_detect.o] Error 1


### What Operating System are you running?

rosa13

### What version of HandBrake are you running?

1.9.0

### Where did you download HandBrake from?

github

Activity

  1. github-actions commented on Dec 2, 2024

    @github-actions

    Hello,

    Welcome to the HandBrake repository.

    Warning

    Please be cautious of any non-members suggesting that you download a "DLL" or any other files from 3rd party websites.
    These are likely malicious!
    Members of the HandBrake team can be identified by the "(Member)" label in the top right of any response from them.

    Thank You,
    The HandBrake Bot

  2. sr55 commented on Dec 2, 2024

    @sr55
    Contributor

    @dashsantosh-mcw this looks like it might be the ARM optimisations. Maybe the compiler is getting more strict?

  3. marillat commented on Dec 2, 2024

    @marillat

    The specific code for aarch64 has been introduced in handbrake 1.9.0

    I can also reproduce this issue under Debian unstable GCC 14.2.0

  4. Pro-pra commented on Dec 4, 2024

    @Pro-pra
    Author

    Thank You, patch help me.

    Now build fail on svt-av1 compile.

    /builddir/build/BUILD/HandBrake-1.9.0/build/contrib/svt-av1/SVT-AV1-v2.3.0/Source/Lib/ASM_SVE/neon_sve_bridge.h:47:12: internal compiler error: Segmentation fault
      :    47 |     return svget_neonq_s16(svtbl_s16(svset_neonq_s16(svundef_s16(), s), svset_neonq_u16(svundef_u16(), tbl)));
      :       |            ^
      : 0x1c8ad13 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, std::__va_list*, diagnostic_t)
      : 	???:0
      : 0x1c8ae3b internal_error(char const*, ...)
      : 	???:0
      : 0xd1384f crash_signal(int)
      : 	???:0
      : 0x906ab4 store_expr(tree_node*, rtx_def*, int, bool, bool)
      : 	???:0
      : 0x908053 expand_assignment(tree_node*, tree_node*, bool) [clone .part.0]
      : 	???:0
      : 0x7c672f expand_gimple_stmt(gimple*)
      : 	???:0
      : 0x7ccfd7 expand_gimple_basic_block(basic_block_def*, bool)
      : 	???:0
      : 0x7cf87f (anonymous namespace)::pass_expand::execute(function*)
      : 	???:0
      : Please submit a full bug report, with preprocessed source (by using -freport-bug).
    
  5. galad87 commented on Dec 4, 2024

    @galad87
    Contributor

    Looks like a compiler bug.

  6. Pro-pra commented on Dec 4, 2024

    @Pro-pra
    Author

    may be. This file and code added in SVT-AV1-v2.3.0, older version not have this file (neon_sve_bridge.h)

  7. Pro-pra commented on Dec 4, 2024

    @Pro-pra
    Author

    I see this option in svt-av1, may be it help ? not help

    option(ENABLE_NEON "Enables Neon optimizations on AArch64 targets." ON)

  8. Pro-pra commented on Dec 4, 2024

    @Pro-pra
    Author

    build with clang help me compile svt-av1 from system repo.

  9. galad87 commented on Dec 4, 2024

    @galad87
    Contributor

    If the compiler crashes it's a compiler bug. Either report it to GCC devs or use another compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions