[meta-freescale] Help - new to Yocto
Terry Farnham
terry.farnham at quanergy.com
Wed Aug 26 17:50:49 PDT 2015
Hello,
Disclaimer: I am totally new to Yocto as well as Linux development. So
please bear with my ignorance.
I am attempting to build from scratch a generic kernel image for the
imx6qsabresd. I have followed a number of steps in getting setup to build
properly. However after executing the final two steps:
> MACHINE=imx6qsabresd source fsl-setup-release.sh -b build -e fb
> bitbake fsl-image-gui
I am getting a single compile error which I include after my signature. The
most pertinent information, however, seems to be the warning where it
indicates that it is unsafe to use the "/usr/include" include location.
This does indeed seem bad since I am on an x86 machine compiling for arm. I
am, however, totally oblivious as to why it would be looking in /usr/include
for any include files. Please Help, as I am clueless and I really need to
figure out the basic build process before I move forward on more advanced
setups.
Thanks,
Terry Farnham
| cc1: warning: include location "/usr/include" is unsafe for
cross-compilation [-Wpoison-system-directories]
| In file included from /usr/include/bits/byteswap.h:35:0,
| from /usr/include/endian.h:60,
| from /usr/include/bits/waitstatus.h:64,
| from /usr/include/stdlib.h:42,
| from
/home/tfarnham/fsl-release-bsp/build/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/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:54:
|
/home/tfarnham/fsl-release-bsp/build/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-16.h:31:5: error: invalid 'asm': invalid
operand for code 'w'
| __asm__ ("rorw $8, %w0" \
| ^
| /usr/include/netinet/in.h:403:21: note: in expansion of macro '__bswap_16'
| # define htons(x) __bswap_16 (x)
| ^
|
/home/tfarnham/fsl-release-bsp/build/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....
| In file included from /usr/include/bits/byteswap.h:35:0,
| from /usr/include/endian.h:60,
| from /usr/include/bits/waitstatus.h:64,
| from /usr/include/stdlib.h:42,
| from
/home/tfarnham/fsl-release-bsp/build/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/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/msg.c:54:
|
/home/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/msg.c: In function
'packEnumeration16':
| /usr/include/bits/byteswap-16.h:31:5: error: invalid 'asm': invalid
operand for code 'w'
| __asm__ ("rorw $8, %w0" \
| ^
| /usr/include/netinet/in.h:403:21: note: in expansion of macro '__bswap_16'
| # define htons(x) __bswap_16 (x)
| ^
|
/home/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/../dep/ptpd_dep.h:120:19:
note: in expansion of macro 'htons'
| #define flip16(x) htons(x)
| ^
|
/home/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/msg.c:71:16: note: in
expansion of macro 'flip16'
| *(type *)to = flip##size( *(type *)from ); \
| ^
|
/home/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/dep/msg.c:107:1: note: in
expansion of macro 'PACK_ENDIAN'
| PACK_ENDIAN( Enumeration16, 16 )
| ^
| {standard input}: Assembler messages:
| {standard input}:235: Error: bad instruction `rorw $8,'
| make[2]: *** [dep/msg.o] Error 1
| make[2]: Leaving directory
`/home/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linu
x-gnueabi/ptpd/2.3.1-rc2-r0/build/src'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory
`/home/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linu
x-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/tfarnham/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux
-gnueabi/ptpd/2.3.1-rc2-r0/temp/log.do_compile.29823)
ERROR: Task 1658
(/home/tfarnham/fsl-release-bsp/sources/meta-openembedded/meta-networking/re
cipes-daemons/ptpd/ptpd_2.3.1-rc2.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2447 tasks of which 2444 didn't need to be
rerun and 1 failed.
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
/home/tfarnham/fsl-release-bsp/sources/meta-openembedded/meta-networking/rec
ipes-daemons/ptpd/ptpd_2.3.1-rc2.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150826/b2e38f57/attachment.html>
More information about the meta-freescale
mailing list