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

            Bug ID: 68466
           Summary: libgcc, linux_atomic.c, compilation breaks on #include
                    <asm/unistd.h>
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: angelo70 at gmail dot com
  Target Milestone: ---

Created attachment 36790
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36790&action=edit
compilation log

Dear all,

building gcc-5.2.0 using as target m68k-linux, compilation breaks here:

cc1: error: no include path in which to search for stdc-predef.h
/home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/config/m68k/linux-atomic.c:36:24:
fatal error: asm/unistd.h: No such file or directory


Workaround is to comment out  #include <asm/unistd.h> in linux-atomic.c

As done for other architecture, m68k branch should be fixed too.

Building on host:

$ cat /proc/version 
Linux version 4.1.7001 (root@jerusalem) (gcc version 5.2.1 20150911 (Debian
5.2.1-17) ) #1 SMP Sat Sep 19 15:29:17 CEST 2015


Compilation log attached.

Reply via email to