Prof A Olowofoyeku (The African Chief) wrote:
As you can see, "d:/mingw/lib/" and "/mingw/lib/" appear in this. They should have appeared in Markus's list as well. So, I think all points to a broken installation (either gcc, or Mingw, or MSYS).
Okay, I tried with a complete re-install of my MinGW now, and things keep getting weirder. I'm getting the following error message:
./gcc.c: In function `process_command': ./gcc.c:3735: error: assignment of read-only location ./gcc.c:3737: error: assignment of read-only location ./gcc.c: In function `fatal': ./gcc.c:6404: warning: traditional C rejects ISO C style function definitions ./gcc.c: In function `error': ./gcc.c:6418: warning: traditional C rejects ISO C style function definitions ./gcc.c: In function `notice': ./gcc.c:6431: warning: traditional C rejects ISO C style function definitions make[1]: *** [gcc.o] Error 1 make: *** [all-gcc] Error 2
... so there's now a syntax error within gcc itself. I also tried without --enable-language=pascal, same result.
My system now consists of: - MinGW 3.2.0 - MSys 1.0.10 - gcc 3.4.2 (came with the MinGW)
What now?
Thanks,
Markus __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201
On 14 Feb 2005 at 16:33, Markus Gerwinski wrote:
Prof A Olowofoyeku (The African Chief) wrote:
As you can see, "d:/mingw/lib/" and "/mingw/lib/" appear in this. They should have appeared in Markus's list as well. So, I think all points to a broken installation (either gcc, or Mingw, or MSYS).
Okay, I tried with a complete re-install of my MinGW now, and things keep getting weirder. I'm getting the following error message:
./gcc.c: In function `process_command': ./gcc.c:3735: error: assignment of read-only location ./gcc.c:3737: error: assignment of read-only location ./gcc.c: In function `fatal': ./gcc.c:6404: warning: traditional C rejects ISO C style function definitions ./gcc.c: In function `error': ./gcc.c:6418: warning: traditional C rejects ISO C style function definitions ./gcc.c: In function `notice': ./gcc.c:6431: warning: traditional C rejects ISO C style function definitions make[1]: *** [gcc.o] Error 1 make: *** [all-gcc] Error 2
This is an old gcc bug that has been fixed in later versions. The attached patch should solve that problem.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
=================================================================== RCS file: /cvs/gcc/gcc/gcc/gcc.c,v retrieving revision 1.350.2.10 retrieving revision 1.350.2.11 diff -u -r1.350.2.10 -r1.350.2.11 --- gcc/gcc/gcc.c 2004/03/13 00:45:39 1.350.2.10 +++ gcc/gcc/gcc.c 2004/03/25 00:58:37 1.350.2.11 @@ -328,7 +328,7 @@ static void add_preprocessor_option PARAMS ((const char *, int)); static void add_assembler_option PARAMS ((const char *, int)); static void add_linker_option PARAMS ((const char *, int)); -static void process_command PARAMS ((int, const char *const *)); +static void process_command PARAMS ((int, const char **)); static int execute PARAMS ((void)); static void alloc_args PARAMS ((void)); static void clear_args PARAMS ((void)); @@ -3050,7 +3050,7 @@ static void process_command (argc, argv) int argc; - const char *const *argv; + const char **argv; { int i; const char *temp; @@ -3279,10 +3279,10 @@ }
/* Convert new-style -- options to old-style. */ - translate_options (&argc, &argv); + translate_options (&argc, (const char *const **) &argv);
/* Do language-specific adjustment/addition of flags. */ - lang_specific_driver (&argc, &argv, &added_libraries); + lang_specific_driver (&argc, (const char *const **) &argv, &added_libraries);
/* Scan argv twice. Here, the first time, just count how many switches there will be in their vector, and how many input files in theirs. @@ -5917,12 +5917,12 @@ kill (getpid (), signum); }
-extern int main PARAMS ((int, const char *const *)); +extern int main PARAMS ((int, const char **));
int main (argc, argv) int argc; - const char *const *argv; + const char **argv; { size_t i; int value;