digetx / libvdpau-tegra

VDPAU backend driver for NVIDIA Tegra SoC's. This is my personal repo, the official is https://github.com/grate-driver/libvdpau-tegra
3 stars 6 forks source link

gcc: error: unrecognized command line option ‘-mfp16-format=ieee #1

Open arickbro opened 4 years ago

arickbro commented 4 years ago

could you advise why I got this error during compiling

make all-recursive make[1]: Entering directory '/home/arickbro/libvdpau-tegra' Making all in src make[2]: Entering directory '/home/arickbro/libvdpau-tegra/src' make all-am make[3]: Entering directory '/home/arickbro/libvdpau-tegra/src' depbase=echo vdpau_tegra.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';\ /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -pthread -mfp16-format=ieee -I/usr/include/pixman-1 -I/usr/include/libdrm -fvisibility=hidden -DNDEBUG -I./tegradrm -g -O2 -MT vdpau_tegra.lo -MD -MP -MF $depbase.Tpo -c -o vdpau_tegra.lo vdpau_tegra.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -pthread -mfp16-format=ieee -I/usr/include/pixman-1 -I/usr/include/libdrm -fvisibility=hidden -DNDEBUG -I./tegradrm -g -O2 -MT vdpau_tegra.lo -MD -MP -MF .deps/vdpau_tegra.Tpo -c vdpau_tegra.c -fPIC -DPIC -o .libs/vdpau_tegra.o gcc: error: unrecognized command line option ‘-mfp16-format=ieee’ Makefile:575: recipe for target 'vdpau_tegra.lo' failed make[3]: [vdpau_tegra.lo] Error 1 make[3]: Leaving directory '/home/arickbro/libvdpau-tegra/src' Makefile:413: recipe for target 'all' failed make[2]: [all] Error 2 make[2]: Leaving directory '/home/arickbro/libvdpau-tegra/src' Makefile:472: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/arickbro/libvdpau-tegra' Makefile:383: recipe for target 'all' failed make: [all] Error 2

digetx commented 4 years ago

@arickbro The GCC's -mfp16-format switch is available on ARM only. You should either compile on the ARM host machine, or use cross-compiling toolchain. https://gcc.gnu.org/onlinedocs/gcc/Half-Precision.html

arickbro commented 4 years ago

@digetx I try it on nvidia jetson nano arm64, does this driver support it ?

arickbro@arickbro-desktop:~/libvdpau-tegra$ dpkg printarchitecture arm64 arickbro@arickbro-desktop:~/libvdpau-tegra$ cat /proc/cpuinfo processor : 0 model name : ARMv8 Processor rev 1 (v8l) BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd07 CPU revision : 1

arickbro@arickbro-desktop:~/libvdpau-tegra$ uname -a Linux arickbro-desktop 4.9.140-tegra #1 SMP PREEMPT Tue Jul 16 17:04:49 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

digetx commented 4 years ago

Only older Tegra SoCs are supported here.

You should use proprietary NVIDIA driver if you need HW acceleration on Nano.