Hi all,
Apologies for the newbie question but... I'm having problems installing and compiling GPC under Cygwin32
I've got a nice clean cygwin installation, downloaded the gcc-2.95.2 source and the gpc source and, after several trials and tribulations relating to include paths, patch files and so on, make gets as far as:
cd p/rts && \ CC="`echo /usr/local/src/build/gcc/xgcc -B/usr/local/src/build/gcc/ -B/usr/local/i686-pc-cygwin32/bin/ -I/usr/local/i686-pc-c ygwin32/include' ' | sed -e 's,-B([^/][^:]),-B../../\1,g;s,^([^/][^:]),../../\1,'`" PC="`echo ./xgpc -B./' ' | sed -e 's, -B([^/][^:]),-B../../\1,g;s,^([^/][^:]),../../\1,'`" CONFIG_SITE=nonexisting-file \ $src/p/rts/configure --silent > /dev/null --srcdir=$src/p/rts \ `if [ x@with_shared@ = xyes ]; then echo '--with-shared'; fi`
configure: error: installation or configuration problem: C compiler cannot create executables. make[1]: *** [p/rts/Makefile] Error 1 make[1]: Leaving directory `/usr/local/src/build/gcc' make: *** [all-gcc] Error 2
Any suggestions as to why GCC appears to be fritzed? Is it Cygwin's gcc that is at fault here, or somethig generated while making gpc?
Any help would be appreciated.
On 3 Aug 00, at 14:06, Michael Worsley wrote:
Hi all,
Apologies for the newbie question but... I'm having problems installing and compiling GPC under Cygwin32
I've got a nice clean cygwin installation, downloaded the gcc-2.95.2 source and the gpc source and, after several trials and tribulations relating to include paths, patch files and so on, make gets as far as:
cd p/rts && \ CC="`echo /usr/local/src/build/gcc/xgcc -B/usr/local/src/build/gcc/ -B/usr/local/i686-pc-cygwin32/bin/ -I/usr/local/i686-pc-c ygwin32/include' ' | sed -e 's,-B([^/][^:]),-B../../\1,g;s,^([^/][^:]),../../\1,'`" PC="`echo ./xgpc -B./' ' | sed -e 's, -B([^/][^:]),-B../../\1,g;s,^([^/][^:]),../../\1,'`" CONFIG_SITE=nonexisting-file \ $src/p/rts/configure --silent > /dev/null --srcdir=$src/p/rts \ `if [ x@with_shared@ = xyes ]; then echo '--with-shared'; fi`
configure: error: installation or configuration problem: C compiler cannot create executables. make[1]: *** [p/rts/Makefile] Error 1 make[1]: Leaving directory `/usr/local/src/build/gcc' make: *** [all-gcc] Error 2
Any suggestions as to why GCC appears to be fritzed? Is it Cygwin's gcc that is at fault here, or somethig generated while making gpc?
I have encountered this problem many times in the past. It is the gcc that is built when compiling gcc that has a problem. I cannot now remember what I did to overcome that particular problem, but I believe that it had to do with making sure that gcc could find it's support files and libraries. You may need to set one or more of these;
LIBRARY_PATH C_INCLUDE_PATH GCC_EXEC_PREFIX
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro v5.22.1 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com