On 3 Apr 2004 at 16:20, Frank Heckenbach wrote:
Markus Gerwinski wrote:
[...]
configure: error: installation or configuration problem: C compiler cannot create executables. make[1]: *** [p/rts/Makefile] Error 1 make: *** [all-gcc] Error 2
What's that?
Either the compiler wasn't built correctly, or the configure script doesn't recognize it. Perhaps it's a trivial thing such as file name suffix, but I suppose The Chief can help better here ...
You get this when the newly-built compiler cannot find its include files or libraries or whatever. The easiest way to avoid this is to set up the environment properly. I have something like this in my $HOME/.profile
if [ $MSYSTEM == MINGW32 ]; then export C_INCLUDE_PATH=/mingw/include export LIBRARY_PATH=/mingw/lib export CC=gcc.exe export PS1='(Mingw)$PWD $' else export C_INCLUDE_PATH=/usr/include export LIBRARY_PATH=/usr/lib export CC=i686-pc-msys-gcc.exe export PS1='(MSYS)$PWD $' fi
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/