From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13433 invoked by alias); 17 Nov 2003 19:17:02 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13417 invoked from network); 17 Nov 2003 19:16:59 -0000 Received: from unknown (HELO pacific-carrier-annex.mit.edu) (18.7.21.83) by sources.redhat.com with SMTP; 17 Nov 2003 19:16:59 -0000 Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id hAHJGwNT012016 for ; Mon, 17 Nov 2003 14:16:58 -0500 (EST) Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.12.4/8.9.2) with ESMTP id hAHJGuQU010384 for ; Mon, 17 Nov 2003 14:16:58 -0500 (EST) Received: from no-knife.mit.edu (NO-KNIFE.MIT.EDU [18.7.16.64]) (authenticated bits=56) (User authenticated as pee@ATHENA.MIT.EDU) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id hAHJCLZs000104 for ; Mon, 17 Nov 2003 14:12:22 -0500 (EST) Received: (from pee@localhost) by no-knife.mit.edu (8.12.9) id hAHJCLQI028374; Mon, 17 Nov 2003 14:12:21 -0500 (EST) Message-Id: <200311171912.hAHJCLQI028374@no-knife.mit.edu> To: gcc-help@gcc.gnu.org Subject: Error in tconfig.h while make gnatlib Date: Mon, 17 Nov 2003 19:17:00 -0000 From: Pee Seeumpornroj X-SW-Source: 2003-11/txt/msg00228.txt.bz2 Dear gcc, I'm trying to build a cross compiler from i686-linux-pc to powerpc-elf. I ran into this error while compiling gnat library: make[2]: Entering directory `/home/pee/XComp_source/CrossGNAT/script/build-gcc/gcc/ada/rts' ../../xgcc -B../../ -c -DCROSS_COMPILE -DIN_GCC `echo -g -O2 -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada/.. -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada/../config -I/home/pee/XComp_source/CrossGNAT/script/gcc-3.3.2/gcc/ada/../../include -I./../.. adaint.c In file included from adaint.c:60: ../../tconfig.h:6: error: two types specified in one empty declaration adaint.c: In function `__gnat_readdir': adaint.c:743: warning: initialization makes pointer from integer without a cast adaint.c: In function `__gnat_get_env_value_ptr': adaint.c:1120: warning: assignment makes pointer from integer without a cast adaint.c: In function `__gnat_locate_exec_on_path': adaint.c:1834: warning: initialization makes pointer from integer without a cast make[2]: *** [adaint.o] Error 1 make[2]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script/build-gcc/gcc/ada/rts' make[1]: *** [gnatlib] Error 2 make[1]: Leaving directory `/home/pee/XComp_source/CrossGNAT/script/build-gcc/gcc/ada' make: *** [gnatlib] Error 2 Here is my tconfig.h: #ifdef IN_GCC /* Provide three core typedefs used by everything, if we are compiling GCC. These used to be found in rtl.h and tree.h, but this is no longer practical. Providing these here rather that system.h allows the typedefs to be used everywhere within GCC. */ struct rtx_def; typedef struct rtx_def *rtx; struct rtvec_def; typedef struct rtvec_def *rtvec; union tree_node; typedef union tree_node *tree; #endif #define GTY(x) #ifdef IN_GCC # include "ansidecl.h" # include "rs6000/rs6000.h" # include "dbxelf.h" # include "elfos.h" # include "svr4.h" # include "freebsd-spec.h" # include "rs6000/sysv4.h" # include "defaults.h" #endif #ifndef POSIX # define POSIX #endif tconfig.h looks right to me. rtx_def, rtvec_def, and tree_node are declared early so that they can be used in all gcc files (http://gcc.gnu.org/ml/gcc-patches/2002-01/msg00003.html). Does anyone know how to fix this problem? Thank you very much! Pee