LINUX.ORG.RU

Gentoo, arm, не собирается ffmpeg

 , ,


0

1
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
armv7a-unknown-linux-gnueabihf-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 -O2 -pipe   -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -pthread -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 -O2 -pipe -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 libavfilter/vf_crop.d -MT libavfilter/vf_crop.o -c -o libavfilter/vf_crop.o src/libavfilter/vf_crop.c
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/avassert.h:31,
                 from src/libavfilter/vf_cover_rect.c:25:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
armv7a-unknown-linux-gnueabihf-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 -O2 -pipe   -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -pthread -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 -O2 -pipe -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 libavfilter/vf_cropdetect.d -MT libavfilter/vf_cropdetect.o -c -o libavfilter/vf_cropdetect.o src/libavfilter/vf_cropdetect.c
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavfilter/avfilter.h:41,
                 from src/libavfilter/vf_crop.c:28:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
armv7a-unknown-linux-gnueabihf-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 -O2 -pipe   -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -pthread -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 -O2 -pipe -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 libavfilter/vf_curves.d -MT libavfilter/vf_curves.o -c -o libavfilter/vf_curves.o src/libavfilter/vf_curves.c
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/imgutils.h:30,
                 from src/libavfilter/vf_cropdetect.c:26:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/opt.h:31,
                 from src/libavfilter/vf_curves.c:21:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
armv7a-unknown-linux-gnueabihf-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 -O2 -pipe   -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -pthread -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 -O2 -pipe -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 libavfilter/vf_datascope.d -MT libavfilter/vf_datascope.o -c -o libavfilter/vf_datascope.o src/libavfilter/vf_datascope.c
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/avassert.h:31,
                 from src/libavfilter/vf_datascope.c:21:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
In file included from src/libavutil/bswap.h:38,
                 from src/libavutil/intreadwrite.h:25,
                 from src/libavfilter/vf_curves.c:25:
src/libavfilter/vf_curves.c: In function 'parse_psfile':
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
src/libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
armv7a-unknown-linux-gnueabihf-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 -O2 -pipe   -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -pthread -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 -O2 -pipe -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 libavfilter/vf_dctdnoiz.d -MT libavfilter/vf_dctdnoiz.o -c -o libavfilter/vf_dctdnoiz.o src/libavfilter/vf_dctdnoiz.c
armv7a-unknown-linux-gnueabihf-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 -O2 -pipe   -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -pthread -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 -O2 -pipe -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 libavfilter/vf_deband.d -MT libavfilter/vf_deband.o -c -o libavfilter/vf_deband.o src/libavfilter/vf_deband.c
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/avassert.h:31,
                 from src/libavfilter/vf_dctdnoiz.c:31:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:349: Error: ARM register expected -- `rev16 ,'
{standard input}:377: Error: ARM register expected -- `rev16 ,'
{standard input}:396: Error: ARM register expected -- `rev16 ,'
{standard input}:406: Error: ARM register expected -- `rev16 ,'
make: *** [/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/work/ffmpeg-3.4.6/ffbuild/common.mak:60: libavfilter/vf_curves.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/libavutil/common.h:464,
                 from src/libavutil/avutil.h:296,
                 from src/libavutil/opt.h:31,
                 from src/libavfilter/vf_deband.c:24:
src/libavutil/mem.h:341:1: warning: 'alloc_size' attribute ignored on a function returning 'int' [-Wattributes]
  341 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
 * ERROR: media-video/ffmpeg-3.4.6-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-3.4.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-3.4.6-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/work/ffmpeg-3.4.6-.arm'
 * S: '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/work/ffmpeg-3.4.6'

 * Messages for package media-video/ffmpeg-3.4.6-r1:

 * ERROR: media-video/ffmpeg-3.4.6-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-3.4.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-3.4.6-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/work/ffmpeg-3.4.6-.arm'
 * S: '/var/tmp/portage/media-video/ffmpeg-3.4.6-r1/work/ffmpeg-3.4.6'

Что делать не знаю...

★★★★★

Компилируешь armv7, а код, похоже, для armv8. Что делать тоже не знаю. Посмотри как оно обычно собиарется.

turtle_bazon ★★★★★ ()

Что делать не знаю...

собрать руками без всяких мерге-эмерге.. а там уже соображать как это прилепить. Наверно тебе нужно указать явно:

--arch=ARCH select architecture [$arch] --cpu=CPU select the minimum required CPU

да и просто configure почитать внимательно, там всё просто как в телеге.

Gramozeka ★★ ()
Ответ на: комментарий от Gramozeka

А из тарбола как установить? а то я ни разу так не делал

burato ★★★★★ ()
Последнее исправление: burato (всего исправлений: 1)
Ответ на: комментарий от Gramozeka

хотя пробнул уже...

CC      libavfilter/vf_curves.o
CC      libavfilter/vf_datascope.o
CC      libavfilter/vf_dctdnoiz.o
CC      libavfilter/vf_deband.o
In file included from ./libavutil/bswap.h:38,
                 from ./libavutil/intreadwrite.h:25,
                 from libavfilter/vf_curves.c:25:
libavfilter/vf_curves.c: In function 'parse_psfile':
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
   31 |     __asm__("rev16 %w0, %w0" : "+r"(x));
      |     ^~~~~~~
./libavutil/aarch64/bswap.h:31:5: error: invalid 'asm': invalid operand for code 'w'
CC      libavfilter/vf_deblock.o
make: *** [ffbuild/common.mak:59: libavfilter/vf_curves.o] Error 1
make: *** Waiting for unfinished jobs....

burato ★★★★★ ()
Ответ на: комментарий от burato

взаимодействуя с emerge я не могу читать configure

Чего это? Идёшь из под рута в var/tmp/portage/категория/пакет/temp и смотришь там файл build.log - он там лежит до конца установки

Или выполняешь ebuild /usr/portage/категория/пакет/пакет-версия.ebuild clean configure

Лезешь снова в тот каталог в var/.. и читаешь build.log

grem ★★★★★ ()
Ответ на: комментарий от burato

В дебиане есть для armhf. Так что можно качнуть описание пакета и посмотреть накладывались ли какие патчи. А может, просто дропнули поддержку в более новой версии.

turtle_bazon ★★★★★ ()
Последнее исправление: turtle_bazon (всего исправлений: 1)

Но, судя по версии, это, наоборот, в новой добавили. Но я точно не знаю, знаю, что 4.1.4 версия в дебиане есть и собранная.

turtle_bazon ★★★★★ ()

И вообще, у тебя давно куча проблем с этим оранжем и на генте. Может, не надо упорствовать и дебиан поставить?

turtle_bazon ★★★★★ ()

Что делать не знаю...

Для начала хотя бы покажи USE и CFLAGS с которыми собираешь.

imul ★★★★★ ()
Ответ на: комментарий от burato

взаимодействуя с emerge я не могу читать configure

man ebuild

Pinkbyte ★★★★★ ()

Всё, собрал из исходников с сайта ffmpeg указав prefix=armv7

burato ★★★★★ ()
Ответ на: комментарий от burato
cat /usr/portage/profiles/arch/arm/armv7a/make.defaults
cat /usr/portage/profiles/arch/arm/make.defaults

может?

why ()
Последнее исправление: why (всего исправлений: 1)
Ответ на: комментарий от why

Да, я тоже посмотрел, в дебиане всё есть. Странно было бы, чтобы в генте не было бы.

turtle_bazon ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.