Prof A Olowofoyeku (The African Chief) wrote:
configure: error: installation or configuration problem: C compiler cannot create executables. make[1]: *** [p/rts/Makefile] Error 1 make: *** [all-gcc] Error 2
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
Okay, I set up these variables in my MinGW too, and it seems to get something working. However, I still get this one:
make[1]: Circular libgcc.a <- pascal dependency dropped. ...../libgpc.a(rts.o)(.text+0xf0d):rts.c: undefined reference to `readdir' ...../libgpc.a(rts.o)(.text+0xef1):rts.c: undefined reference to `opendir' ...../libgpc.a(rts.o)(.text+0xf2c):rts.c: undefined reference to `closedir' make[2]: *** [binobj.exe] Error 1 make[1]: *** [pascal.utils] Error 2 make: *** [all-gcc] Error 2
What could be wrong here?