About Cross-Compilation

Milav milav.soni at teqdiligent.com
Fri Jan 11 05:04:22 UTC 2019


Hello Adam,

Thank You Very Much for your mail.
The *renderproto* issues is now solved.

I have another query, can i ask to you?
The Query is related to *XCB* library.

I downloaded *libxcb-1.13* and try to cross-compile for ARM.
When I run make command it gives following error.

/    File "./c_client.py", line 440, in _c_type_setup if 
field.type.is_event: //
//    AttributeError: 'SimpleType' object has no attribute 'is_event' /

The configuration is run correctly. I attached the configuration file 
which i have enter. I attached the make command result which i have enter.

Please help me to sort out this problem.


On 01/10/2019 09:28 PM, Adam Jackson wrote:
> On Thu, 2019-01-10 at 11:58 +0530, Milav wrote:
>> Hello Friends,
>>
>> My name is Milav Soni From Teq Diligent.
>>
>> I downloaded "renderproto-0.11.1" from xorg site.
> You probably want xorgproto instead at this point.
>
>> After execute above command i run make command. but i am not able to run make command. I face following error.
>>
>>      root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/renderproto/renderproto-0.11.1# make
>>      
>>      make: Nothing to be done for `all'.
> That's not an error. There really is nothing to be done. renderproto
> only contains header files that other modules need for their build
> process. The header files are not generated, so there really is no work
> to do at the 'make' step. 'make install' will still do what you expect.
>
> - ajax
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg/attachments/20190111/1ebdb374/attachment-0001.html>
-------------- next part --------------
root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# ./configure --prefix=/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/wega_build --host=arm-cortexa8-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-cortexa8-linux-gnueabihf-strip... arm-cortexa8-linux-gnueabihf-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for a Python interpreter with version >= 2.6... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for style of include used by make... GNU
checking for arm-cortexa8-linux-gnueabihf-gcc... /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc accepts -g... yes
checking for /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc option to accept ISO C89... none needed
checking whether /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc understands -c and -o together... yes
checking dependency style of /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc... gcc3
checking how to run the C preprocessor... /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-cortexa8-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc... /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ld
checking if the linker (/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-nm
checking the name lister (/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to arm-cortexa8-linux-gnueabihf format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ld option to reload object files... -r
checking for arm-cortexa8-linux-gnueabihf-objdump... arm-cortexa8-linux-gnueabihf-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-cortexa8-linux-gnueabihf-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-cortexa8-linux-gnueabihf-ar... /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ar
checking for archiver @FILE support... @
checking for arm-cortexa8-linux-gnueabihf-strip... (cached) arm-cortexa8-linux-gnueabihf-strip
checking for arm-cortexa8-linux-gnueabihf-ranlib... /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ranlib
checking command to parse /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-nm output from /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-cortexa8-linux-gnueabihf-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc supports -fno-rtti -fno-exceptions... no
checking for /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc option to produce PIC... -fPIC -DPIC
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc PIC flag -fPIC -DPIC works... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc static flag -static works... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc supports -c -o file.o... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc supports -c -o file.o... (cached) yes
checking whether the /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc linker (/home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc option to accept ISO C99... -std=gnu99
checking whether __clang__ is declared... no
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking for arm-cortexa8-linux-gnueabihf-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=unknown-warning-option... no
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=unused-command-line-argument... no
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wall... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wpointer-arith... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wmissing-declarations... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wformat=2... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wstrict-prototypes... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wmissing-prototypes... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wnested-externs... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wbad-function-cast... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wold-style-definition... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wdeclaration-after-statement... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wunused... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wuninitialized... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wshadow... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wmissing-noreturn... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wmissing-format-attribute... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wredundant-decls... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Wlogical-op... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=implicit... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=nonnull... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=init-self... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=main... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=missing-braces... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=sequence-point... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=return-type... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=trigraphs... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=array-bounds... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=write-strings... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=address... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=int-to-pointer-cast... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=pointer-to-int-cast... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -pedantic... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror... yes
checking if /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking whether to build developer documentation... yes
checking for doxygen... no
configure: WARNING: doxygen not found - documentation targets will be skipped
configure: WARNING: dot not found - doxygen targets will be skipped
checking for CHECK... no
checking for XCBPROTO... yes
checking for NEEDED... yes
checking for XDMCP... yes
checking for XdmcpWrap in -lXdmcp... no
checking XCBPROTO_XCBINCLUDEDIR... /usr/share/xcb
checking XCBPROTO_XCBPYTHONDIR... /usr/lib/python2.7/dist-packages
checking for ANSI C header files... (cached) yes
checking for library containing getaddrinfo... none required
checking for library containing connect... none required
checking for library containing sendmsg... none required
checking for struct msghdr.msg_control... yes
checking for struct sockaddr_un.sun_len... no
checking tsol/label.h usability... no
checking tsol/label.h presence... no
checking for tsol/label.h... no
checking for is_system_labeled... no
checking whether IOV_MAX is declared... yes
checking whether /home/teqdiligent/HMI_SCADA/Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gcc -std=gnu99 supports symbol visibility... yes
checking for getaddrinfo... yes
checking for poll... yes
checking for launchd... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating xcb.pc
config.status: creating xcb-composite.pc
config.status: creating xcb-damage.pc
config.status: creating xcb-dpms.pc
config.status: creating xcb-dri2.pc
config.status: creating xcb-dri3.pc
config.status: creating xcb-ge.pc
config.status: creating xcb-glx.pc
config.status: creating xcb-present.pc
config.status: creating xcb-randr.pc
config.status: creating xcb-record.pc
config.status: creating xcb-render.pc
config.status: creating xcb-res.pc
config.status: creating xcb-screensaver.pc
config.status: creating xcb-shape.pc
config.status: creating xcb-shm.pc
config.status: creating xcb-sync.pc
config.status: creating xcb-xevie.pc
config.status: creating xcb-xf86dri.pc
config.status: creating xcb-xfixes.pc
config.status: creating xcb-xinerama.pc
config.status: creating xcb-xinput.pc
config.status: creating xcb-xkb.pc
config.status: creating xcb-xprint.pc
config.status: creating xcb-xselinux.pc
config.status: creating xcb-xtest.pc
config.status: creating xcb-xv.pc
config.status: creating xcb-xvmc.pc
config.status: creating doc/xcb.doxygen
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

  Package: libxcb 1.13

  Configuration
    XDM support.........: no
    sendmsg fd passing..: yes
    Build unit tests....: no
      with html results.: no
    XCB buffer size.....: 16384

  X11 extensions
    Composite...........: yes
    Damage..............: yes
    Dpms................: yes
    Dri2................: yes
    Dri3................: yes
    GenericEvent........: no
    Glx.................: yes
    Randr...............: yes
    Record..............: yes
    Render..............: yes
    Resource............: yes
    Screensaver.........: yes
    selinux.............: no
    Shape...............: yes
    Shm.................: yes
    Sync................: yes
    Xevie...............: no
    Xfixes..............: yes
    Xfree86-dri.........: yes
    xinerama............: yes
    xinput..............: yes
    xkb.................: yes
    xprint..............: no
    xtest...............: yes
    xv..................: yes
    xvmc................: yes

  Used CFLAGS:
    CPPFLAGS............: 
    CFLAGS..............: -g -O2

  Installation:
    Prefix..............: /home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/wega_build

root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# 
root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# 
root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# 
root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# 
root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# make
Making all in src
make[1]: Entering directory `/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13/src'
  GEN      xproto.c
Traceback (most recent call last):
  File "./c_client.py", line 3368, in <module>
    module.generate()
  File "/usr/lib/python2.7/dist-packages/xcbgen/state.py", line 103, in generate
    item.out(name)
  File "./c_client.py", line 2136, in c_struct
    _c_type_setup(self, name, ())
  File "./c_client.py", line 440, in _c_type_setup
    if field.type.is_event:
AttributeError: 'SimpleType' object has no attribute 'is_event'
make[1]: *** [xproto.c] Error 1
make[1]: Leaving directory `/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13/src'
make: *** [all-recursive] Error 1
root at ubuntu:/home/teqdiligent/HMI_SCADA/Phytec_Lib/xcb/libxcb-1.13# 



More information about the xorg mailing list