[yocto] dpkg --print-architecture returns wrong result
John Rama
john.rama01 at gmail.com
Wed Nov 8 17:11:12 PST 2017
Hi, Yocto specialists
I've built the whole system with deb package,
and trying to use package feed feature of yocto.
When try trying to install some package from target, I faced following error.
# apt-get install fontconfig-utils
....
package architecture (armhf) does not match system (armel)
....
When checking the install package of the target system, everything is armhf architecture.
# dpkg -l
...
||/ Name Version Architecture Description
+++-==============================================-===========================-============-===========================================================================================
ii alsa-conf:armhf 1.1.0-r0 armhf ALSA sound library
ii alsa-conf-base:armhf 1.1.0-r0 armhf ALSA sound library
ii alsa-lib:armhf 1.1.0-r0 armhf ALSA sound library
...
However, when checking with following commands, it tells armel.
# dpkg --print-architecture
armel
I think "dpkg --print-architecture" returns wrong result.
I'm using toolchain "arm-poky-linux-gnueabi-gcc" and result of dumpmachine option is as followings.
$ arm-poky-linux-gnueabi-gcc -dumpmachine
arm-poky-linux-gnueabi
I have no idea how to tell yocto to configure the target system correctly.
Any feedback is highly appreciated.
Kind Regards,
Jonh Rama
More information about the yocto
mailing list