[FFmpeg-trac] #7048(build system:new): building 3.4.2 with gcc 7.3.0 with altivec support enabled fails on ppc (Gentoo Linux)

FFmpeg trac at avcodec.org
Wed Feb 28 02:54:59 EET 2018


#7048: building 3.4.2 with gcc 7.3.0 with altivec support enabled fails on ppc
(Gentoo Linux)
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  ernsteiswuerfel                    |                 Priority:  normal
               Status:  new          |                  Version:  3.4
            Component:  build        |               Blocked By:
  system                             |  Reproduced by developer:  0
             Keywords:  gcc altivec  |
  ppc                                |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 '''Building ffmpeg 3.4.2 with gcc 7.3.0 + altivec .... FAILS TO BUILD'''
 Building ffmpeg 3.4.2 with gcc 7.3.0 - altivec .... BUILDS OK
 Building ffmpeg 3.4.2 with gcc 6.4.0 + altivec .... BUILDS OK
 Building ffmpeg 3.4.2 with gcc 6.4.0 - altivec .... BUILDS OK

 I tried building ffmpeg 3.4.2 on my PowerMac G5 with gcc 7.3.0 and altivec
 support enabled. The build stops giving me this error:

 powerpc-unknown-linux-gnu-gcc -I. -Isrc/ -D_ISOC99_SOURCE
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112
 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -Os -pipe
 -mcpu=G5 -mtune=G5   -mcpu=970 -std=c11 -fomit-frame-pointer -fPIC
 -maltivec -mabi=altivec -pthread  -I/usr/include/freetype2
 -I/usr/include/opus -I/usr/include/opus -D_REENTRANT -pthread
 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0
 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0
 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16
 -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-
 arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-
 prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-
 parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-
 unused-const-variable -Wno-bool-operation -Os -pipe -mcpu=G5 -mtune=G5
 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-
 security -Werror=implicit-function-declaration -Werror=missing-prototypes
 -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-
 maybe-uninitialized  -MMD -MF libavcodec/ppc/hevcdsp.d -MT
 libavcodec/ppc/hevcdsp.o -c -o libavcodec/ppc/hevcdsp.o
 src/libavcodec/ppc/hevcdsp.c
 In file included from src/libavutil/ppc/util_altivec.h:32:0,
                  from src/libavcodec/ppc/hevcdsp.c:27:
 src/libavcodec/ppc/hevcdsp.c: In function ‘scale’:
 src/libavcodec/ppc/hevcdsp.c:73:23: error: argument 1 must be a 5-bit
 signed literal
      vec_u32 v_shift = vec_splat_u32(shift);
                        ^
 src/libavcodec/ppc/hevcdsp.c: In function ‘transform4x4.isra.0’:
 src/libavcodec/ppc/hevcdsp.c:60:9: error: argument 1 must be a 5-bit
 signed literal
      add = vec_sl(vec_splat_s32(1), vec_splat_u32(shift - 1));
      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 make: [/var/tmp/portage/media-
 video/ffmpeg-3.4.2/work/ffmpeg-3.4.2/ffbuild/common.mak:60:
 libavcodec/ppc/hevcdsp.o] Error 1

 '''Building with altivec support disabled succeeds (gcc 7.3.0).'''


 How to reproduce:
 {{{
 Build ffmpeg 3.4.2 on ppc hardware with gcc 7.3.0 and altivec support
 enabled.
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7048>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list