public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* host=i686-pc-linux-gnu target=i386-pc-msdosdjgpp
@ 2000-06-18  1:43 thunder7
  2000-06-18 17:02 ` Mark Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: thunder7 @ 2000-06-18  1:43 UTC (permalink / raw)
  To: crossgcc

And it doesn't work :-)

I'm trying to build binutils and gcc.

downloaded binutils-2.9.1, gcc-2.95.2, the FAQ, build-djgpp.sh,
newlib-1.8.2, linux-x-djgpp.diff, djcrx203.zip etc.

mkdir build-binutils
cd build-binutils
../binutils-2.9.1/configure --host=i686-pc-linux-gnu --target=i386-pc-msdosdjgpp -v 
make 'MAKE=make -j3' all install

went well, no errors.

cd ..
mkdir build-gcc
cd build-gcc
../gcc-2.95.2/configure --host=i686-pc-linux-gnu --target=i386-pc-msdosdjgpp -v
make 'MAKE=make -j3' all install

gives some errors (note that /root/src is linked to /space2/src!):

/root/src/crossgcc/build-gcc/gcc/xgcc -B/root/src/crossgcc/build-gcc/gcc/ -B/usr/local/i386-pc-msdosdjgpp/bin/ -c -g -O2 -fno-implicit-templates -I../../../gcc-2.95.2/libstdc++ -I../../../gcc-2.95.2/libstdc++/stl -I../libio -I../../../gcc-2.95.2/libstdc++/../libio -nostdinc++  -DF `for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
  ../../../gcc-2.95.2/libstdc++/cinst.cc -o fcomplex.o
cd ../libiberty ; make -j3 "SHELL=/bin/sh" "INSTALL=/bin/sh /root/src/crossgcc/gcc-2.95.2/install-sh -c" "INSTALL_DATA=/bin/sh /root/src/crossgcc/gcc-2.95.2/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /root/src/crossgcc/gcc-2.95.2/install-sh -c " "prefix=/usr/local" "exec_prefix=/usr/local" "tooldir=/usr/local/i386-pc-msdosdjgpp" "gxx_include_dir=/usr/local/include/g++-3" "libsubdir=/usr/local/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2" "gcc_version=2.95.2" "gcc_version_trigger=/root/src/crossgcc/gcc-2.95.2/gcc/version.c" "AR=i386-pc-msdosdjgpp-ar" "AR_FLAGS=rc" "CC=/root/src/crossgcc/build-gcc/gcc/xgcc -B/root/src/crossgcc/build-gcc/gcc/ -B/usr/local/i386-pc-msdosdjgpp/bin/" "CXX=/root/src/crossgcc/build-gcc/gcc/xgcc -B/root/src/crossgcc/build-gcc/gcc/ -B/usr/local/i386-pc-msdosdjgpp/bin/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "NM=i386-pc-msdosdjgpp-nm" "RANLIB=i386-pc-msdosdjgpp-ranlib" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/root/src/crossgcc/build-gcc/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES=" "RUNTESTFLAGS="
make[2]: Entering directory `/space2/src/crossgcc/build-gcc/i386-pc-msdosdjgpp/libiberty'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory `/space2/src/crossgcc/build-gcc/i386-pc-msdosdjgpp/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2

if I use --with-headers=/space2/src/crossgcc/newlib-1.8.2/newlib/libc/include
(as seems to be suggested in some older posts in this list), the result is
the same, there are no targets in i386-pc-msdosdjgpp/libiberty.

ls -l /root/src/crossgcc/build-gcc/i386-pc-msdosdjgpp/libiberty reveals:

-rw-r--r--   1 root     root          208 Jun 18 10:42 confdefs.h
-rw-r--r--   1 root     root            0 Jun 18 10:38 config.cache
-rw-r--r--   1 root     root         3598 Jun 18 10:42 config.log
-rw-r--r--   1 root     root            3 Jun 18 10:42 multilib.out
-rw-r--r--   1 root     root           71 Jun 18 10:38 xhost-mkfrag

it seems to missing a Makefile, for one.

If I try the build-djgpp.sh script, it bombs in another way:

/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/xgcc -B/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/ -B/usr/i386-pc-msdosdjgpp/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-2.95.2/libiberty/../include  ../../../gcc-2.95.2/libiberty/choose-temp.c
In file included from ../../../gcc-2.95.2/libiberty/../include/libiberty.h:127,
                 from ../../../gcc-2.95.2/libiberty/choose-temp.c:47:
/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/include/stddef.h:170: warning: redefinition of `size_t'
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/include/stdio.h:38: warning: `size_t' previously declared here
/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/include/stddef.h:255: conflicting types for `wchar_t'
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/include/stdlib.h:39: previous declaration of `wchar_t'
make[1]: *** [choose-temp.o] Error 1
make[1]: Leaving directory `/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/i386-pc-msdosdjgpp/libiberty'
make: *** [all-target-libiberty] Error 2

if I use --with-headers=/space2/src/crossgcc/newlib-1.8.2/newlib/libc/include in the
build-djgpp.sh script (as seems to be suggested in some older posts in
this list), the result is


In file included from /usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/include/wctype.h:14,
                 from dummy.c:18:
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/include/sys/djtypes.h:25: warning: `__DJ_wint_t' redefined
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/include/wchar.h:18: warning: this is the location of the previous definition
mv tmp-params.h _G_config.h
test x"no" != xyes ||\
  /space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/xgcc -B/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/ -B/usr/i386-pc-msdosdjgpp/bin/ -c -g -O2 -I. -I../../../gcc-2.95.2/libio   ../../../gcc-2.95.2/libio/filedoalloc.c -o pic/filedoalloc.o
/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/xgcc -B/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/gcc/ -B/usr/i386-pc-msdosdjgpp/bin/ -c -g -O2 -I. -I../../../gcc-2.95.2/libio  ../../../gcc-2.95.2/libio/filedoalloc.c
In file included from ../../../gcc-2.95.2/libio/libio.h:59,
                 from ../../../gcc-2.95.2/libio/iolibio.h:1,
                 from ../../../gcc-2.95.2/libio/libioP.h:47,
                 from ../../../gcc-2.95.2/libio/filedoalloc.c:45:
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/include/sys/cdefs.h:30: warning: `_ATTRIBUTE' redefined
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/_ansi.h:66: warning: this is the location of the previous definition
In file included from ../../../gcc-2.95.2/libio/filedoalloc.c:49:
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/stdlib.h:50: parse error before `('
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/stdlib.h:50: parse error before `)'
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/stdlib.h:66: parse error before `('
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/stdlib.h:66: parse error before `)'
In file included from /usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/unistd.h:4,
                 from ../../../gcc-2.95.2/libio/filedoalloc.c:50:
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/sys/unistd.h:15: parse error before `('
/usr/lib/gcc-lib/i386-pc-msdosdjgpp/2.95.2/../../../../i386-pc-msdosdjgpp/sys-include/sys/unistd.h:15: parse error before `)'
make[1]: *** [filedoalloc.o] Error 1
make[1]: Leaving directory `/space2/src/crossgcc/i386-pc-msdosdjgpp-gcc/i386-pc-msdosdjgpp/libio'
make: *** [all-target-libio] Error 2

Can anyone point me at the right solution? Someone must have succeeded
in building a gcc-2.95.2 crosscompiler hosted on linux targetted at
i386-pc-msdosdjgpp, surely?

Greetings,
Jurriaan
-- 
"If animals could speak, the dog would be a blundering,
 outspoken fellow -- but the cat would have the rare grace
 of never saying a word too much."
	Philip Gilbert Hamerton
GNU/Linux 2.2.17pre4 SMP 6 users load av: 0.35 0.93 1.18

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-18 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-18  1:43 host=i686-pc-linux-gnu target=i386-pc-msdosdjgpp thunder7
2000-06-18 17:02 ` Mark Mackenzie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).