Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 12441] qt5webengine build error: asm/errno.h: No such file or directory
Date: Fri, 03 Jan 2020 19:58:35 +0000	[thread overview]
Message-ID: <bug-12441-163-BQcaAxYhOv@https.bugs.busybox.net/> (raw)
In-Reply-To: <bug-12441-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=12441

--- Comment #7 from Aleksandr Makarov <seems.deviant@gmail.com> ---
(In reply to Bartosz Bilas from comment #6)

Upgraded to Ubuntu 18.04 (was 16.04.4) and successfully built the config.

I decided to figure out the root cause of the issue and found it be g++ failing
 to compile certain Qt5Webengine files with -m32 flag specified. The easiest
way to reproduce was to create a sample file including errno.h:

$ cat bugged-compiler.c 
#include <errno.h>
int main() { return -ENOENT; }

And trying to compile it on Ubuntu 16.04:

$ /usr/bin/g++ -m32 -c -o bugged-compiler bugged-compiler.c
In file included from /usr/include/bits/errno.h:24:0,
                 from /usr/include/errno.h:35,
                 from bugged-compiler.c:1:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or
directory
compilation terminated.

On Ubuntu 18.04 it compiled successfully.

The issue was that I didn't have packages 'libc6-dev:i386 gcc-6-base:i386
libc6:i386 libc6-dev:i386 libgcc1:i386 linux-libc-dev:i386' installed in the 
 Ubuntu 16.04 system. After installing those the issue disappears.

I did't expect the gcc/g++ compiler installed in the system to be used anywhere
in the compilation process except for bootstrapping initial gcc compiler. As I
understand, the buildroot should only use the system gcc to build a cross
compiler and that's it. After the cross-compiler is installed under
<output>/host/ every package should be configured to use that cross-compiler
and it's sysroot.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2020-01-03 19:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 15:08 [Buildroot] [Bug 12441] New: qt5webengine build error: asm/errno.h: No such file or directory bugzilla at busybox.net
2019-12-30 18:42 ` [Buildroot] [Bug 12441] " bugzilla at busybox.net
2020-01-01 13:44 ` bugzilla at busybox.net
2020-01-01 19:16 ` bugzilla at busybox.net
2020-01-01 22:31 ` bugzilla at busybox.net
2020-01-01 22:33 ` bugzilla at busybox.net
2020-01-02 19:28 ` bugzilla at busybox.net
2020-01-03 19:58 ` bugzilla at busybox.net [this message]
2020-01-04  7:56 ` bugzilla at busybox.net
2020-01-05 19:23   ` Arnout Vandecappelle
2020-01-04 10:42 ` bugzilla at busybox.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-12441-163-BQcaAxYhOv@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox