From: Emil T. <del...@ya...> - 2008-06-04 19:50:37
|
I'm sorry for my poor description - I was quite frustrated last week. I'm really not exactly sure what information I need to provide but I'll try to do better this time. I decided to delete everything (except msys and the mingw I got as binaries) and start fresh. Alas, I get the missing header error again, though in a different place. I have the mingw binaries in "D:\devel\tools\mingw32", that's the following packages: from the mingw project: - gcc-core-3.4.5-20060117-3.tar.gz - gcc-g++-3.4.5-20060117-3.tar.gz - binutils-2.18.50-20080109-2.tar.gz - mingw32-make-3.81-20080326-2.tar.gz - w32api-3.11.tar.gz - mingw-runtime-3.14.tar.gz - mingw-utils-0.3.tar.gz from the gdcwin project (http://sourceforge.net/projects/gdcwin/), though I think these should have nothing to do with compiling C stuff: - gdc-0.24-gcc-3.4.5.exe - gdb-0.2-gdb-6.3-2.exe I have msys (don't remember the exact packages, as I've been gradually adding new ones over a long period of time) in "D:\devel\tools\msys". It has "d:/devel/tools/mingw32" mounted in "/mingw". The PATH environment variable is: "/usr/local/bin:/mingw/bin:/mingw/libexec/gcc/mingw32/3.4.5:/bin:/c/Windows/system32:/c/Windows" I found I need the "libexec/gcc/mingw32/3.4.5" in the PATH when using Vista, otherwise the compiler complains about not finding "cc1.exe" (this applies to compiling anything, not just compiling mingw). I don't think I have any environment variables defined (other than PATH), which would affect the compilation. (Should I?) I'm trying to compile mingw with just C and C++ so I have only these source packages: - gcc-core-3.4.5-20060117-2-src.tar.gz - gcc-g++-3.4.5-20060117-2-src.tar.gz I extracted both of them into my msys home dir. Then I got the build script from "gcc-build-3.4.5-20060117-3.tar.gz" and extracted it to a directory created by me called "gcc-build-3.4.5-20060117-3", because appently the build script needs to be at the same level as configure, but in a different directory. So now my directory structure is like this: myhome + gcc-3.4.5-20060117-2 + configure + gcc-build-3.4.5-20060117-3 + gcc-3.4.5-build-3.sh I have modified 2 things in the build script: First, since I'm only compiling C and C++ I changed: --enable-languages=c,c++,f77,ada,objc,java to --enable-languages=c,c++ Second, as I understand the --prefix argument of the configure script sets the output path, so I changed it from --prefix=/mingw to --prefix=/home/emo/mingw so that I don't mess up my current mingw. I run the build script from the directory where it is with this: ./gcc-3.4.5-build-3.sh 2>&1 | tee log.txt This is the error I get now is: gcc -g0 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.5-20060117-2/gcc -I../../gcc-3.4.5-20060117-2/gcc/. -I../../gcc-3.4.5-20060117-2/gcc/../include \ -DTARGET_MACHINE=\"mingw32\" \ -c ../../gcc-3.4.5-20060117-2/gcc/collect2.c -o collect2.o In file included from ../../gcc-3.4.5-20060117-2/gcc/collect2.c:30: ../../gcc-3.4.5-20060117-2/gcc/system.h:42:19: stdio.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:109:23: sys/types.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:111:19: errno.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:122:21: string.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:123:22: strings.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:135:21: stdlib.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:158:21: unistd.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:162:24: sys/param.h: No such file or directory In file included from d:/devel/tools/mingw32/lib/gcc/mingw32/3.4.5/include/syslimits.h:7, from d:/devel/tools/mingw32/lib/gcc/mingw32/3.4.5/include/limits.h:11, from ../../gcc-3.4.5-20060117-2/gcc/system.h:168, from ../../gcc-3.4.5-20060117-2/gcc/collect2.c:30: d:/devel/tools/mingw32/lib/gcc/mingw32/3.4.5/include/limits.h:122:61: no include path in which to search for limits.h In file included from ../../gcc-3.4.5-20060117-2/gcc/collect2.c:30: ../../gcc-3.4.5-20060117-2/gcc/system.h:201:23: sys/time.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:202:19: time.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:214:20: fcntl.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:319:20: malloc.h: No such file or directory ../../gcc-3.4.5-20060117-2/gcc/system.h:383:23: sys/stat.h: No such file or directory followed by a long list of syntax errors, which I guess are caused by the missing declarations. Judging by Brian Dessent's the build process has stopped even earlier than before, but I really have no idea what I've changed, because I foolishly deleted my previous attempt. I can't think of any other info to provide, but please tell me if there is anyting I missed. Thank you in advance for any help. __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html |