Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cross compilation error

393 views
Skip to first unread message

Jonathan Tremesaygues

unread,
Jun 16, 2021, 10:40:05 AM6/16/21
to
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.

Georgi Naplatanov

unread,
Jun 16, 2021, 12:00:05 PM6/16/21
to
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

Jonathan Tremesaygues

unread,
Jun 16, 2021, 12:10:04 PM6/16/21
to
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

to...@tuxteam.de

unread,
Jun 16, 2021, 12:20:05 PM6/16/21
to
On Wed, Jun 16, 2021 at 06:07:00PM +0200, Jonathan Tremesaygues wrote:
> On 16/06/2021 17:55, Georgi Naplatanov wrote:

[...]

> >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 :-/

It should, I think.

You might like to take this to <debian...@lists.debian.org>,
there are pretty knowledgeable folks there.

Cheers
- t
signature.asc

Paul Wise

unread,
Jun 17, 2021, 12:20:04 AM6/17/21
to

tomas wrote:
> On Wed, Jun 16, 2021 at 06:07:00PM +0200, Jonathan Tremesaygues wrote:
> > 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 :-/
>
> It should, I think.

Looks like the cross build QA service sees the same failure:

http://crossqa.debian.net/src/ppp

I think that this means the package doesn't support being cross built
yet due to problems in the packaging.

I noticed that if I replace this line in debian/rules:

./configure --prefix=/usr

With this line:

./configure --prefix=/usr --cc=gcc --cross_compile="$(DEB_HOST_GNU_TYPE)-"

Then the cross build starts working.

Would you like to file a bug report about this issue?

If so, run this command:

reportbug --source ppp

Make sure to use these headers and pseudo-headers:

Subject: ppp: FTCBFS -- uses the build architecture compiler

Source: ppp
Version: 2.4.9-1+1
Severity: normal
Tags: patch
X-Debbugs-Cc: debian...@lists.debian.org
User: debian...@lists.debian.org
Usertags: ftcbfs

If not, then I can file the bug for you.

--
bye,
pabs

https://wiki.debian.org/PaulWise
signature.asc

Jonathan Tremesaygues

unread,
Jun 17, 2021, 2:50:04 AM6/17/21
to
Thanks on your feedback!

If you don’t mind, I would prefer that you take care of the bug report.


Best regards,
Jo

Paul Wise

unread,
Jun 17, 2021, 8:20:04 PM6/17/21
to
Jonathan Tremesaygues wrote:

> If you don’t mind, I would prefer that you take care of the bug
> report.

Will do.
signature.asc
0 new messages