All of lore.kernel.org
 help / color / mirror / Atom feed
* dpkg --print-architecture returns wrong result
@ 2017-11-09  1:11 John Rama
  2017-11-09 23:50 ` John Rama
  0 siblings, 1 reply; 3+ messages in thread
From: John Rama @ 2017-11-09  1:11 UTC (permalink / raw)
  To: yocto

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dpkg --print-architecture returns wrong result
  2017-11-09  1:11 dpkg --print-architecture returns wrong result John Rama
@ 2017-11-09 23:50 ` John Rama
  2017-11-10 22:53   ` John Rama
  0 siblings, 1 reply; 3+ messages in thread
From: John Rama @ 2017-11-09 23:50 UTC (permalink / raw)
  To: yocto

>> However, when checking with following commands, it tells armel.
>> # dpkg --print-architecture
>> armel
>> 
>> I think "dpkg --print-architecture" returns wrong result. 

I debugged further on this problem.
"dpkg --print-architecture" is just returns "ARCHITECTURE" which is defined by configure script. 
In configure script, ARCHITECTURE is defined as followings.

dpkg_arch=$($srcdir/run-script $PERL scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH 2>/dev/null)
where $host is arm-poky-linux-gnueabi.

When running dpkg-architecture.pl, I see following warning.

$ scripts/dpkg-architecture.pl -t arm-poky-linux-gnueabi -qDEB_TARGET_ARCH
dpkg-architecture.pl: warning: default GNU system type arm-linux-gnueabi for Debian arch armel does not match specified GNU system type arm-poky-linux-gnueabi
armel

Does -t "arm-poky-linux-gnueabi" is appropriate ?
Or arm-poky-linux-gnueabi is correct, but the behavior of dpkg-architecture.pl is wrong ?

Any feedback is highly appreciated.

John

On 2017/11/08 20:11, John Rama wrote:
> 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
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dpkg --print-architecture returns wrong result
  2017-11-09 23:50 ` John Rama
@ 2017-11-10 22:53   ` John Rama
  0 siblings, 0 replies; 3+ messages in thread
From: John Rama @ 2017-11-10 22:53 UTC (permalink / raw)
  To: yocto

This issue is already addressed by the following commit.

https://vendor2.nginfotpdx.net/gitlab/ypp/poky/commit/aca6dae9dcdde59c3aeb0a9afd1a9538f1288e3a?view=inline
https://patchwork.openembedded.org/patch/132494/

John

On 2017/11/09 18:50, John Rama wrote:
>>> However, when checking with following commands, it tells armel.
>>> # dpkg --print-architecture
>>> armel
>>>
>>> I think "dpkg --print-architecture" returns wrong result. 
> 
> I debugged further on this problem.
> "dpkg --print-architecture" is just returns "ARCHITECTURE" which is defined by configure script. 
> In configure script, ARCHITECTURE is defined as followings.
> 
> dpkg_arch=$($srcdir/run-script $PERL scripts/dpkg-architecture.pl -t$host -qDEB_HOST_ARCH 2>/dev/null)
> where $host is arm-poky-linux-gnueabi.
> 
> When running dpkg-architecture.pl, I see following warning.
> 
> $ scripts/dpkg-architecture.pl -t arm-poky-linux-gnueabi -qDEB_TARGET_ARCH
> dpkg-architecture.pl: warning: default GNU system type arm-linux-gnueabi for Debian arch armel does not match specified GNU system type arm-poky-linux-gnueabi
> armel
> 
> Does -t "arm-poky-linux-gnueabi" is appropriate ?
> Or arm-poky-linux-gnueabi is correct, but the behavior of dpkg-architecture.pl is wrong ?
> 
> Any feedback is highly appreciated.
> 
> John
> 
> On 2017/11/08 20:11, John Rama wrote:
>> 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
>>
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-10 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-09  1:11 dpkg --print-architecture returns wrong result John Rama
2017-11-09 23:50 ` John Rama
2017-11-10 22:53   ` John Rama

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.