Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236167

Re: Cross compilation error

From Jonathan Tremesaygues <jonathan.tremesaygues@sereema.com>
Newsgroups linux.debian.user
Subject Re: Cross compilation error
Date 2021-06-16 18:10 +0200
Message-ID <CqGh3-4T8-3@gated-at.bofh.it> (permalink)
References <CqERY-3Rx-5@gated-at.bofh.it> <CqG7n-4Az-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 16/06/2021 17:55, Georgi Naplatanov wrote:
> On 6/16/21 5:39 PM, Jonathan Tremesaygues wrote:
>> Hi,
>>
>> I’m using Debian Buster amd64 and I try to cross-compile ppp for armhf.
>>
>> I never cross-compiled before so I have followed this guide:
>> https://wiki.debian.org/CrossCompiling#Building_with_dpkg-buildpackage
>>
>> A paste of my actions is available here: http://paste.debian.net/1201433/
>>
>> If I understand the error, the compiler search for the amd64 version of
>> the libssl-dev’s headers instead of the armhf one. But I don’t
>> understand why. Any idea or clue?
>>
>> Best regards,
>>
>> Jonathan T.
>>
> 
> Hi Jonathan,
> 
> probably this warning is the issue.
> 
> "dpkg-architecture: warning: specified GNU system type
> arm-linux-gnueabihf does not match CC system type x86_64-linux-gnu, try
> setting a correct CC environment variable"
> 
> The environment variable CC should contain the path to the compiler for
> armhf architecture not for amd64 one.
> 
> HTH
> 
> Kind regards
> Georgi
> 

It’s look like you are right. By setting CC to arm-linux-gnueabihf-gcc, 
I was able to compile the package.

But it is not the job of ’dpkg-buildpackage -a<arch>’ to set the right 
compiler and other stuff? Neither the wiki, the manpage nor the 
unofficial guides found on Internet say I have to set manually the 
compiler :-/


Jo

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Cross compilation error Jonathan Tremesaygues <jonathan.tremesaygues@sereema.com> - 2021-06-16 16:40 +0200
  Re: Cross compilation error Georgi Naplatanov <gosho@oles.biz> - 2021-06-16 18:00 +0200
    Re: Cross compilation error Jonathan Tremesaygues <jonathan.tremesaygues@sereema.com> - 2021-06-16 18:10 +0200
      Re: Cross compilation error <tomas@tuxteam.de> - 2021-06-16 18:20 +0200
        Re: Cross compilation error Paul Wise <pabs@debian.org> - 2021-06-17 06:20 +0200
          Re: Cross compilation error Jonathan Tremesaygues <jonathan.tremesaygues@sereema.com> - 2021-06-17 08:50 +0200
            Re: Cross compilation error Paul Wise <pabs@debian.org> - 2021-06-18 02:20 +0200

csiph-web