[Bug other/89140] New: libiberty/pex-unix.c fails to compile in aarch64-to-x86_64 cross build

bneumeier at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 31 14:37:00 GMT 2019


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

            Bug ID: 89140
           Summary: libiberty/pex-unix.c fails to compile in
                    aarch64-to-x86_64 cross build
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bneumeier at gmail dot com
  Target Milestone: ---

Created attachment 45575
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45575&action=edit
patch to correct pex-unix.c header file inclusion

In an aarch64-to-x86_64 cross-GCC build scenario, the libiberty configuration
process determines that getrusage is not available but wait4 is. This leads to
a situation where resource.h is not included, but there is a declaration of
type struct rusage.

I was able to get the compile to succeed without issues just by changing the
condition under which resource.h is included, see attached patch.


More information about the Gcc-bugs mailing list