From: Manoa N. <mon...@gm...> - 2007-03-30 04:46:38
|
I have followed instructions from all of the above sites: http://www.mingw.org/MinGWiki/index.php/GettingStarted http://www.mingw.org/MinGWiki/index.php/RealDumbQuickstart http://www.mingw.org/MinGWiki/index.php/SmartQuickStart and have yet to manage a successful compilation of a program as a result of inability to find some very basic header files, I have unpacked all of the above packages to a directory: binutils-mingw32-2.17.tar.gz freetype-mingw32-2.2.1.tar.gz gcc-mingw32-4.2.0-r120001.tar.gz mingw-runtime-3.11.tar.gz msys-autoconf-2.59.tar.bz2 msys-automake-1.8.2.tar.bz2 w32api-3.8.tar.gz then installed Msys and DTK, which do work fine, however when I tried to compile some program (MPlayer-win32 from http://oss.netfarm.it/mplayer-win32.php) I have received this very simple error: Detected operating system: MINGW32 Detected host architecture: i386 Checking for cc version ... not found Checking for gcc version ... 4.1.2, ok Checking for host cc ... gcc Checking for cross compilation ... no TOOLS/cpuinfo.c:5:19: error: stdio.h: No such file or directory TOOLS/cpuinfo.c:6:22: error: sys/time.h: No such file or directory TOOLS/cpuinfo.c:7:20: error: stdlib.h: No such file or directory TOOLS/cpuinfo.c:8:20: error: string.h: No such file or directory TOOLS/cpuinfo.c:9:20: error: unistd.h: No such file or directory TOOLS/cpuinfo.c:12:23: error: sys/timeb.h: No such file or directory TOOLS/cpuinfo.c:13: warning: 'struct timeval' declared inside parameter list TOOLS/cpuinfo.c:13: warning: its scope is only this definition or declaration, w hich is probably not what you want TOOLS/cpuinfo.c: In function 'gettimeofday': TOOLS/cpuinfo.c:14: error: storage size of 'timebuffer' isn't known TOOLS/cpuinfo.c:16: error: dereferencing pointer to incomplete type TOOLS/cpuinfo.c:17: error: dereferencing pointer to incomplete type TOOLS/cpuinfo.c:33:22: error: inttypes.h: No such file or directory TOOLS/cpuinfo.c: At top level: TOOLS/cpuinfo.c:68: error: expected '=', ',', ';', 'asm' or '__attribute__' befo re 'rdtsc' TOOLS/cpuinfo.c: In function 'brandname': TOOLS/cpuinfo.c:80: error: 'NULL' undeclared (first use in this function) TOOLS/cpuinfo.c:80: error: (Each undeclared identifier is reported only once TOOLS/cpuinfo.c:80: error: for each function it appears in.) TOOLS/cpuinfo.c:91: warning: return from incompatible pointer type TOOLS/cpuinfo.c: In function 'main': TOOLS/cpuinfo.c:115: error: 'NULL' undeclared (first use in this function) TOOLS/cpuinfo.c:115: warning: initialization from incompatible pointer type TOOLS/cpuinfo.c:127: warning: incompatible implicit declaration of built-in func tion 'printf' TOOLS/cpuinfo.c:252: warning: incompatible implicit declaration of built-in func tion 'strstr' TOOLS/cpuinfo.c:299: error: 'int64_t' undeclared (first use in this function) TOOLS/cpuinfo.c:299: error: expected ';' before 'tsc_start' TOOLS/cpuinfo.c:300: error: storage size of 'tv_start' isn't known TOOLS/cpuinfo.c:300: error: storage size of 'tv_end' isn't known TOOLS/cpuinfo.c:303: error: 'tsc_start' undeclared (first use in this function) TOOLS/cpuinfo.c:304: warning: passing argument 1 of 'gettimeofday' from incompat ible pointer type TOOLS/cpuinfo.c:310: error: 'tsc_end' undeclared (first use in this function) TOOLS/cpuinfo.c:311: warning: passing argument 1 of 'gettimeofday' from incompat ible pointer type TOOLS/cpuinfo.c:313: error: request for member 'tv_sec' in something not a struc ture or union TOOLS/cpuinfo.c:313: error: request for member 'tv_sec' in something not a struc ture or union TOOLS/cpuinfo.c:314: error: request for member 'tv_usec' in something not a stru cture or union TOOLS/cpuinfo.c:314: error: request for member 'tv_usec' in something not a stru cture or union which is quite obvious that mingw is unable to find basic headers, the strange of all things is the fact that those headers are exactly where they are supposed to be: /mingw/include according to the mount point specified in MSYS's fstab file, in fact a similar error occurs when I have tried to compile blackbox for windows aka BBlean, in which case it also it not able to find the files... I have checked and apperantly have found (by hex search/edit) inside the gcc.exe files that some directory/drive names appear there and have attempted to fix them (those reported by --print-search-dirs) unfortunately with no success, I have also attempted installation of mingw-5.1.3 and then overwriting files of the gcc-4.2.0 on it, and that too did not work. the only way I got a program to somehow find those header files is by calling the configure script process while being inside the /mingw/include directory, which is obviously wrong, and also does not seem to work right. can anyone advise on what can be done to fix the situation ? I have been able to work with gcc 4.2.0 before but I have forgotten how I have done that and right now I have no idea where to start, I've even got as far as hex edition of gcc.exe but apperantly nothing I do solves the problem, where do I define for gcc.exe or cc1.exe to find it's header files automatically ? |
From: Brian D. <br...@de...> - 2007-03-30 05:00:07
|
Manoa Nosea wrote: > binutils-mingw32-2.17.tar.gz > gcc-mingw32-4.2.0-r120001.tar.gz What are these? They're not from the MinGW project. > TOOLS/cpuinfo.c:5:19: error: stdio.h: No such file or directory > TOOLS/cpuinfo.c:6:22: error: sys/time.h: No such file or directory > TOOLS/cpuinfo.c:7:20: error: stdlib.h: No such file or directory > TOOLS/cpuinfo.c:8:20: error: string.h: No such file or directory > TOOLS/cpuinfo.c:9:20: error: unistd.h: No such file or directory Clearly something is broken. > can anyone advise on what can be done to fix the situation ? You're using somebody else's tools, and either you installed them wrong or they're broken. But you should ask that person, because I don't see how this list can be expected to support random stuff from random people. Brian |
From: monohouse <mon...@gm...> - 2007-03-30 05:21:44
|
not expected, but I would appreciate if you could hint me in the right direction -- View this message in context: http://www.nabble.com/hi%2C-got-some-problems-with-locating-mingw-headers-tf3490233.html#a9747452 Sent from the MinGW - User mailing list archive at Nabble.com. |
From: Keith M. <kei...@to...> - 2007-03-30 08:32:28
|
monohouse wrote: > I would appreciate if you could hint me in the right direction As Brian [Dessent] pointed out: >> binutils-mingw32-2.17.tar.gz >> gcc-mingw32-4.2.0-r120001.tar.gz > > What are these? They're not from the MinGW project. If you've followed a recent discussion on this list, concerning the availability of GCC-4.x binary packages for MinGW, you would understand why we don't yet offer any such release; basically, we simply are not prepared to carry the support burden for a compiler which we do not yet consider to be of production quality on the Win32 platform. Others have packaged such releases, and you are free to experiment with them. However, when you run into trouble with them, then we can't provide support; you must seek assistance from the provider of those "unofficial" packages. If you can wait a few more weeks, we expect to release our own officially supported GCC-4.2 packages "soon". Regards, Keith. |
From: Michael G. <mg...@te...> - 2007-03-30 09:43:12
|
[you can't expect us supporting non-mingw packages] > not expected, but I would appreciate if you could hint me in the right > direction In your first mail you claimed to have followed the instructions we provide on our website. As a first step to just get a *WORKING* mingw compiler suite I respectfully suggest you'll follow these instructions to the letter which includes using the packages we do provide. That should give you a working compiler suite. Once that's achieved you may try your luck by replacing selected components with foreign packages (step by step) and see if it still works or when it breaks. HTH, Michael =2D-=20 Technosis GmbH, Gesch=E4ftsf=FChrer: Michael Gerdau, Tobias Dittmar Sitz Hamburg; HRB 89145 Amtsgericht Hamburg Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |
From: Manoa N. <mon...@gm...> - 2007-03-30 16:34:20
|
well, standard official mingw with gcc 3.4.x works fine, it's just that this gcc version is not as good, and it is a significant margin between the versions, gcc 4.2 is mutch better, but yhe you're right, I shouldn't bother any of you about packages you don't officially support, it's good to know that you have plans to create a mingw version for it soon in a few weeks. |