This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs'
- From: "joel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 20:45:36 +0000
- Subject: [Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs'
- Auto-submitted: auto-generated
- References: <bug-47467-4@http.gcc.gnu.org/bugzilla/>
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?