Bug 9121 - gst1-imx for i.MX6 compile failed, cannot find PXP, IPU and other errors
Summary: gst1-imx for i.MX6 compile failed, cannot find PXP, IPU and other errors
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2016.05
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-01 01:06 UTC by rdghx
Modified: 2016-08-31 06:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
gst1-imx config log (61.83 KB, text/plain)
2016-08-01 01:59 UTC, rdghx
Details
buildroot config file and linux/include info (36.41 KB, application/gzip)
2016-08-02 01:23 UTC, rdghx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rdghx 2016-08-01 01:06:59 UTC
gst1-imx-0.12.1.tar.gz: OK (sha256: d8a7357bc575e22d0d19d6d7cf547bd69cad5fc47adb93f09ead41b0124353fa)
>>> gst1-imx 0.12.1 Extracting
gzip -d -c /home/ganhx/work/buildroot/dl/gst1-imx-0.12.1.tar.gz | tar --strip-components=1 -C /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1   -xf -
>>> gst1-imx 0.12.1 Patching
>>> gst1-imx 0.12.1 Configuring
cd /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1; PATH="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/bin:/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/sbin:/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin:/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/sbin:/home/ganhx/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/jdk1.6.0_45/bin:/opt/codesourcery/bin:/android-ndk-r7b:/opt/gcc-linaro/bin" AR="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-ar" AS="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-as" LD="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-ld" NM="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-nm" CC="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gcc" GCC="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gcc" CPP="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-cpp" CXX="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-g++" FC="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gfortran" F77="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gfortran" RANLIB="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-ranlib" READELF="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-readelf" STRIP="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-strip" OBJCOPY="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-objcopy" OBJDUMP="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/ccache /usr/bin/gcc" GCC_FOR_BUILD="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/ccache /usr/bin/gcc" CXX_FOR_BUILD="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/ccache /usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/include" CFLAGS_FOR_BUILD="-O2 -I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/include" LDFLAGS_FOR_BUILD="-L/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/lib -L/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/lib -Wl,-rpath,/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-as" DEFAULT_LINKER="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/pkg-config" STAGING_DIR="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/arm-buildroot-linux-gnueabihf/sysroot" INTLTOOL_PERL=/usr/bin/perl /home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/python2 ./waf configure --prefix="/usr" --kernel-headers="/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/linux-rel_imx_3.14.52_1.1.0_ga/include" --egl-platform=wayland
Setting top to                           : /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1 
Setting out to                           : /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/build 
Checking for 'gcc' (c compiler)          : /home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-gcc 
Need to test compiler flags -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os 
Checking if building with these flags works : yes 
Checking for compiler switch -O2            : yes 
Checking for compiler switch -DPIC          : yes 
Checking for compiler switch -fPIC          : yes 
Checking for compiler switch -std=gnu99     : yes 
Checking for compiler switch -Wall          : yes 
Checking for compiler switch -Wextra        : yes 
Checking for compiler switch -Wno-sign-compare : yes 
Checking for compiler switch -Wno-missing-field-initializers : yes 
Checking for compiler switch -Wno-unused-parameter           : yes 
Checking for compiler switch -Wno-cpp                        : yes 
Checking for program objdump                                 : /home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/arm-linux-gnueabihf-objdump 
Building for Android                                         : no 
Checking for library dl                                      : yes 
Checking for library m                                       : yes 
Checking for library pthread                                 : yes 
Checking for program pkg-config                              : /home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/pkg-config 
Checking for 'gstreamer-1.0' version                         : yes 
Checking for 'gstreamer-1.0 >= 1.2.0'                        : yes 
Checking for 'gstreamer-base-1.0 >= 1.2.0'                   : yes 
Checking for 'gstreamer-audio-1.0 >= 1.2.0'                  : yes 
Checking for 'gstreamer-video-1.0 >= 1.2.0'                  : yes 
Checking for library gstphotography-1.0                      : yes 
checking whether or not the kernel version is greater than 3.5.0 : no 
Checking for library g2d                                         : yes 
Checking for header g2d.h                                        : yes 
G2D elements will be built 
checking for linux/pxp_device.h                                  : no 
PxP elements will not be built - headers not found 
checking for linux/fb.h and the IPU header linux/ipu.h           : no 
IPU elements will not be built - headers not found 
Checking for 'libimxvpuapi'                                      : not found 
could not find installed imxvpuapi library - VPU elements will not be built 
Checking for 'wayland-client'                                    : yes 
Checking for 'wayland-cursor'                                    : yes 
Checking for 'wayland-egl'                                       : yes 
Checking for library ['EGL']                                     : yes 
Checking for header EGL/egl.h                                    : yes 
Checking for library GLESv2                                      : yes 
Checking for header GLES2/gl2.h                                  : yes 
Checking for header ['GLES2/gl2.h', 'GLES2/gl2ext.h']            : yes 
EGL sink with Vivante direct textures will be built 
Selected EGL platform: wayland 
Checking for 'libfslaudiocodec'                                  : yes 
Searching fslcodec plugin directory                              : found 
  added AAC LC decoder (soname: lib_aacd_wrap_arm12_elinux.so.3) 
  added MP3 decoder (soname: lib_mp3d_wrap_arm12_elinux.so.3) 
  added Vorbis decoder (soname: lib_vorbisd_wrap_arm12_elinux.so.3) 
  added narrowband AMR decoder (soname: lib_nbamrd_wrap_arm11_elinux.so.1) 
  added wideband AMR decoder (soname: lib_wbamrd_wrap_arm12_elinux.so.1) 
  could not add WMA decoder 
uniaudio decoder will be built 
Checking for library _mp3_enc_arm12_elinux                       : not found 
mp3 encoder will not be built 
'configure' finished successfully (14.521s)
>>> gst1-imx 0.12.1 Building
cd /home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1; /home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/bin/python2 ./waf build -j 2
Waf: Entering directory `/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/build'
[ 1/40] c: src/common/canvas.c -> build/src/common/canvas.c.1.o
[ 2/40] c: src/common/fd_object.c -> build/src/common/fd_object.c.1.o
[ 3/40] c: src/common/phys_mem_allocator.c -> build/src/common/phys_mem_allocator.c.1.o
[ 4/40] c: src/common/phys_mem_buffer_pool.c -> build/src/common/phys_mem_buffer_pool.c.1.o
[ 5/40] c: src/common/phys_mem_meta.c -> build/src/common/phys_mem_meta.c.1.o
[ 6/40] c: src/common/region.c -> build/src/common/region.c.1.o
[ 7/40] c: src/g2d/allocator.c -> build/src/g2d/allocator.c.1.o
[ 8/40] c: src/g2d/blitter.c -> build/src/g2d/blitter.c.1.o
[ 9/40] c: src/g2d/compositor.c -> build/src/g2d/compositor.c.1.o
[10/40] c: src/g2d/plugin.c -> build/src/g2d/plugin.c.1.o
[11/40] c: src/g2d/video_sink.c -> build/src/g2d/video_sink.c.1.o
[12/40] c: src/g2d/video_transform.c -> build/src/g2d/video_transform.c.1.o
[13/40] c: src/eglvivsink/eglvivsink.c -> build/src/eglvivsink/eglvivsink.c.1.o
[14/40] c: src/eglvivsink/gl_headers.c -> build/src/eglvivsink/gl_headers.c.1.o
[15/40] c: src/eglvivsink/gles2_renderer.c -> build/src/eglvivsink/gles2_renderer.c.1.o
[16/40] c: src/eglvivsink/egl_misc.c -> build/src/eglvivsink/egl_misc.c.1.o
[17/40] c: src/eglvivsink/plugin.c -> build/src/eglvivsink/plugin.c.1.o
[18/40] c: src/eglvivsink/egl_platform_wayland.c -> build/src/eglvivsink/egl_platform_wayland.c.1.o
[19/40] c: src/v4l2src/v4l2_buffer_pool.c -> build/src/v4l2src/v4l2_buffer_pool.c.1.o
[20/40] c: src/v4l2src/v4l2src.c -> build/src/v4l2src/v4l2src.c.1.o
In file included from ../src/v4l2src/v4l2src.c:24:0:
../../../host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/gstreamer-1.0/gst/interfaces/photography.h:28:2: warning: #warning "The GstPhotography interface is unstable API and may change in future." [-Wcpp]
 #warning "The GstPhotography interface is unstable API and may change in future."
  ^
../../../host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/gstreamer-1.0/gst/interfaces/photography.h:29:2: warning: #warning "You can define GST_USE_UNSTABLE_API to avoid this warning." [-Wcpp]
 #warning "You can define GST_USE_UNSTABLE_API to avoid this warning." 
  ^
../src/v4l2src/v4l2src.c: In function ‘ctrl_name’:
../src/v4l2src/v4l2src.c:942:8: error: ‘V4L2_CID_AUTO_FOCUS_RANGE’ undeclared (first use in this function)
   case V4L2_CID_AUTO_FOCUS_RANGE:
        ^
../src/v4l2src/v4l2src.c:942:8: note: each undeclared identifier is reported only once for each function it appears in
../src/v4l2src/v4l2src.c:944:8: error: ‘V4L2_CID_AUTO_FOCUS_START’ undeclared (first use in this function)
   case V4L2_CID_AUTO_FOCUS_START:
        ^
../src/v4l2src/v4l2src.c:946:8: error: ‘V4L2_CID_AUTO_FOCUS_STOP’ undeclared (first use in this function)
   case V4L2_CID_AUTO_FOCUS_STOP:
        ^
../src/v4l2src/v4l2src.c:948:8: error: ‘V4L2_CID_AUTO_FOCUS_STATUS’ undeclared (first use in this function)
   case V4L2_CID_AUTO_FOCUS_STATUS:
        ^
../src/v4l2src/v4l2src.c:950:8: error: ‘V4L2_CID_3A_LOCK’ undeclared (first use in this function)
   case V4L2_CID_3A_LOCK:
        ^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_apply_focus_settings’:
../src/v4l2src/v4l2src.c:1005:23: error: ‘V4L2_CID_AUTO_FOCUS_STOP’ undeclared (first use in this function)
  v4l2_s_ctrl(v4l2src, V4L2_CID_AUTO_FOCUS_STOP, 0);
                       ^
../src/v4l2src/v4l2src.c:1013:27: error: ‘V4L2_CID_3A_LOCK’ undeclared (first use in this function)
  if (v4l2_g_ctrl(v4l2src, V4L2_CID_3A_LOCK, &locks) == 0 && (locks & V4L2_LOCK_FOCUS))
                           ^
../src/v4l2src/v4l2src.c:1013:70: error: ‘V4L2_LOCK_FOCUS’ undeclared (first use in this function)
  if (v4l2_g_ctrl(v4l2src, V4L2_CID_3A_LOCK, &locks) == 0 && (locks & V4L2_LOCK_FOCUS))
                                                                      ^
../src/v4l2src/v4l2src.c:1023:13: error: ‘V4L2_AUTO_FOCUS_RANGE_AUTO’ undeclared (first use in this function)
     range = V4L2_AUTO_FOCUS_RANGE_AUTO;
             ^
../src/v4l2src/v4l2src.c:1026:13: error: ‘V4L2_AUTO_FOCUS_RANGE_MACRO’ undeclared (first use in this function)
     range = V4L2_AUTO_FOCUS_RANGE_MACRO;
             ^
../src/v4l2src/v4l2src.c:1029:13: error: ‘V4L2_AUTO_FOCUS_RANGE_INFINITY’ undeclared (first use in this function)
     range = V4L2_AUTO_FOCUS_RANGE_INFINITY;
             ^
../src/v4l2src/v4l2src.c:1032:13: error: ‘V4L2_AUTO_FOCUS_RANGE_NORMAL’ undeclared (first use in this function)
     range = V4L2_AUTO_FOCUS_RANGE_NORMAL;
             ^
../src/v4l2src/v4l2src.c:1036:24: error: ‘V4L2_CID_AUTO_FOCUS_RANGE’ undeclared (first use in this function)
   v4l2_s_ctrl(v4l2src, V4L2_CID_AUTO_FOCUS_RANGE, range);
                        ^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_af_check_status’:
../src/v4l2src/v4l2src.c:1106:27: error: ‘V4L2_CID_AUTO_FOCUS_STATUS’ undeclared (first use in this function)
  if (v4l2_g_ctrl(v4l2src, V4L2_CID_AUTO_FOCUS_STATUS, &status) < 0)
                           ^
../src/v4l2src/v4l2src.c:1111:8: error: ‘V4L2_AUTO_FOCUS_STATUS_IDLE’ undeclared (first use in this function)
   case V4L2_AUTO_FOCUS_STATUS_IDLE:
        ^
../src/v4l2src/v4l2src.c:1118:8: error: ‘V4L2_AUTO_FOCUS_STATUS_BUSY’ undeclared (first use in this function)
   case V4L2_AUTO_FOCUS_STATUS_BUSY:
        ^
../src/v4l2src/v4l2src.c:1122:8: error: ‘V4L2_AUTO_FOCUS_STATUS_REACHED’ undeclared (first use in this function)
   case V4L2_AUTO_FOCUS_STATUS_REACHED:
        ^
../src/v4l2src/v4l2src.c:1127:8: error: ‘V4L2_AUTO_FOCUS_STATUS_FAILED’ undeclared (first use in this function)
   case V4L2_AUTO_FOCUS_STATUS_FAILED:
        ^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_set_autofocus’:
../src/v4l2src/v4l2src.c:1201:28: error: ‘V4L2_CID_3A_LOCK’ undeclared (first use in this function)
   if (v4l2_g_ctrl(v4l2src, V4L2_CID_3A_LOCK, &locks) == 0)
                            ^
../src/v4l2src/v4l2src.c:1203:24: error: ‘V4L2_LOCK_FOCUS’ undeclared (first use in this function)
    if (on && !(locks & V4L2_LOCK_FOCUS))
                        ^
../src/v4l2src/v4l2src.c:1213:29: error: ‘V4L2_CID_AUTO_FOCUS_START’ undeclared (first use in this function)
    if (v4l2_s_ctrl(v4l2src, V4L2_CID_AUTO_FOCUS_START, 0) == 0)
                             ^
../src/v4l2src/v4l2src.c:1217:25: error: ‘V4L2_CID_AUTO_FOCUS_STOP’ undeclared (first use in this function)
    v4l2_s_ctrl(v4l2src, V4L2_CID_AUTO_FOCUS_STOP, 0);
                         ^
Waf: Leaving directory `/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/build'
Build failed
 -> task in 'gstimxv4l2videosrc' failed (exit status 1): 
	{task 1087211724: c v4l2src.c -> v4l2src.c.1.o}
['/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', '-fPIC', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-Wno-sign-compare', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/build/src/v4l2src', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/src/v4l2src', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/build', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/gstreamer-1.0', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/gstreamer-1.0/include', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/glib-2.0', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/glib-2.0/include', '-I/home/ganhx/work/buildroot/qt5-buildroot/mx6output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include', '../src/v4l2src/v4l2src.c', '-c', '-o', 'src/v4l2src/v4l2src.c.1.o']
make[1]: *** [/home/ganhx/work/buildroot/qt5-buildroot/mx6output/build/gst1-imx-0.12.1/.stamp_built] Error 1
Comment 1 rdghx 2016-08-01 01:10:32 UTC
kernel-3.14.52-1.1.0
Comment 2 rdghx 2016-08-01 01:59:32 UTC
Created attachment 6566 [details]
gst1-imx config log
Comment 3 Gary Bisson 2016-08-01 08:36:16 UTC
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
Comment 4 Gary Bisson 2016-08-01 08:48:30 UTC
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
Comment 5 rdghx 2016-08-02 01:11:18 UTC
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}
Comment 6 rdghx 2016-08-02 01:23:11 UTC
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.
Comment 7 Gary Bisson 2016-08-02 09:51:27 UTC
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.
Comment 8 rdghx 2016-08-02 22:37:29 UTC
(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.
Comment 9 rdghx 2016-08-03 00:54:56 UTC
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
Comment 10 Gary Bisson 2016-08-04 10:05:26 UTC
(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?
Comment 11 rdghx 2016-08-31 01:39:24 UTC
There are no errors when using tools with Sourcery CodeBench ARM 2014.05