Error while build Yocto fsl-image-qt5

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while build Yocto fsl-image-qt5

1,854 Views
evgenymolchanov
Contributor III

Hello all. I try to build fsl-image-qt5 using Freescale Yocto Project User's Guide. Problem occurs then i run build scenario:

$ MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11

$ bitbake fsl-image-qt5

397: Error: bad instruction `rorw $8,'

please tell me what am I doing wrong?

Thank you.

Labels (2)
0 Kudos
5 Replies

861 Views
hallo32hallo32
Contributor I

Hi,

change the following line in

sources/meta-openembedded/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb

​from

     EXTRA_OECONF += "--disable-snmp"

to

     EXTRA_OECONF += "--disable-snmp --with-pcap-config=no"

0 Kudos

861 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Evgeny Molchanov,

Would you please provide more details on which BSP Release you are using?

Have you installed all required packages in your host? Which Ubuntu version are you using?

If you could also post a more detailed log of this error that would also help to better assess this problem.

0 Kudos

861 Views
evgenymolchanov
Contributor III

Hello gusarambula.

Problem in file byteswap.h, because during build /usr/include/bits/byteswap.h used, and of coures compiller doesn't understand asm command.

So, that should I do to use appropriate file?

Here is log of my build fsl-image-qt5:

| make[1]: Entering directory `/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/build'

| Making all in src

| make[2]: Entering directory `/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/build/src'

| arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd -DHAVE_CONFIG_H -I. -I/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src -I..   -I/usr/include     -DPTPD_PCAP      -Wall  -O2 -pipe -g -feliminate-unused-debug-types -c -o arith.o /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/arith.c

| arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd -DHAVE_CONFIG_H -I. -I/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src -I..   -I/usr/include     -DPTPD_PCAP      -Wall  -O2 -pipe -g -feliminate-unused-debug-types -c -o bmc.o /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c

| cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]

| cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]

| arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd -DHAVE_CONFIG_H -I. -I/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src -I..   -I/usr/include     -DPTPD_PCAP      -Wall  -O2 -pipe -g -feliminate-unused-debug-types -c -o dep/daemonconfig.o /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/daemonconfig.c

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/arith.c:53:

| /usr/include/bits/predefs.h:27:0: warning: "__STDC_IEC_559__" redefined

|  #define __STDC_IEC_559__  1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:38:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559__  1

|  ^

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/arith.c:53:

| /usr/include/bits/predefs.h:28:0: warning: "__STDC_IEC_559_COMPLEX__" redefined

|  #define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:46:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from /usr/include/stdlib.h:25:0,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/arith.c:53:

| /usr/include/features.h:327:0: warning: "__STDC_ISO_10646__" redefined

|  #define __STDC_ISO_10646__  200009L

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:54:0: note: this is the location of the previous definition

|  #define __STDC_ISO_10646__  201103L

|  ^

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:54:

| /usr/include/bits/predefs.h:27:0: warning: "__STDC_IEC_559__" redefined

|  #define __STDC_IEC_559__  1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:38:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559__  1

|  ^

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:54:

| /usr/include/bits/predefs.h:28:0: warning: "__STDC_IEC_559_COMPLEX__" redefined

|  #define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:46:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from /usr/include/stdlib.h:25:0,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:54:

| /usr/include/features.h:327:0: warning: "__STDC_ISO_10646__" redefined

|  #define __STDC_ISO_10646__  200009L

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:54:0: note: this is the location of the previous definition

|  #define __STDC_ISO_10646__  201103L

|  ^

| cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]

| arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd -DHAVE_CONFIG_H -I. -I/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src -I..   -I/usr/include     -DPTPD_PCAP      -Wall  -O2 -pipe -g -feliminate-unused-debug-types -c -o dep/startup.o /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/startup.c

| cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/daemonconfig.c:40:

| /usr/include/bits/predefs.h:27:0: warning: "__STDC_IEC_559__" redefined

|  #define __STDC_IEC_559__  1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:38:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559__  1

|  ^

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/daemonconfig.c:40:

| /usr/include/bits/predefs.h:28:0: warning: "__STDC_IEC_559_COMPLEX__" redefined

|  #define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:46:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from /usr/include/stdlib.h:25:0,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/daemonconfig.c:40:

| /usr/include/features.h:327:0: warning: "__STDC_ISO_10646__" redefined

|  #define __STDC_ISO_10646__  200009L

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:54:0: note: this is the location of the previous definition

|  #define __STDC_ISO_10646__  201103L

|  ^

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/startup.c:57:

| /usr/include/bits/predefs.h:27:0: warning: "__STDC_IEC_559__" redefined

|  #define __STDC_IEC_559__  1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:38:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559__  1

|  ^

| In file included from /usr/include/features.h:324:0,

|                  from /usr/include/stdlib.h:25,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/startup.c:57:

| /usr/include/bits/predefs.h:28:0: warning: "__STDC_IEC_559_COMPLEX__" redefined

|  #define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:46:0: note: this is the location of the previous definition

|  #  define __STDC_IEC_559_COMPLEX__ 1

|  ^

| In file included from /usr/include/stdlib.h:25:0,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/startup.c:57:

| /usr/include/features.h:327:0: warning: "__STDC_ISO_10646__" redefined

|  #define __STDC_ISO_10646__  200009L

|  ^

| In file included from <command-line>:0:0:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/sysroots/imx6qsabresd/usr/include/stdc-predef.h:54:0: note: this is the location of the previous definition

|  #define __STDC_ISO_10646__  201103L

|  ^

| In file included from /usr/include/endian.h:61:0,

|                  from /usr/include/bits/waitstatus.h:65,

|                  from /usr/include/stdlib.h:43,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40,

|                  from /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:54:

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c: In function 'initData':

| /usr/include/bits/byteswap.h:41:5: error: invalid 'asm': invalid operand for code 'w'

|      __asm__ ("rorw $8, %w0"           \

|      ^

| /usr/include/netinet/in.h:394:21: note: in expansion of macro '__bswap_16'

|  #   define htons(x) __bswap_16 :smileyx:

|                      ^

| /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:83:21: note: in expansion of macro 'htons'

|       uint16_t pid = htons(getpid());

|                      ^

| {standard input}: Assembler messages:

| {standard input}:397: Error: bad instruction `rorw $8,'

| make[2]: *** [bmc.o] Error 1

| make[2]: *** Waiting for unfinished jobs....

| make[2]: Leaving directory `/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/build/src'

| make[1]: *** [all-recursive] Error 1

| make[1]: Leaving directory `/home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/build'

| make: *** [all] Error 2

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_compile (log file is located at /home/mef/iMX6/fsl-release-bsp/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/ptpd/2.3.1-rc2-r0/temp/log.do_compile.3011)

ERROR: Task 2762 (/home/mef/iMX6/fsl-release-bsp/sources/meta-openembedded/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 4488 tasks of which 1639 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

  /home/mef/iMX6/fsl-release-bsp/sources/meta-openembedded/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb, do_compile

Summary: There were 15 WARNING messages shown.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

mef@mef-Aspire-TC-705:~/iMX6/fsl-release-bsp/build-x11$

0 Kudos

861 Views
suunda
Contributor I

Hello Evgeny,

Did you find a way to get yocto to successfully compile the ptpd source for the fsl-image-qt5?

I get the same errors.

Cheers

0 Kudos

861 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Evgeny Molchanov,

This error is indeed related to ptpd so one workaround is to remove it if it won’t be used. You didn’t mention which BSP release you are using but it looks like it’s related to Dizzy and using a newer BSP release (or even updated Dizzy branch) may solve the issue. The BSP Releases are static so they don’t get updated.

0 Kudos