http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47467

Joel Sherrill <joel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |joel at gcc dot gnu.org
         Resolution|FIXED                       |

--- Comment #5 from Joel Sherrill <joel at gcc dot gnu.org> 2011-01-26 20:45:17 
UTC ---
(In reply to comment #4)
> Fixed.

Unfortunately, this fix broke cross builds.  :(

/users/joel/test-gcc/b-gccada-i386/./gcc/xgcc
-B/users/joel/test-gcc/b-gccada-i386/./gcc/ -nostdinc
-B/users/joel/test-gcc/b-gccada-i386/i386-rtems4.11/newlib/ -isystem
/users/joel/test-gcc/b-gccada-i386/i386-rtems4.11/newlib/targ-include -isystem
/users/joel/test-gcc/gcc-svn/newlib/libc/include
-B/users/joel/test-gcc/install-svn/i386-rtems4.11/bin/
-B/users/joel/test-gcc/install-svn/i386-rtems4.11/lib/ -isystem
/users/joel/test-gcc/install-svn/i386-rtems4.11/include -isystem
/users/joel/test-gcc/install-svn/i386-rtems4.11/sys-include    -c
-DCROSS_DIRECTORY_STRUCTURE -DIN_GCC  `echo -g -O2  -fexceptions -DIN_RTS
-DHAVE_GETIPINFO -mtune=i486 |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` 
\
         -I. -I.. -I../.. -I/users/joel/test-gcc/gcc-svn/gcc/ada
-I/users/joel/test-gcc/gcc-svn/gcc/../include
-I/users/joel/test-gcc/gcc-svn/gcc \
        targext.c -o targext.o
In file included from targext.c:37:0:
/users/joel/test-gcc/gcc-svn/gcc/system.h:369:23: fatal error: sys/mman.h: No
such file or directory

Apparently targext.c is compiled both cross and native.  RTEMS does not have
sys/mman.h.  config.h indicates that it is present.

I dropped targext.c from the target library list and got far enough to get an
ICE on something else.  I am building another target now.

Is targext.c really supposed to be part of LIBGNAT_SRCS for the target or is
this just a host side compiler helper?

Reply via email to