Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] GCC Cross compilation results in linux/errno.h not found
@ 2024-05-20  4:24 joe-albanese
  2024-06-14  3:15 ` oreo639
  2024-06-14  3:15 ` oreo639
  0 siblings, 2 replies; 3+ messages in thread
From: joe-albanese @ 2024-05-20  4:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2379 bytes --]

New issue by joe-albanese on void-packages repository

https://github.com/void-linux/void-packages/issues/50434

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.30_1 x86_64 GenuineIntel uptodate rFFFFF

### Package(s) Affected

gcc-13.2.0

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

Cross compiling GCC for aarch64 using ` ./xbps-src -a aarch64 -N pkg gcc` should build a gcc binary without failing and throwing errors

### Actual behaviour

Compilation runs normally until this error is produced:

`make[2]: Entering directory '/builddir/gcc-13.2.0/build/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[2]: Leaving directory '/builddir/gcc-13.2.0/build/build-x86_64-pc-linux-gnu/libcpp'
In file included from /usr/aarch64-linux-gnu/usr/include/errno.h:28,
                 from /usr/aarch64-linux-gnu/usr/include/c++/13.2/cerrno:42,
                 from /usr/aarch64-linux-gnu/usr/include/c++/13.2/ext/string_conversions.h:46,
                 from /usr/aarch64-linux-gnu/usr/include/c++/13.2/bits/basic_string.h:4097,
                 from /usr/aarch64-linux-gnu/usr/include/c++/13.2/string:54,
                 from /builddir/gcc-13.2.0/libcody/cody.hh:25,
                 from /builddir/gcc-13.2.0/libcody/internal.hh:5,
                 from /builddir/gcc-13.2.0/libcody/packet.cc:6:
/usr/aarch64-linux-gnu/usr/include/bits/errno.h:26:11: fatal error: linux/errno.h: No such file or directory
   26 | # include <linux/errno.h>
      |           ^~~~~~~~~~~~~~~
compilation terminated.`

Afterwards, the package fails to build (presumably from the above error):

`checking how to run the C preprocessor... aarch64-linux-gnu-cpp
configure: error: in `/builddir/gcc-13.2.0/build/gmp':
configure: error: C preprocessor "aarch64-linux-gnu-cpp" fails sanity check
See `config.log' for more details
make[1]: *** [Makefile:5075: configure-gmp] Error 1
make[1]: Leaving directory '/builddir/gcc-13.2.0/build'
make: *** [Makefile:1051: all] Error 2
=> ERROR: gcc-13.2.0_2: do_build: 'make ${makejobs}' exited with 2
=> ERROR:   in do_build() at srcpkgs/gcc/template:340`

### Steps to reproduce

1. Run `./xbps-src binary-bootstrap`
2. Run  `./xbps-src -a aarch64 -N pkg gcc`
3. Error thrown

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

* Re: GCC Cross compilation results in linux/errno.h not found
  2024-05-20  4:24 [ISSUE] GCC Cross compilation results in linux/errno.h not found joe-albanese
@ 2024-06-14  3:15 ` oreo639
  2024-06-14  3:15 ` oreo639
  1 sibling, 0 replies; 3+ messages in thread
From: oreo639 @ 2024-06-14  3:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50434#issuecomment-2167135030

Comment:
Builds fine for me.

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

* Re: GCC Cross compilation results in linux/errno.h not found
  2024-05-20  4:24 [ISSUE] GCC Cross compilation results in linux/errno.h not found joe-albanese
  2024-06-14  3:15 ` oreo639
@ 2024-06-14  3:15 ` oreo639
  1 sibling, 0 replies; 3+ messages in thread
From: oreo639 @ 2024-06-14  3:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50434#issuecomment-2167135030

Comment:
Cross-compiles fine for me.

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

end of thread, other threads:[~2024-06-14  3:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-20  4:24 [ISSUE] GCC Cross compilation results in linux/errno.h not found joe-albanese
2024-06-14  3:15 ` oreo639
2024-06-14  3:15 ` oreo639

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 NNTP newsgroup(s).