NNTP-Posting-Date: Wed, 06 Nov 2002 13:25:31 -0600 From: Charles Wilkins Newsgroups: comp.os.msdos.djgpp Subject: Re: cross-compile from linux to msdosdjgpp problems (long) Date: Wed, 06 Nov 2002 14:27:23 -0500 Message-ID: References: <6mfisucdqapqaj8h43bmeiqsd2ust1i42f AT 4ax DOT com> X-Newsreader: Forte Agent 1.92/32.570 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 141 X-Trace: sv3-OUJdXOvxQ08mRQHQ0EggU57MQ3+rUhVn+8KohUsR0JteY7o8l0tUF8VqBOaRLwYwF72OUmZFV5/b3KS!uZVVlUTOycfUo9Th25sI50sSEuJ7bfetCd5HYbTnutpN6cSGg68gYIMrDSBstEWjqK6wV4I= X-Complaints-To: abuse AT comcast DOT com X-DMCA-Complaints-To: dmca AT comcast DOT net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >At this point make crashes with the following: > >root/updates/gcc/djgpp/cross/gcc-3.2-obj/gcc/xgcc >-B/root/updates/gcc/djgpp/cross/gcc-3.2-obj/gcc/ >-B/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/bin/ >-B/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/lib/ -isystem >/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/include -c >-DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-3.2-src/libiberty/../include >-W -Wall -Wtraditional -pedantic >../../../gcc-3.2-src/libiberty/getpwd.c >../../../gcc-3.2-src/libiberty/getpwd.c: In function `getpwd': >../../../gcc-3.2-src/libiberty/getpwd.c:86: `PATH_MAX' undeclared >(first use in this function) >../../../gcc-3.2-src/libiberty/getpwd.c:86: (Each undeclared >identifier is reported only once >../../../gcc-3.2-src/libiberty/getpwd.c:86: for each function it >appears in.) >make[1]: *** [getpwd.o] Error 1 > >I noticed that PATH_MAX is defined in the limits.h that is included >with djcrx203.zip > >How do we get gcc's build to see your limits.h which resides in >$prefix/i686-pc-msdosdjgpp/include ? > >so, just to see if it helped, I manually included this limits.h in >file getpwd.c > >make then crashed with a similar error MIN_LONG undeclared in >fibheap.c > >I did the same thing and manually included the djgpp limits.h in file >fibheap.c and make crashed with the following: After consulting the gcc.gnu.org website some more, I discovered a little blerb at the bottom of this page http://gcc.gnu.org/install/configure.html which mentions --with-headers=dir I added --with-headers=/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/include which corrected the problem with MIN_LONG and PATH_MAX being undeclared in getpwd.c and fibheap.c Yay, another hurdle crossed !!! (and there have been lots) and for the next hurdle... 'make' still terminates with these errors: In file included from /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/bits/locale_facets.h:63, from /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/bits/basic_ios.h:41, from /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/ios:51, from /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/istream:44, from /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/fstream:45, from ../../../../gcc-3.2-src/libstdc++-v3/src/globals.cc:30: /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:46: ` _U' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:47: ` _L' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:48: ` _U' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:48: ` _L' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:49: ` _N' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:50: ` _X' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:50: ` _N' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:51: ` _S' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52: ` _P' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52: ` _U' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52: ` _L' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52: ` _N' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52: ` _B' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53: ` _P' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53: ` _U' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53: ` _L' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53: ` _N' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:54: ` _C' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:55: ` _P' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56: ` _U' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56: ` _L' was not declared in this scope /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56: ` _N' was not declared in this scope make[3]: *** [globals.lo] Error 1 make[3]: Leaving directory `/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3' make: *** [all-target-libstdc++-v3] Error 2 Any ideas anybody? Charles