Erro Gentoo ao compilar libomxil [RESOLVIDO]

1. Erro Gentoo ao compilar libomxil [RESOLVIDO]

Ricardo Fabiano Silva
madrugada

(usa Slackware)

Enviado em 13/06/2018 - 19:44h

Olá a todos!

Meu PC é um Desktop com AMD APU A-10 7700K
Driver R7.(radeon ou amdgpu)
O driver amdgpu trabalho melhor com libomxil instalado e mesa compilado com "omx" ativado.

Ao tentar instalar com:
emerge --ask libomxil-bellagio

Eu recebo o erro:
/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3/src/omxregister.c:351:3: error: ‘actual’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
free(actual);
^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:699: omxregister_bellagio-omxregister.o] Error 1
make[3]: ** Esperando que outros processos terminem.
make[3]: Leaving directory '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64/src'
make[2]: *** [Makefile:756: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64/src'
make[1]: *** [Makefile:491: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64'
make: *** [Makefile:377: all] Error 2
* ERROR: media-libs/libomxil-bellagio-0.9.3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-libs/libomxil-bellagio-0.9.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-libs/libomxil-bellagio-0.9.3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/temp/environment'.
* Working directory: '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64'
* S: '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3'

>>> Failed to emerge media-libs/libomxil-bellagio-0.9.3, Log file:

>>> '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/temp/build.log'

* Messages for package media-libs/libomxil-bellagio-0.9.3:

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


No Slack eu compilo via SlackBuild com:
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--infodir=/usr/info \
--mandir=/usr/man \
--docdir=/usr/doc/${NAME}-${VERSION} \
--disable-silent-rules \
--disable-dependency-tracking \
--disable-static


No Gentoo o padrão é:
darkstar / # emerge -pqv =media-libs/libomxil-bellagio-0.9.3::gentoo[ebuild  N    ] media-libs/libomxil-bellagio-0.9.3  USE="audioeffects clocksrc videoscheduler -debug -doc -static-libs" ABI_X86="(64) -32 (-x32)" 

* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.



  


2. MELHOR RESPOSTA

Matheus
pylm

(usa Gentoo)

Enviado em 14/06/2018 - 23:27h

Parece algo com a versão do GCC, tá usando qual?
Tentei compilar aqui com o GCC 6.4.0 (atual estável) e foi sem problemas, mas tentei também com o clang e falhou.

Pra saber e setar o gcc em uso use o gcc-config

Também tomarei a liberdade de compartilhar um binário feito pelo portage:

https://drive.google.com/file/d/1raYyuuoUEItAHhq6JCT__MPsYIjnnmVJ/view?usp=sharing

Pra instalar ele:


# mkdir -p /usr/portage/packages/media-libs/
# cp libomxil-bellagio-0.9.3.tbz2 /usr/portage/packages/media-libs/
# emerge -avk libomxil-bellagio


Compilei ele com -march=x86-64 então deve rodar sem maiores problemas aí.

3. Re: Erro Gentoo ao compilar libomxil [RESOLVIDO]

Ricardo Fabiano Silva
madrugada

(usa Slackware)

Enviado em 13/06/2018 - 19:45h

Observação: não é um flame. Manteremos este tópico sem ira e sem ofensas.


4. Re: Erro Gentoo ao compilar libomxil [RESOLVIDO]

Ricardo Fabiano Silva
madrugada

(usa Slackware)

Enviado em 13/06/2018 - 19:49h

Final do arquivo /var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/temp/build.log:
/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3/src/omxregister.c:351:3: error: ‘actual’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
free(actual);
^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:699: omxregister_bellagio-omxregister.o] Error 1
make[3]: ** Esperando que outros processos terminem.
make[3]: Leaving directory '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64/src'
make[2]: *** [Makefile:756: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64/src'
make[1]: *** [Makefile:491: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64'
make: *** [Makefile:377: all] Error 2
* ERROR: media-libs/libomxil-bellagio-0.9.3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-libs/libomxil-bellagio-0.9.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-libs/libomxil-bellagio-0.9.3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/temp/environment'.
* Working directory: '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3-abi_x86_64.amd64'
* S: '/var/tmp/portage/media-libs/libomxil-bellagio-0.9.3/work/libomxil-bellagio-0.9.3'



5. Re: Erro Gentoo ao compilar libomxil [RESOLVIDO]

Ricardo Fabiano Silva
madrugada

(usa Slackware)

Enviado em 14/06/2018 - 18:35h

UP!


6. Re: Erro Gentoo ao compilar libomxil [RESOLVIDO]

Ricardo Fabiano Silva
madrugada

(usa Slackware)

Enviado em 15/06/2018 - 07:25h

Também estou com o Gentoo estável e GCC 6.4.0.

Também tentei com CC=clang CXX=clang++, mas teve o mesmo erro.


emerge -avk libomxil-bellagio
Com o comando que me passou, o portage ignora o pacote e tenta compilar de novo, caindo no mesmo erro.


Alterei o comando para usar o caminho absoluto do pacote e instalou com sucesso.
emerge -avk /usr/portage/packages/media-libs/libomxil-bellagio-0.9.3.tbz2


Estava estudando sobre o layman e overlays para ver a possibilidade e editar o ebuild.

Muito obrigado pela resposta e pelo pacote. Foi de grande ajuda.

Nesse momento já estou compilando o pacote mesa com suporte a openmax.

Editado:
Mesa compilado com sucesso.






Patrocínio

Site hospedado pelo provedor HostGator.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Viva o Android

Tópicos

Top 10 do mês

Scripts