Message-Id: <200111090916.fA99GHx00601@hal.astr.lu.lv> Content-Type: text/plain; charset="iso-8859-13" From: Andris Pavenis To: trachier AT crrel DOT usace DOT army DOT mil, gcc-gnats AT gcc DOT gnu DOT org Subject: Re: bootstrap/4834: making gcc as cross-compiler for i586-pc-msdosdjgpp fails Date: Fri, 9 Nov 2001 11:16:17 +0200 X-Mailer: KMail [version 1.3.1] References: <20011108165827 DOT 16380 DOT qmail AT sourceware DOT cygnus DOT com> In-Reply-To: <20011108165827.16380.qmail@sourceware.cygnus.com> Cc: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com On Thursday 08 November 2001 18:58, trachier AT crrel DOT usace DOT army DOT mil wrote: > >Number: 4834 > >Category: bootstrap > >Synopsis: making gcc as cross-compiler for i586-pc-msdosdjgpp fails > >Confidential: no > >Severity: critical > >Priority: medium > >Responsible: unassigned > >State: open > >Class: sw-bug > >Submitter-Id: net > >Arrival-Date: Thu Nov 08 09:06:01 PST 2001 > >Closed-Date: > >Last-Modified: > >Originator: Gary Trachier > >Release: 3.0.2 > >Organization: > >Environment: > > Linux hanish 2.4.3-12 #1 Fri Jun 8 15:05:56 EDT 2001 i686 unknown > Red Hat Linux release 7.1 > making cross-compiler for --target= i586-pc-msdosdjgpp > > >Description: > > gcc compiles and makes ok as a compiler for i686-pc-linux-gnu running on > i686-pc-linux-gnu. It fails though when target is i586-pc-msdosdjgpp. Am > using the latest versions of binutils (2.11.2) and djgpp (2.0.3). PATH_MAX > is undefined in getpwd.c > > getpwd.c: In function `getpwd': > getpwd.c:74: `PATH_MAX' undeclared (first use in this function) > getpwd.c:74: (Each undeclared identifier is reported only once > getpwd.c:74: for each function it appears in.) > getpwd.c:61: warning: `s' might be used uninitialized in this function > make[1]: *** [getpwd.o] Error 1 > make[1]: Leaving directory > `/usr/local/src/gcc-3.0.2/i586-pc-msdosdjgpp/libiberty' make: *** > [all-target-libiberty] Error 2 > > >How-To-Repeat: > > ./configure --target=i586-pc-msdosdjgpp Please repeat with configuring in directory different from source one > make > Cannot reproduce this. Tried with not modified gcc-3.0.2 sources: ../gcc-3.0.2/configure --target=i586-pc-msdosdjgpp --prefix=/usr \ --with-as=/usr/bin/i586-pc-msdosdjgpp-as \ --enable-languages='c,c++' make and didn't get failure for libiberty. I had problem in libstdc++-v3 as configure incorrectly tries to use newlib specific files instead of DJGPP ones. I suggest to apply patches from archive v2gnu/gcc302s2.zip You can find in DJGPP distribution. Patches contain fixes for libstdc++-v3 configure for building DJGPP targetted cross-compiler and other fixes. Andris