public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "etienne_lorrain at yahoo dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
Date: Thu, 24 Aug 2023 19:58:43 +0000	[thread overview]
Message-ID: <bug-111141-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111141

            Bug ID: 111141
           Summary: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem
                    asm-generic/errno.h
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: etienne_lorrain at yahoo dot fr
  Target Milestone: ---

On Ubuntu 22.04.3 LTS,Compiling gcc-13.2.0 by:
wget https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz
tar xf gcc-13.2.0.tar.xz
cd gcc-13.2.0/
./contrib/download_prerequisites
cd ..
mkdir gcc_build
cd gcc_build
../../gcc-13.2.0/configure --enable-languages=c,c++,fortran
time make -j 32

Fails with:

In file included from /usr/include/bits/errno.h:26,
                 from /usr/include/errno.h:28,
                 from ../../../../gcc-13.2.0/libgcc/../gcc/tsystem.h:93,
                 from ../../../../gcc-13.2.0/libgcc/generic-morestack.c:32:
/usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or
directory
    1 | #include <asm/errno.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [../../../../gcc-13.2.0/libgcc/shared-object.mk:14:
generic-morestack.o] Error 1
make[5]: Leaving directory
'/home/etienne/aaa/gcc_build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [Makefile:1214: multi-do] Error 1
make[4]: Leaving directory
'/home/etienne/aaa/gcc_build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [Makefile:127: all-multi] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
'/home/etienne/aaa/gcc_build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:24671: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/home/etienne/aaa/gcc_build'
make[1]: *** [Makefile:30190: stage1-bubble] Error 2
make[1]: Leaving directory '/home/etienne/aaa/gcc_build'
make: *** [Makefile:1088: all] Error 2

real    1m7.737s
user    8m1.657s
sys     1m2.220s

Host compiler being:
$ /usr/bin/gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

We do have on host a file: /usr/include/asm-generic/errno.h

At some point the "-generic" part was modified by default creating a link "asm
-> asm-target", but I am not sure now that 64 bits compiler been able to
compile 32 bits, the -generic has or not changed meaning...

In short I am not sure that is a GCC bug or a Ubuntu bug...

             reply	other threads:[~2023-08-24 19:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24 19:58 etienne_lorrain at yahoo dot fr [this message]
2023-08-24 20:09 ` [Bug bootstrap/111141] " redi at gcc dot gnu.org
2023-08-24 21:03 ` pinskia at gcc dot gnu.org
2023-08-28 20:40 ` etienne_lorrain at yahoo dot fr
2023-08-28 20:44 ` pinskia at gcc dot gnu.org
2023-09-12 21:55 ` hp at gcc dot gnu.org
2023-09-12 21:59 ` hp at gcc dot gnu.org

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-111141-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).