public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
@ 2023-08-24 19:58 etienne_lorrain at yahoo dot fr
  2023-08-24 20:09 ` [Bug bootstrap/111141] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: etienne_lorrain at yahoo dot fr @ 2023-08-24 19:58 UTC (permalink / raw)
  To: gcc-bugs

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...

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

* [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
  2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
@ 2023-08-24 20:09 ` redi at gcc dot gnu.org
  2023-08-24 21:03 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2023-08-24 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Looks like you don't have the 32-bit headers installed. See
https://gcc.gnu.org/wiki/FAQ#gnu_stubs-32.h

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

* [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
  2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-24 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think we should improve the toplevel configure to error out if including
errno.h fails.

So instead of:
```
    echo "int main () { return 0; }" > conftest.c
```

We should do:
```
    echo "#include <errno.h>" > conftest.c
    echo "int main () { return 0; }" >> conftest.c
```

I don't have a way to test this but this should at least cause the failure to
happen earlier during configure rather than later on.

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

* [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
  2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: etienne_lorrain at yahoo dot fr @ 2023-08-28 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from etienne_lorrain at yahoo dot fr ---
Just reporting that the problem do not appears when --disable-multilib is asked
at the configure stage.
Unlike for ARM64 host compiling a native compiler, you need to say such
--disable-multilib for amd64 compiling a native compiler.

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

* [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
  2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-28 20:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to etienne_lorrain from comment #3)
> Unlike for ARM64 host compiling a native compiler, you need to say such
> --disable-multilib for amd64 compiling a native compiler.

Well aarch64 (arm64 [which is techincally not a thing]) defaults to having only
one multi-lib (LP64) while x86_64 (amd64 which is the non-canonical name for
x86_64) defaults to having both 64 and 32bit multi-lib.

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

* [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
  2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: hp at gcc dot gnu.org @ 2023-09-12 21:55 UTC (permalink / raw)
  To: gcc-bugs

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

Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at gcc dot gnu.org

--- Comment #5 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
ISTR this one is what you get when you miss *linux-libc-dev*; at least it was
for Debian, and last I looked Ubuntu was still a derivative.
(Noticed last month when building a Docker suitable for gcc.)

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

* [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
  2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
                   ` (4 preceding siblings ...)
  2023-09-12 21:55 ` hp at gcc dot gnu.org
@ 2023-09-12 21:59 ` hp at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: hp at gcc dot gnu.org @ 2023-09-12 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
Possibly also *gcc-multilib*

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

end of thread, other threads:[~2023-09-12 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24 19:58 [Bug bootstrap/111141] New: Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h etienne_lorrain at yahoo dot fr
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

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).