This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap/4834: making gcc as cross-compiler for i586-pc-msdosdjgpp fails
- To: nobody at gcc dot gnu dot org
- Subject: Re: bootstrap/4834: making gcc as cross-compiler for i586-pc-msdosdjgpp fails
- From: Andris Pavenis <pavenis at latnet dot lv>
- Date: 9 Nov 2001 09:26:03 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Andris Pavenis <pavenis at latnet dot lv>
The following reply was made to PR bootstrap/4834; it has been noted by GNATS.
From: Andris Pavenis <pavenis@latnet.lv>
To: trachier@crrel.usace.army.mil, gcc-gnats@gcc.gnu.org
Cc: djgpp@delorie.com
Subject: Re: bootstrap/4834: making gcc as cross-compiler for i586-pc-msdosdjgpp fails
Date: Fri, 9 Nov 2001 11:16:17 +0200
On Thursday 08 November 2001 18:58, trachier@crrel.usace.army.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