From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4780 invoked by alias); 26 Jan 2011 20:45:44 -0000 Received: (qmail 4771 invoked by uid 22791); 26 Jan 2011 20:45:43 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Jan 2011 20:45:38 +0000 From: "joel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs' X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joel at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Status CC Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 26 Jan 2011 21:17:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg02881.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47467 Joel Sherrill changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |joel at gcc dot gnu.org Resolution|FIXED | --- Comment #5 from Joel Sherrill 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?