* [Buildroot] ffmpeg issue with MIPS @ 2018-01-03 21:43 Johannes Schmitz 2018-01-03 21:50 ` Thomas Petazzoni 0 siblings, 1 reply; 5+ messages in thread From: Johannes Schmitz @ 2018-01-03 21:43 UTC (permalink / raw) To: buildroot Short summary of a MIPS (ci20) related bug: In "package/ffmpeg/ffmpeg.mk" the decision is made to build ffmpeg with or without mipsfpu support: ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y) ifeq ($(BR2_MIPS_SOFT_FLOAT),y) FFMPEG_CONF_OPTS += --disable-mipsfpu else FFMPEG_CONF_OPTS += --enable-mipsfpu endif endif # MIPS This apparently goes wrong in a ci20 build. Result: squeezelite can not be executed. See: https://pastebin.com/nsseiAdV Error is at the end trying file=/usr/lib/libavcodec.so.57 -> needs FR1 mode Regards Johannes -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180103/9ed8947d/attachment.html> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] ffmpeg issue with MIPS 2018-01-03 21:43 [Buildroot] ffmpeg issue with MIPS Johannes Schmitz @ 2018-01-03 21:50 ` Thomas Petazzoni [not found] ` <CAMbDF3+pfHWMz1iYOxY-rnBJkBRhxw534dGacPbKMLF_+OQTHg@mail.gmail.com> 0 siblings, 1 reply; 5+ messages in thread From: Thomas Petazzoni @ 2018-01-03 21:50 UTC (permalink / raw) To: buildroot Hello, On Wed, 3 Jan 2018 22:43:40 +0100, Johannes Schmitz wrote: > Short summary of a MIPS (ci20) related bug: > > In > "package/ffmpeg/ffmpeg.mk" > the decision is made to build ffmpeg with or without mipsfpu support: > > ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y) > ifeq ($(BR2_MIPS_SOFT_FLOAT),y) > FFMPEG_CONF_OPTS += --disable-mipsfpu > else > FFMPEG_CONF_OPTS += --enable-mipsfpu > endif > endif # MIPS > > This apparently goes wrong in a ci20 build. > Result: > squeezelite can not be executed. > See: > https://pastebin.com/nsseiAdV > Error is at the end > trying file=/usr/lib/libavcodec.so.57 -> needs FR1 mode I guess this has been discussed on IRC, but the discussion has been very long, and I didn't follow all of it. So here are some basic questions: - What is your Buildroot configuration ? - What is the exact MIPS processor you're running this on ? - Does it work when --disable-mipsfpu is passed, or when --enable-mipsfpu is passed ? Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAMbDF3+pfHWMz1iYOxY-rnBJkBRhxw534dGacPbKMLF_+OQTHg@mail.gmail.com>]
* [Buildroot] ffmpeg issue with MIPS [not found] ` <CAMbDF3+pfHWMz1iYOxY-rnBJkBRhxw534dGacPbKMLF_+OQTHg@mail.gmail.com> @ 2018-01-03 22:05 ` Thomas Petazzoni 2018-01-03 22:13 ` Johannes Schmitz 0 siblings, 1 reply; 5+ messages in thread From: Thomas Petazzoni @ 2018-01-03 22:05 UTC (permalink / raw) To: buildroot Hello, Please keep the Buildroot mailing list in Cc. Thanks! On Wed, 3 Jan 2018 22:56:33 +0100, Johannes Schmitz wrote: > > - What is your Buildroot configuration ? > > > > - What is the exact MIPS processor you're running this on ? > > > > - Does it work when --disable-mipsfpu is passed, or when > > --enable-mipsfpu is passed ? > > > > - glibc toolchain I need the exact Buildroot .config file, to see which specific CPU you have chosen, and other configuration knobs. > - It does work when --disable-mipsfpu is forced OK. > - See hardware information here: https://elinux.org/CI20_Hardware > > - additional FPU related information we found during the discussion: > https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking#10.5.2._Setting_the_FPU_mode Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] ffmpeg issue with MIPS 2018-01-03 22:05 ` Thomas Petazzoni @ 2018-01-03 22:13 ` Johannes Schmitz 2018-01-03 23:32 ` Johannes Schmitz 0 siblings, 1 reply; 5+ messages in thread From: Johannes Schmitz @ 2018-01-03 22:13 UTC (permalink / raw) To: buildroot 2018-01-03 23:05 GMT+01:00 Thomas Petazzoni < thomas.petazzoni@free-electrons.com>: > Hello, > > Please keep the Buildroot mailing list in Cc. Thanks! > > On Wed, 3 Jan 2018 22:56:33 +0100, Johannes Schmitz wrote: > > > > - What is your Buildroot configuration ? > > > > > > - What is the exact MIPS processor you're running this on ? > > > > > > - Does it work when --disable-mipsfpu is passed, or when > > > --enable-mipsfpu is passed ? > > > > > > > - glibc toolchain > > I need the exact Buildroot .config file, to see which specific CPU you > have chosen, and other configuration knobs. > Here is the .config https://pastebin.com/kHK8H9hh > > - It does work when --disable-mipsfpu is forced > > OK. > > > - See hardware information here: https://elinux.org/CI20_Hardware > > > > - additional FPU related information we found during the discussion: > > https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_ > FR1_Interlinking#10.5.2._Setting_the_FPU_mode > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180103/2ae8c16c/attachment.html> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] ffmpeg issue with MIPS 2018-01-03 22:13 ` Johannes Schmitz @ 2018-01-03 23:32 ` Johannes Schmitz 0 siblings, 0 replies; 5+ messages in thread From: Johannes Schmitz @ 2018-01-03 23:32 UTC (permalink / raw) To: buildroot Guys, please also see the related GCC option -mabi= https://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html "GCC supports a variant of the o32 ABI in which floating-point registers are 64 rather than 32 bits wide. You can select this combination with -mabi=32 -mfp64. This ABI relies on the mthc1 and mfhc1 instructions and is therefore only supported for MIPS32R2, MIPS32R3 and MIPS32R5 processors." Ingenic JZ4780 is a MIPS32R2 architecture https://elinux.org/Ingenic_JZ4780 Am 03.01.2018 23:13 schrieb "Johannes Schmitz" <johannes.schmitz1@gmail.com >: > > 2018-01-03 23:05 GMT+01:00 Thomas Petazzoni <thomas.petazzoni@free- > electrons.com>: > >> Hello, >> >> Please keep the Buildroot mailing list in Cc. Thanks! >> >> On Wed, 3 Jan 2018 22:56:33 +0100, Johannes Schmitz wrote: >> >> > > - What is your Buildroot configuration ? >> > > >> > > - What is the exact MIPS processor you're running this on ? >> > > >> > > - Does it work when --disable-mipsfpu is passed, or when >> > > --enable-mipsfpu is passed ? >> > > >> > >> > - glibc toolchain >> >> I need the exact Buildroot .config file, to see which specific CPU you >> have chosen, and other configuration knobs. >> > > Here is the .config > https://pastebin.com/kHK8H9hh > > >> > - It does work when --disable-mipsfpu is forced >> >> OK. >> >> > - See hardware information here: https://elinux.org/CI20_Hardware >> > >> > - additional FPU related information we found during the discussion: >> > https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_ >> Interlinking#10.5.2._Setting_the_FPU_mode >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180104/1a85483d/attachment.html> ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-01-03 23:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03 21:43 [Buildroot] ffmpeg issue with MIPS Johannes Schmitz
2018-01-03 21:50 ` Thomas Petazzoni
[not found] ` <CAMbDF3+pfHWMz1iYOxY-rnBJkBRhxw534dGacPbKMLF_+OQTHg@mail.gmail.com>
2018-01-03 22:05 ` Thomas Petazzoni
2018-01-03 22:13 ` Johannes Schmitz
2018-01-03 23:32 ` Johannes Schmitz
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.