From: "Ed Manlove" Newsgroups: comp.os.msdos.djgpp Subject: Building cross compiler requires gcc-2.952\gcc\include files before generated Lines: 58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <4aAH9.891$l96.287301730@news.netcarrier.net> Date: Wed, 4 Dec 2002 23:31:28 -0500 NNTP-Posting-Host: 207.207.244.11 X-Complaints-To: news AT netcarrier DOT com X-Trace: news.netcarrier.net 1039060736 207.207.244.11 (Wed, 04 Dec 2002 22:58:56 EST) NNTP-Posting-Date: Wed, 04 Dec 2002 22:58:56 EST Organization: NetCarrier Internet Services To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In my attempts to build a cross compiler gcc ver 2.95.2 for the hitachi h8300 I believe I needed to add the -with-headers option to the configure script (a modified version of gnu\gcc-2.952\build.djg\djconfig.sh), shown here. #! /bin/sh # Location of source directory export srcdir=`cd ..; pwd | sed -e 's,[a-z][:],,g'` # give now the configure script some hints topdir=`(cd $srcdir/..; pwd | sed -e 's,[a-z][:],,g';)` AS=`test -f $DJDIR/bin/as.exe && echo $DJDIR/bin/as.exe` export AS=${AS-as} export CC=gcc export CXX=gpp export LD=ld export DEFAULT_LEX=flex export LEX=flex export RANLIB=ranlib export ac_cv_path_install="ginstall -c" export CONFIG_SHELL=bash dft_target=i586-pc-msdosdjgpp # # just in case export PATH_SEPARATOR=: # # set log file DATE="`date +%b%d`_`date +%Y`_`date +%H%M%S`" LOGFILE="/dev/env/DJDIR/brickos/h8cfggcc_${DATE}.log" $srcdir/configure --srcdir=$srcdir --disable-shared --verbose \ --with-gxx-include-dir=${prefix}/lang/cxx \ --enable-languages=c,c++ \ --with-headers="${DJDIR}/gnu/gcc-2.952/build.djg/gcc/include" \ --with-gnu-ld --target=h8300-hitachi-hms \ --prefix="${DJDIR}" 2>&1 | tee --append $LOGFILE # # # #rc=$? #dtou `find . -name Makefile` #exit ${rc} make 2>&1 | tee --append $LOGFILE But in doing so it appears that the build process first tries to copy the file in the directory I specify in the with-headers parameter. That is before even configure is executed. These directory though is generated by either the configure or make command. Thus it appears I am in a catch-22. Does anyone have any thoughts about how to fix this issue? Thanks for the help! -- Ed Manlove emanlove AT eclipse DOT net