| Summary: | gst1-imx for i.MX6 compile failed, cannot find PXP, IPU and other errors | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | rdghx <rdghx> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2016.05 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: |
gst1-imx config log
buildroot config file and linux/include info |
||
|
Description
rdghx
2016-08-01 01:06:59 UTC
kernel-3.14.52-1.1.0 Created attachment 6566 [details]
gst1-imx config log
Hi, Can you share you defconfig? It looks like the issue is that the kernel used isn't a NXP kernel which is why the PXP/IPU headers are missing. But the fact that the PXP/IPU headers are missing isn't really a problem, it should just not compile the plugins for it. The issue is that the imxv4l2videosrc plugin also relies on some V4L2 IOCTL that are only found on NXP kernels. An update to the gst1-imx package will be made soon in order to select each plugin individually, we can then make v4l2src plugin depend on kernel too with a comment that says it requires a NXP-specific kernel. Regards, Gary Hi, Actually your log states it uses the rel_imx_3.14.52_1.1.0_ga tag. Can you list the content of the following folder? /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include What is strange is that the headers from the git repo are here as expected: http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/include/linux/ipu.h?id=rel_imx_3.14.52_1.1.0_ga http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/include/linux/pxp_device.h?id=rel_imx_3.14.52_1.1.0_ga http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/include/uapi/linux/v4l2-controls.h?id=rel_imx_3.14.52_1.1.0_ga Regards, Gary include/linux/ipu.h, include/linux/pxp_device.h, include/uapi/linux/v4l2-controls.h all in its place. in the gst1-imx config.log, for the PXP, IPU test, there is no asm/linkage.h finded. actually the file is in arch/arm/include/asm/linkage.h. if you create a link : ln -s arch/arm/include/asm include/. there will be other errors. ['/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gcc', '-Wextra', '-Wall', '-std=gnu99', '-fPIC', '-DPIC', '-O2', '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-Os', '-Wno-cpp', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include', '-DGSTREAMER_VERSION="1.8.2"', '-DHAVE_GSTREAMER=1', '-DHAVE_GSTREAMER_BASE=1', '-DHAVE_GSTREAMER_AUDIO=1', '-DHAVE_GSTREAMER_VIDEO=1', '-DGST_PACKAGE_NAME="Unknown package release"', '-DGST_PACKAGE_ORIGIN="Unknown package origin"', '-DPACKAGE="gstreamer-imx"', '-DPACKAGE_BUGREPORT="https://github.com/Freescale/gstreamer-imx"', '-DVERSION="0.12.1"', '-DHAVE_G2D_H=1', '../test.c', '-c', '-o', 'test.c.1.o'] err: In file included from /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include/linux/kgdb.h:16:0, from /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include/linux/fb.h:4, from ../test.c:3: /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include/linux/linkage.h:7:25: fatal error: asm/linkage.h: No such file or directory #include <asm/linkage.h> ^ compilation terminated. from /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/src/ipu: Test does not build: Traceback (most recent call last): File "/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Tools/c_config.py", line 459, in run_c_code bld.compile() File "/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 188, in compile raise Errors.BuildError(self.producer.error) BuildError: Build failed -> task in 'testprog' failed (exit status 1): {task 1087632876: c test.c -> test.c.1.o} Created attachment 6571 [details]
buildroot config file and linux/include info
in the mx6.tar.gz
mx6_config is the buildroot defconfig.
include.txt and include_detail.txt is the linux/include list.
Cannot reproduce your issue. Built your config, had to change the toolchain to use BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM instead of yours in /opt/xxx. If you haven't already, please 'make clean' before trying again. If still doesn't work, use the same toolchain as above. (In reply to Gary Bisson from comment #7) i have try agan, a full new process, use BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM tools, the errors is the same. in the gst1_imx config.log, the version.h is not in the dir: include/linux.
and in the include/generated/uapi/linux/version.h linux-rel_imx_3.14.52_1.1.0_ga
kernel version test:
----------------------------------------------------------------
checking whether or not the kernel version is greater than 3.5.0
==>
#include <linux/version.h>
int main() {
#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 5, 0)
return 0;
#else
#error fail
#endif
}
<==
[1/2] [32mc: build/.conf_check_ccf59d1e456025ae0397810f052902cf/test.c -> build/.conf_check_ccf59d1e456025ae0397810f052902cf/testbuild/test.c.1.o
[0m
['/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gcc', '-Wextra', '-Wall', '-std=gnu99', '-fPIC', '-DPIC', '-O2', '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-Os', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/usr/include', '-DGSTREAMER_VERSION="1.8.2"', '-DHAVE_GSTREAMER=1', '-DHAVE_GSTREAMER_BASE=1', '-DHAVE_GSTREAMER_AUDIO=1', '-DHAVE_GSTREAMER_VIDEO=1', '../test.c', '-c', '-o', 'test.c.1.o']
err: ../test.c: In function ‘main’:
../test.c:7:4: error: #error fail
#error fail
^
from /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1: Test does not build: Traceback (most recent call last):
File "/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Tools/c_config.py", line 459, in run_c_code
bld.compile()
File "/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 188, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
(In reply to Gary Bisson from comment #7) nyma, from buildroot IRC channel, also tried to reproduce the issue without success. See his answer from Aug 4th: 13:52 < nyma> gbisson: No more luck on my autobuilder: it builds fine too. Do you have another (clean) machine or even a VM you can try this on? There are no errors when using tools with Sourcery CodeBench ARM 2014.05 |