delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/06/21/02:45:39

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "AndreA <andrea.galbusera"<Ihatespammers AT delorie DOT com>@teamware.it
Subject: Re: DJGPP linux cross-compiler + GDB problem
Newsgroups: comp.os.msdos.djgpp
References: <A5dAc.342543$hc5 DOT 14767707 AT news3 DOT tin DOT it> <9003-Thu17Jun2004205638+0300-eliz AT gnu DOT org> <kcwAc.489442$rM4 DOT 20195825 AT news4 DOT tin DOT it> <200406181249 DOT 21532 DOT pavenis AT latnet DOT lv>
Lines: 59
Organization: TW
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Message-ID: <ZfvBc.501863$rM4.20937086@news4.tin.it>
Date: Mon, 21 Jun 2004 06:30:17 GMT
NNTP-Posting-Host: 80.183.241.188
X-Complaints-To: newsmaster AT tin DOT it
X-Trace: news4.tin.it 1087799417 80.183.241.188 (Mon, 21 Jun 2004 08:30:17 MET DST)
NNTP-Posting-Date: Mon, 21 Jun 2004 08:30:17 MET DST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andris Pavenis wrote:

> gcc334s2.zip require autoconf-2.13 and automake-1.5 (perhaps also
> automake-1.4 should work). Newer versions will not. I suggest installing
> it at the different prefix and add bin directory at the begin of the path.

I compiled and installed autoconf-2.13 and automake-1.5. Now unpack-gcc.sh
goes fine (no fails in log file). Binutils (2.15) appear to build ok. PATH
correctly points to them. Compiling gcc-3.3.4 complains on getpwd.o with
this message:

> /home/gizero/projects/src/tools/djgpp/cross/gnu/gcc-3.34-obj/gcc/xgcc
-B/home/gi
> zero/projects/src/tools/djgpp/cross/gnu/gcc-3.34-obj/gcc/
-B/usr/local//i586-pc-
> msdosdjgpp/bin/ -B/usr/local//i586-pc-msdosdjgpp/lib/ -isystem
/usr/local//i586-
> pc-msdosdjgpp/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I.
-I../../../gcc-3.34/libi
> berty/../include  -W -Wall -Wtraditional -pedantic
../../../gcc-3.34/libiberty/g
> etpwd.c -o getpwd.o
> ../../../gcc-3.34/libiberty/getpwd.c: In function `getpwd':
> ../../../gcc-3.34/libiberty/getpwd.c:86: error: `PATH_MAX' undeclared
(first use
>  in this function)
> ../../../gcc-3.34/libiberty/getpwd.c:86: error: (Each undeclared
identifier is r
> eported only once
> ../../../gcc-3.34/libiberty/getpwd.c:86: error: for each function it
appears in.
> )
> make[1]: *** [getpwd.o] Error 1
> make[1]: Leaving directory
`/home/gizero/projects/src/tools/djgpp/cross/gnu/gcc-
> 3.34-obj/i586-pc-msdosdjgpp/libiberty'
> make: *** [all-target-libiberty] Error 2

I´m using gcc with the following specs on my box:

> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Should´n this be fixed by applying patches with unpack-gcc.sh? I´m very in a
hurry to get a working build/debug (gdb) environment to work with. If you
know of any other issue on djgpp with cross-gcc 3.3.4, please suggest the
best alternative to this release.

Thank you for help
Regards,

Andrea

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019